summaryrefslogtreecommitdiffstats
path: root/src/tracing/eventtrace.tp
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:54:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:54:28 +0000
commite6918187568dbd01842d8d1d2c808ce16a894239 (patch)
tree64f88b554b444a49f656b6c656111a145cbbaa28 /src/tracing/eventtrace.tp
parentInitial commit. (diff)
downloadceph-e6918187568dbd01842d8d1d2c808ce16a894239.tar.xz
ceph-e6918187568dbd01842d8d1d2c808ce16a894239.zip
Adding upstream version 18.2.2.upstream/18.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/tracing/eventtrace.tp')
-rw-r--r--src/tracing/eventtrace.tp61
1 files changed, 61 insertions, 0 deletions
diff --git a/src/tracing/eventtrace.tp b/src/tracing/eventtrace.tp
new file mode 100644
index 000000000..f28ded100
--- /dev/null
+++ b/src/tracing/eventtrace.tp
@@ -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)
+ )
+)