diff options
Diffstat (limited to 'include/os/linux/spl')
-rw-r--r-- | include/os/linux/spl/sys/trace.h | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/include/os/linux/spl/sys/trace.h b/include/os/linux/spl/sys/trace.h index 55c587358..b148ace6a 100644 --- a/include/os/linux/spl/sys/trace.h +++ b/include/os/linux/spl/sys/trace.h @@ -104,27 +104,45 @@ trace_zfs_##name((uintptr_t)(arg1), (uintptr_t)(arg2), \ (uintptr_t)(arg3), (uintptr_t)(arg4)) +#define PROTO_DTRACE_PROBE(name) \ + noinline void trace_zfs_##name(void) +#define PROTO_DTRACE_PROBE1(name) \ + noinline void trace_zfs_##name(uintptr_t) +#define PROTO_DTRACE_PROBE2(name) \ + noinline void trace_zfs_##name(uintptr_t, uintptr_t) +#define PROTO_DTRACE_PROBE3(name) \ + noinline void trace_zfs_##name(uintptr_t, uintptr_t, \ + uintptr_t) +#define PROTO_DTRACE_PROBE4(name) \ + noinline void trace_zfs_##name(uintptr_t, uintptr_t, \ + uintptr_t, uintptr_t) + #if defined(CREATE_TRACE_POINTS) #define FUNC_DTRACE_PROBE(name) \ +PROTO_DTRACE_PROBE(name); \ noinline void trace_zfs_##name(void) { } \ EXPORT_SYMBOL(trace_zfs_##name) #define FUNC_DTRACE_PROBE1(name) \ +PROTO_DTRACE_PROBE1(name); \ noinline void trace_zfs_##name(uintptr_t arg1) { } \ EXPORT_SYMBOL(trace_zfs_##name) #define FUNC_DTRACE_PROBE2(name) \ +PROTO_DTRACE_PROBE2(name); \ noinline void trace_zfs_##name(uintptr_t arg1, \ uintptr_t arg2) { } \ EXPORT_SYMBOL(trace_zfs_##name) #define FUNC_DTRACE_PROBE3(name) \ +PROTO_DTRACE_PROBE3(name); \ noinline void trace_zfs_##name(uintptr_t arg1, \ uintptr_t arg2, uintptr_t arg3) { } \ EXPORT_SYMBOL(trace_zfs_##name) #define FUNC_DTRACE_PROBE4(name) \ +PROTO_DTRACE_PROBE4(name); \ noinline void trace_zfs_##name(uintptr_t arg1, \ uintptr_t arg2, uintptr_t arg3, uintptr_t arg4) { } \ EXPORT_SYMBOL(trace_zfs_##name) @@ -146,19 +164,6 @@ EXPORT_SYMBOL(trace_zfs_##name) #else /* CREATE_TRACE_POINTS */ -#define PROTO_DTRACE_PROBE(name) \ - noinline void trace_zfs_##name(void) -#define PROTO_DTRACE_PROBE1(name) \ - noinline void trace_zfs_##name(uintptr_t) -#define PROTO_DTRACE_PROBE2(name) \ - noinline void trace_zfs_##name(uintptr_t, uintptr_t) -#define PROTO_DTRACE_PROBE3(name) \ - noinline void trace_zfs_##name(uintptr_t, uintptr_t, \ - uintptr_t) -#define PROTO_DTRACE_PROBE4(name) \ - noinline void trace_zfs_##name(uintptr_t, uintptr_t, \ - uintptr_t, uintptr_t) - #define DEFINE_DTRACE_PROBE(name) PROTO_DTRACE_PROBE(name) #define DEFINE_DTRACE_PROBE1(name) PROTO_DTRACE_PROBE1(name) #define DEFINE_DTRACE_PROBE2(name) PROTO_DTRACE_PROBE2(name) |