diff options
author | Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> | 2008-11-14 17:47:45 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-16 03:01:34 -0500 |
commit | 5f382671def7cb9c0f4b75d586dc5f60dca5e1c3 (patch) | |
tree | ee90d469b24a893c8ec777775a43d41cdfb6f76f /include/linux/tracepoint.h | |
parent | c420970ef476d7d68df119711700666224001f43 (diff) |
tracepoints: do not put arguments in name
Impact: cleanup
That's overkill, takes space. We have a global tracepoint registery in
header files anyway.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/tracepoint.h')
-rw-r--r-- | include/linux/tracepoint.h | 8 |
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 | ||
82 | extern void tracepoint_update_probe_range(struct tracepoint *begin, | 80 | extern void tracepoint_update_probe_range(struct tracepoint *begin, |