summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a818861)
move after the call so that the address sampled matches, typically, the
return address of the tracepoint callee.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
-#define tracepoint(provider, name, ...) \
- do { \
- TRACEPOINT_CALLSITE(provider, name); \
- STAP_PROBEV(provider, name, ## __VA_ARGS__); \
- if (caa_unlikely(__tracepoint_##provider##___##name.state)) \
- __tracepoint_cb_##provider##___##name(__VA_ARGS__); \
+#define tracepoint(provider, name, ...) \
+ do { \
+ STAP_PROBEV(provider, name, ## __VA_ARGS__); \
+ if (caa_unlikely(__tracepoint_##provider##___##name.state)) { \
+ __tracepoint_cb_##provider##___##name(__VA_ARGS__); \
+ TRACEPOINT_CALLSITE(provider, name); \
+ } \
} while (0)
#define TP_ARGS(...) __VA_ARGS__
} while (0)
#define TP_ARGS(...) __VA_ARGS__