From owner-p4-projects@FreeBSD.ORG Fri Jul 7 19:04:12 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 6880516A4DF; Fri, 7 Jul 2006 19:04:12 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 472EF16A4DE for ; Fri, 7 Jul 2006 19:04:12 +0000 (UTC) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D2D7543D49 for ; Fri, 7 Jul 2006 19:04:11 +0000 (GMT) (envelope-from jb@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k67J4BX8062435 for ; Fri, 7 Jul 2006 19:04:11 GMT (envelope-from jb@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k67J4Bqu062432 for perforce@freebsd.org; Fri, 7 Jul 2006 19:04:11 GMT (envelope-from jb@freebsd.org) Date: Fri, 7 Jul 2006 19:04:11 GMT Message-Id: <200607071904.k67J4Bqu062432@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jb@freebsd.org using -f From: John Birrell To: Perforce Change Reviews Cc: Subject: PERFORCE change 100925 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jul 2006 19:04:12 -0000 http://perforce.freebsd.org/chv.cgi?CH=100925 Change 100925 by jb@jb_freebsd2 on 2006/07/07 19:04:07 sparc64 support. Affected files ... .. //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace.c#31 edit Differences ... ==== //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace.c#31 (text+ko) ==== @@ -475,7 +475,6 @@ static int dtrace_enabling_matchstate(dtrace_state_t *, int *); static int dtrace_enabling_replicate(dtrace_state_t *, dtrace_probedesc_t *, dtrace_probedesc_t *); static int dtrace_enabling_retain(dtrace_enabling_t *); -static int dtrace_getustack_common(uint64_t *, int, uintptr_t, uintptr_t); static int dtrace_hash_collisions(dtrace_hash_t *, dtrace_probe_t *); static int dtrace_helper_destroygen(int); static int dtrace_helper_slurp(dof_hdr_t *, dof_helper_t *); @@ -580,6 +579,14 @@ void dtrace_resume(void); void dtrace_suspend(void); +#if defined(__i386__) +static int dtrace_getustack_common(uint64_t *, int, uintptr_t, uintptr_t); +#endif + +#if defined(__sparc64__) +static int dtrace_getustack_common(uint64_t *, int, uintptr_t); +#endif + /* Temporary hacks during porting this code. */ #include @@ -665,6 +672,9 @@ #if defined(__i386__) #include #endif +#if defined(__sparc64__) +#include +#endif SYSINIT(dtrace_load, SI_SUB_DTRACE, SI_ORDER_FIRST, dtrace_load, NULL) SYSINIT(dtrace_anon_init, SI_SUB_DTRACE_ANON, SI_ORDER_FIRST, dtrace_anon_init, NULL)