projects
/
ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a data pointer to all tracepoint probe callbacks
[ust.git]
/
include
/
ust
/
ust_trace.h
diff --git
a/include/ust/ust_trace.h
b/include/ust/ust_trace.h
index 098c5f8f6f0230e31b28bb157b34e7e0d4ffee68..e1b02576d6ef93b88c45bca1cdcdcf071e355d09 100644
(file)
--- a/
include/ust/ust_trace.h
+++ b/
include/ust/ust_trace.h
@@
-58,7
+58,7
@@
struct trace_raw_##name { \
tstruct \
}; \
struct trace_raw_##name { \
tstruct \
}; \
- static void trace_printf_##name(
proto)
\
+ static void trace_printf_##name(
void *dummy, proto)
\
{ \
struct trace_raw_##name entry_struct, *__entry; \
__entry = &entry_struct; \
{ \
struct trace_raw_##name entry_struct, *__entry; \
__entry = &entry_struct; \
@@
-68,8
+68,9
@@
} \
static void __attribute__((constructor)) init_##name() \
{ \
} \
static void __attribute__((constructor)) init_##name() \
{ \
+ void *dummy; \
printf("connecting tracepoint " #name "\n"); \
printf("connecting tracepoint " #name "\n"); \
- register_trace_##name(trace_printf_##name
);
\
+ register_trace_##name(trace_printf_##name
, dummy);
\
}
}
This page took
0.023142 seconds
and
4
git commands to generate.