diff options
author | Wei Wang <lightmelodies@outlook.com> | 2022-06-23 02:05:02 +0200 |
---|---|---|
committer | Wei Wang <lightmelodies@outlook.com> | 2022-06-25 01:45:15 +0200 |
commit | b0b4c91e449198a73e76f9c24d65db973d49197d (patch) | |
tree | 12ada0654616bcdd545cbd51595d38ef9bc64aeb /src/tracing | |
parent | Merge pull request #46840 from ceph/fix-backport2 (diff) | |
download | ceph-b0b4c91e449198a73e76f9c24d65db973d49197d.tar.xz ceph-b0b4c91e449198a73e76f9c24d65db973d49197d.zip |
librados: export stat2 in C API
Signed-off-by: Wei Wang <lightmelodies@outlook.com>
Diffstat (limited to 'src/tracing')
-rw-r--r-- | src/tracing/librados.tp | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/src/tracing/librados.tp b/src/tracing/librados.tp index e6f8ade099f..42559097b84 100644 --- a/src/tracing/librados.tp +++ b/src/tracing/librados.tp @@ -1735,6 +1735,28 @@ TRACEPOINT_EVENT(librados, rados_stat_exit, ) ) +TRACEPOINT_EVENT(librados, rados_stat2_enter, + TP_ARGS( + rados_ioctx_t, ioctx, + const char*, oid), + TP_FIELDS( + ctf_integer_hex(rados_ioctx_t, ioctx, ioctx) + ctf_string(oid, oid) + ) +) + +TRACEPOINT_EVENT(librados, rados_stat2_exit, + TP_ARGS( + int, retval, + uint64_t*, size, + struct timespec*, mtime), + TP_FIELDS( + ctf_integer(int, retval, retval) + ceph_ctf_integerp(uint64_t, size, size) + ceph_ctf_timespecp(mtime, mtime) + ) +) + TRACEPOINT_EVENT(librados, rados_exec_enter, TP_ARGS( rados_ioctx_t, ioctx, @@ -2507,6 +2529,26 @@ TRACEPOINT_EVENT(librados, rados_aio_stat_exit, ) ) +TRACEPOINT_EVENT(librados, rados_aio_stat2_enter, + TP_ARGS( + rados_ioctx_t, ioctx, + const char*, oid, + rados_completion_t, completion), + TP_FIELDS( + ctf_integer_hex(rados_ioctx_t, ioctx, ioctx) + ctf_string(oid, oid) + ctf_integer_hex(rados_completion_t, completion, completion) + ) +) + +TRACEPOINT_EVENT(librados, rados_aio_stat2_exit, + TP_ARGS( + int, retval), + TP_FIELDS( + ctf_integer(int, retval, retval) + ) +) + TRACEPOINT_EVENT(librados, rados_aio_exec_enter, TP_ARGS( rados_ioctx_t, ioctx, @@ -3714,6 +3756,25 @@ TRACEPOINT_EVENT(librados, rados_read_op_stat_exit, TP_FIELDS() ) +TRACEPOINT_EVENT(librados, rados_read_op_stat2_enter, + TP_ARGS( + rados_read_op_t, read_op, + void*, psize, + void*, pmtime, + void*, prval), + TP_FIELDS( + ctf_integer_hex(rados_read_op_t, read_op, read_op) + ctf_integer_hex(void*, psize, psize) + ctf_integer_hex(void*, pmtime, pmtime) + ctf_integer_hex(void*, prval, prval) + ) +) + +TRACEPOINT_EVENT(librados, rados_read_op_stat2_exit, + TP_ARGS(), + TP_FIELDS() +) + TRACEPOINT_EVENT(librados, rados_read_op_read_enter, TP_ARGS( rados_read_op_t, read_op, |