mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Add prototypes
Add prototypes/move prototypes to header files. Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Arvind Sankar <nivedita@alum.mit.edu> Closes #10470
This commit is contained in:
committed by
Brian Behlendorf
parent
60356b1a21
commit
0ce2de637b
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user