Date: Wed, 9 Aug 2006 00:19:32 GMT From: Howard Su <howardsu@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 103479 for review Message-ID: <200608090019.k790JWNu068375@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=103479 Change 103479 by howardsu@su_vm on 2006/08/09 00:19:15 Respect the KDTRACE opt flag. Mark SDT_XXX as nop when no KDTRACE Affected files ... .. //depot/projects/dtrace/src/sys/sys/sdt.h#6 edit Differences ... ==== //depot/projects/dtrace/src/sys/sys/sdt.h#6 (text+ko) ==== @@ -71,6 +71,7 @@ #else /* _KERNEL */ +#ifdef KDTRACE #define __SDT_LABEL(name) \ __asm__(".globl __dtrace_probe_" #name); \ __asm__("__dtrace_probe_"#name ":") @@ -108,7 +109,13 @@ (uintptr_t)(arg3), (uintptr_t)(arg4)); \ __SDT_LABEL(name); \ } - +#else +#define DTRACE_PROBE(name) +#define DTRACE_PROBE1(name, type1, arg1) +#define DTRACE_PROBE2(name, type1, arg1, type2, arg2) +#define DTRACE_PROBE3(name, type1, arg1, type2, arg2, type3, arg3) +#define DTRACE_PROBE4(name, type1, arg1, type2, arg2, type3, arg3, type4, arg4) +#endif /* KDTRACE */ #endif /* _KERNEL */ extern const char *sdt_prefix;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608090019.k790JWNu068375>