mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-20 11:13:58 +08:00
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>
This commit is contained in:
parent
c420970ef4
commit
5f382671de
@ -60,7 +60,7 @@ struct tracepoint {
|
|||||||
{ \
|
{ \
|
||||||
static const char __tpstrtab_##name[] \
|
static const char __tpstrtab_##name[] \
|
||||||
__attribute__((section("__tracepoints_strings"))) \
|
__attribute__((section("__tracepoints_strings"))) \
|
||||||
= #name ":" #proto; \
|
= #name; \
|
||||||
static struct tracepoint __tracepoint_##name \
|
static struct tracepoint __tracepoint_##name \
|
||||||
__attribute__((section("__tracepoints"), aligned(8))) = \
|
__attribute__((section("__tracepoints"), aligned(8))) = \
|
||||||
{ __tpstrtab_##name, 0, NULL }; \
|
{ __tpstrtab_##name, 0, NULL }; \
|
||||||
@ -70,13 +70,11 @@ struct tracepoint {
|
|||||||
} \
|
} \
|
||||||
static inline int register_trace_##name(void (*probe)(proto)) \
|
static inline int register_trace_##name(void (*probe)(proto)) \
|
||||||
{ \
|
{ \
|
||||||
return tracepoint_probe_register(#name ":" #proto, \
|
return tracepoint_probe_register(#name, (void *)probe); \
|
||||||
(void *)probe); \
|
|
||||||
} \
|
} \
|
||||||
static inline int unregister_trace_##name(void (*probe)(proto)) \
|
static inline int unregister_trace_##name(void (*probe)(proto)) \
|
||||||
{ \
|
{ \
|
||||||
return tracepoint_probe_unregister(#name ":" #proto, \
|
return tracepoint_probe_unregister(#name, (void *)probe);\
|
||||||
(void *)probe); \
|
|
||||||
}
|
}
|
||||||
|
|
||||||
extern void tracepoint_update_probe_range(struct tracepoint *begin,
|
extern void tracepoint_update_probe_range(struct tracepoint *begin,
|
||||||
|
Loading…
Reference in New Issue
Block a user