X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/2d21ac55c334faf3a56e5634905ed6987fc787d4..8a3053a07cee346dca737a5670e546fd26a7c9d6:/bsd/dev/dtrace/dtrace_subr.c?ds=inline diff --git a/bsd/dev/dtrace/dtrace_subr.c b/bsd/dev/dtrace/dtrace_subr.c index 2a2a4b3de..c609fddec 100644 --- a/bsd/dev/dtrace/dtrace_subr.c +++ b/bsd/dev/dtrace/dtrace_subr.c @@ -20,12 +20,12 @@ */ /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ /* - * #pragma ident "@(#)dtrace_subr.c 1.7 06/04/24 SMI" + * #pragma ident "@(#)dtrace_subr.c 1.8 07/06/05 SMI" */ #include @@ -37,7 +37,8 @@ #include #if defined(__APPLE__) -#define proc_t struct proc +/* Solaris proc_t is the struct. Darwin's proc_t is a pointer to it. */ +#define proc_t struct proc /* Steer clear of the Darwin typedef for proc_t */ #endif /* Copied from an arch specific dtrace_subr.c. */ @@ -48,18 +49,18 @@ int (*dtrace_fasttrap_probe_ptr)(struct regs *); * They're assigned in dtrace.c but Darwin never calls them. */ void (*dtrace_cpu_init)(processorid_t); +#if !defined(__APPLE__) void (*dtrace_modload)(struct modctl *); void (*dtrace_modunload)(struct modctl *); -#if defined(__APPLE__) +#else +int (*dtrace_modload)(struct kmod_info *, uint32_t); +int (*dtrace_modunload)(struct kmod_info *); void (*dtrace_helpers_cleanup)(proc_t *); -#endif +#endif /*__APPLE__*/ void (*dtrace_helpers_fork)(proc_t *, proc_t *); void (*dtrace_cpustart_init)(void); void (*dtrace_cpustart_fini)(void); -void (*dtrace_kreloc_init)(void); -void (*dtrace_kreloc_fini)(void); - void (*dtrace_debugger_init)(void); void (*dtrace_debugger_fini)(void);