Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/sdt.h
Show First 20 Lines • Show All 109 Lines • ▼ Show 20 Lines | |||||
#define SDT_PROBE2(prov, mod, func, name, arg0, arg1) | #define SDT_PROBE2(prov, mod, func, name, arg0, arg1) | ||||
#define SDT_PROBE3(prov, mod, func, name, arg0, arg1, arg2) | #define SDT_PROBE3(prov, mod, func, name, arg0, arg1, arg2) | ||||
#define SDT_PROBE4(prov, mod, func, name, arg0, arg1, arg2, arg3) | #define SDT_PROBE4(prov, mod, func, name, arg0, arg1, arg2, arg3) | ||||
#define SDT_PROBE5(prov, mod, func, name, arg0, arg1, arg2, arg3, arg4) | #define SDT_PROBE5(prov, mod, func, name, arg0, arg1, arg2, arg3, arg4) | ||||
#define SDT_PROBE6(prov, mod, func, name, arg0, arg1, arg2, arg3, arg4, arg5) | #define SDT_PROBE6(prov, mod, func, name, arg0, arg1, arg2, arg3, arg4, arg5) | ||||
#define SDT_PROBE7(prov, mod, func, name, arg0, arg1, arg2, arg3, arg4, arg5, \ | #define SDT_PROBE7(prov, mod, func, name, arg0, arg1, arg2, arg3, arg4, arg5, \ | ||||
arg6) | arg6) | ||||
#define MIB_SDT_PROBE1(...) | |||||
#define MIB_SDT_PROBE2(...) | |||||
#define SDT_PROBE_DEFINE0_XLATE(prov, mod, func, name) | #define SDT_PROBE_DEFINE0_XLATE(prov, mod, func, name) | ||||
#define SDT_PROBE_DEFINE1_XLATE(prov, mod, func, name, arg0, xarg0) | #define SDT_PROBE_DEFINE1_XLATE(prov, mod, func, name, arg0, xarg0) | ||||
#define SDT_PROBE_DEFINE2_XLATE(prov, mod, func, name, arg0, xarg0, \ | #define SDT_PROBE_DEFINE2_XLATE(prov, mod, func, name, arg0, xarg0, \ | ||||
arg1, xarg1) | arg1, xarg1) | ||||
#define SDT_PROBE_DEFINE3_XLATE(prov, mod, func, name, arg0, xarg0, \ | #define SDT_PROBE_DEFINE3_XLATE(prov, mod, func, name, arg0, xarg0, \ | ||||
arg1, xarg1, arg2, xarg2) | arg1, xarg1, arg2, xarg2) | ||||
#define SDT_PROBE_DEFINE4_XLATE(prov, mod, func, name, arg0, xarg0, \ | #define SDT_PROBE_DEFINE4_XLATE(prov, mod, func, name, arg0, xarg0, \ | ||||
arg1, xarg1, arg2, xarg2, arg3, xarg3) | arg1, xarg1, arg2, xarg2, arg3, xarg3) | ||||
▲ Show 20 Lines • Show All 210 Lines • ▼ Show 20 Lines | if (sdt_##prov##_##mod##_##func##_##name->id) \ | ||||
(*(void (*)(uint32_t, uintptr_t, uintptr_t, uintptr_t, \ | (*(void (*)(uint32_t, uintptr_t, uintptr_t, uintptr_t, \ | ||||
uintptr_t, uintptr_t, uintptr_t, uintptr_t)) \ | uintptr_t, uintptr_t, uintptr_t, uintptr_t)) \ | ||||
sdt_probe_func)( \ | sdt_probe_func)( \ | ||||
sdt_##prov##_##mod##_##func##_##name->id, \ | sdt_##prov##_##mod##_##func##_##name->id, \ | ||||
(uintptr_t)arg0, (uintptr_t)arg1, (uintptr_t)arg2, \ | (uintptr_t)arg0, (uintptr_t)arg1, (uintptr_t)arg2, \ | ||||
(uintptr_t)arg3, (uintptr_t)arg4, (uintptr_t)arg5, \ | (uintptr_t)arg3, (uintptr_t)arg4, (uintptr_t)arg5, \ | ||||
(uintptr_t)arg6); \ | (uintptr_t)arg6); \ | ||||
} while (0) | } while (0) | ||||
#ifndef KDTRACE_NO_MIB_SDT | |||||
#define MIB_SDT_PROBE1(...) SDT_PROBE1(mib, __VA_ARGS__) | |||||
#define MIB_SDT_PROBE2(...) SDT_PROBE2(mib, __VA_ARGS__) | |||||
#else | |||||
#define MIB_SDT_PROBE1(...) | |||||
#define MIB_SDT_PROBE2(...) | |||||
#endif | |||||
#define DTRACE_PROBE_IMPL_START(name, arg0, arg1, arg2, arg3, arg4) do { \ | #define DTRACE_PROBE_IMPL_START(name, arg0, arg1, arg2, arg3, arg4) do { \ | ||||
static SDT_PROBE_DEFINE(sdt, , , name); \ | static SDT_PROBE_DEFINE(sdt, , , name); \ | ||||
SDT_PROBE(sdt, , , name, arg0, arg1, arg2, arg3, arg4); | SDT_PROBE(sdt, , , name, arg0, arg1, arg2, arg3, arg4); | ||||
#define DTRACE_PROBE_IMPL_END } while (0) | #define DTRACE_PROBE_IMPL_END } while (0) | ||||
#define DTRACE_PROBE(name) \ | #define DTRACE_PROBE(name) \ | ||||
DTRACE_PROBE_IMPL_START(name, 0, 0, 0, 0, 0) \ | DTRACE_PROBE_IMPL_START(name, 0, 0, 0, 0, 0) \ | ||||
▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines |