aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/tracepoint.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/tracepoint.h')
-rw-r--r--include/linux/tracepoint.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/linux/tracepoint.h b/include/linux/tracepoint.h
index c60a791f8874..7e9b42aeae0e 100644
--- a/include/linux/tracepoint.h
+++ b/include/linux/tracepoint.h
@@ -60,7 +60,7 @@ struct tracepoint {
60 { \ 60 { \
61 static const char __tpstrtab_##name[] \ 61 static const char __tpstrtab_##name[] \
62 __attribute__((section("__tracepoints_strings"))) \ 62 __attribute__((section("__tracepoints_strings"))) \
63 = #name ":" #proto; \ 63 = #name; \
64 static struct tracepoint __tracepoint_##name \ 64 static struct tracepoint __tracepoint_##name \
65 __attribute__((section("__tracepoints"), aligned(8))) = \ 65 __attribute__((section("__tracepoints"), aligned(8))) = \
66 { __tpstrtab_##name, 0, NULL }; \ 66 { __tpstrtab_##name, 0, NULL }; \
@@ -70,13 +70,11 @@ struct tracepoint {
70 } \ 70 } \
71 static inline int register_trace_##name(void (*probe)(proto)) \ 71 static inline int register_trace_##name(void (*probe)(proto)) \
72 { \ 72 { \
73 return tracepoint_probe_register(#name ":" #proto, \ 73 return tracepoint_probe_register(#name, (void *)probe); \
74 (void *)probe); \
75 } \ 74 } \
76 static inline int unregister_trace_##name(void (*probe)(proto)) \ 75 static inline int unregister_trace_##name(void (*probe)(proto)) \
77 { \ 76 { \
78 return tracepoint_probe_unregister(#name ":" #proto, \ 77 return tracepoint_probe_unregister(#name, (void *)probe);\
79 (void *)probe); \
80 } 78 }
81 79
82extern void tracepoint_update_probe_range(struct tracepoint *begin, 80extern void tracepoint_update_probe_range(struct tracepoint *begin,