Add callsite support
[lttng-ust.git] / include / lttng / tracepoint-types.h
index ee1cd78daba67274c1d82bb5d321240ed454bb95..27500d40451535ada1e63c227e80c6a7bc291a0f 100644 (file)
@@ -16,7 +16,7 @@
  */
 
 struct tracepoint_probe {
-       void *func;
+       void (*func)(void);
        void *data;
 };
 
@@ -30,4 +30,13 @@ struct tracepoint {
        char padding[TRACEPOINT_PADDING];
 };
 
+#define TRACEPOINT_CALLSITE_PADDING    16
+struct tracepoint_callsite {
+       const struct tracepoint *tp;
+       const char *func;
+       const char *file;
+       unsigned int lineno;
+       char padding[TRACEPOINT_CALLSITE_PADDING];
+};
+
 #endif /* _LTTNG_TRACEPOINT_TYPES_H */
This page took 0.023244 seconds and 4 git commands to generate.