summaryrefslogtreecommitdiffstats
path: root/src/tracing/oprequest.tp
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 18:24:20 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 18:24:20 +0000
commit483eb2f56657e8e7f419ab1a4fab8dce9ade8609 (patch)
treee5d88d25d870d5dedacb6bbdbe2a966086a0a5cf /src/tracing/oprequest.tp
parentInitial commit. (diff)
downloadceph-upstream.tar.xz
ceph-upstream.zip
Adding upstream version 14.2.21.upstream/14.2.21upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/tracing/oprequest.tp')
-rw-r--r--src/tracing/oprequest.tp47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/tracing/oprequest.tp b/src/tracing/oprequest.tp
new file mode 100644
index 00000000..f8124866
--- /dev/null
+++ b/src/tracing/oprequest.tp
@@ -0,0 +1,47 @@
+#include "include/int_types.h"
+
+TRACEPOINT_EVENT(oprequest, set_rmw_flags,
+ TP_ARGS(
+ // osd_reqid_t
+ uint8_t, type,
+ int64_t, num,
+ uint64_t, tid,
+ int32_t, inc,
+ int, flag,
+ int, old_rmw_flags,
+ int, new_rmw_flags),
+ TP_FIELDS(
+ ctf_integer(uint8_t, type, type)
+ ctf_integer(int64_t, num, num)
+ ctf_integer(uint64_t, tid, tid)
+ ctf_integer(int32_t, inc, inc)
+ ctf_integer_hex(int, flag, flag)
+ ctf_integer_hex(int, old_rmw_flags, old_rmw_flags)
+ ctf_integer_hex(int, new_rmw_flags, new_rmw_flags)
+ )
+)
+
+TRACEPOINT_EVENT(oprequest, mark_flag_point,
+ TP_ARGS(
+ // osd_reqid_t
+ uint8_t, type,
+ int64_t, num,
+ uint64_t, tid,
+ int32_t, inc,
+ int, rmw_flags,
+ uint8_t, flag,
+ const char*, msg,
+ uint8_t, old_hit_flag_points,
+ uint8_t, new_hit_flag_points),
+ TP_FIELDS(
+ ctf_integer(uint8_t, type, type)
+ ctf_integer(int64_t, num, num)
+ ctf_integer(uint64_t, tid, tid)
+ ctf_integer(int32_t, inc, inc)
+ ctf_integer_hex(int, rmw_flags, rmw_flags)
+ ctf_integer_hex(uint8_t, flag, flag)
+ ctf_string(msg, msg)
+ ctf_integer_hex(uint8_t, old_hit_flag_points, old_hit_flag_points)
+ ctf_integer_hex(uint8_t, new_hit_flag_points, new_hit_flag_points)
+ )
+)