1 #ifndef _SFXGE_COMPAT_H 2 #define _SFXGE_COMPAT_H 3 4 /* 5 * Macro available in newer versions of /usr/include/sdt.h 6 */ 7 #include <sys/sdt.h> 8 #include <sys/inline.h> 9 10 #ifndef DTRACE_PROBE5 11 #define DTRACE_PROBE5(name, type1, arg1, type2, arg2, type3, arg3, \ 12 type4, arg4, type5, arg5) \ 13 { \ 14 extern void __dtrace_probe_##name(uintptr_t, uintptr_t, \ 15 uintptr_t, uintptr_t, uintptr_t); \ 16 __dtrace_probe_##name((uintptr_t)(arg1), \ 17 (uintptr_t)(arg2), (uintptr_t)(arg3), \ 18 (uintptr_t)(arg4), (uintptr_t)(arg5)); \ 19 } 20 #endif /* DTRACE_PROBE5 */ 21 22 #endif