initial code repo
[stor4nfv.git] / src / ceph / src / tracing / eventtrace.tp
diff --git a/src/ceph/src/tracing/eventtrace.tp b/src/ceph/src/tracing/eventtrace.tp
new file mode 100644 (file)
index 0000000..f28ded1
--- /dev/null
@@ -0,0 +1,61 @@
+#include "include/int_types.h"
+
+TRACEPOINT_EVENT(eventtrace, func_enter,
+    TP_ARGS(
+        const char*, file,
+        const char*, func,
+        uint32_t, line),
+    TP_FIELDS(
+        ctf_string(file, file)
+        ctf_string(func, func)
+        ctf_integer(uint32_t, line, line)
+    )
+)
+
+TRACEPOINT_EVENT(eventtrace, func_exit,
+    TP_ARGS(
+        const char*, file,
+        const char*, func),
+    TP_FIELDS(
+        ctf_string(file, file)
+        ctf_string(func, func)
+    )
+)
+
+TRACEPOINT_EVENT(eventtrace, oid_event,
+    TP_ARGS(
+        const char*, oid,
+        const char*, event,
+        const char*, context,
+        const char*, file,
+        const char*, func,
+        uint32_t, line),
+    TP_FIELDS(
+        ctf_string(oid, oid)
+        ctf_string(event, event)
+        ctf_string(context, context)
+        ctf_string(file, file)
+        ctf_string(func, func)
+        ctf_integer(uint32_t, line, line)
+    )
+)
+
+TRACEPOINT_EVENT(eventtrace, oid_elapsed,
+    TP_ARGS(
+        const char*, oid,
+        const char*, event,
+        const char*, context,
+        double, elapsed,
+        const char*, file,
+        const char*, func,
+        uint32_t, line),
+    TP_FIELDS(
+        ctf_string(oid, oid)
+        ctf_string(event, event)
+        ctf_string(context, context)
+        ctf_float(double, elapsed, elapsed)
+        ctf_string(file, file)
+        ctf_string(func, func)
+        ctf_integer(uint32_t, line, line)
+    )
+)