projects
/
ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Trace event: export pointer array
[ust.git]
/
include
/
ust
/
ust_trace.h
diff --git
a/include/ust/ust_trace.h
b/include/ust/ust_trace.h
index 11d5940c68bed8ae85d1bb9b1f593fd8df9156d3..66f1e878f355de9ab2651325ffdd73b5c3c92178 100644
(file)
--- a/
include/ust/ust_trace.h
+++ b/
include/ust/ust_trace.h
@@
-76,12
+76,15
@@
{ \
return unregister_trace_##name(trace_printf_##name, data); \
} \
{ \
return unregister_trace_##name(trace_printf_##name, data); \
} \
- struct trace_event __event_##name \
- __attribute__((section("__trace_events"), aligned(32))) = { \
+ struct trace_event __event_##name = { \
__tpstrtab_##name, \
register_event_##name, \
unregister_event_##name \
}; \
__tpstrtab_##name, \
register_event_##name, \
unregister_event_##name \
}; \
+ static struct trace_event * const __event_ptrs_##name \
+ __attribute__((used, section("__trace_events_ptrs"))) = \
+ &__event_##name; \
+ \
static void __attribute__((constructor)) init_##name() \
{ \
void *dummy = NULL; \
static void __attribute__((constructor)) init_##name() \
{ \
void *dummy = NULL; \
This page took
0.023132 seconds
and
4
git commands to generate.