mirror of
https://github.com/ceph/ceph
synced 2025-03-07 16:58:39 +00:00
tracing: add tracepoints for cache pin/unpin
Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
This commit is contained in:
parent
478389924b
commit
597c43ea39
@ -3337,3 +3337,39 @@ TRACEPOINT_EVENT(librados, rados_aio_read_op_operate_exit,
|
||||
ctf_integer(int, retval, retval)
|
||||
)
|
||||
)
|
||||
|
||||
TRACEPOINT_EVENT(librados, rados_cache_pin_enter,
|
||||
TP_ARGS(
|
||||
rados_ioctx_t, io,
|
||||
const char*, o),
|
||||
TP_FIELDS(
|
||||
ctf_integer_hex(rados_ioctx_t, io, io)
|
||||
ceph_ctf_string(o, o)
|
||||
)
|
||||
)
|
||||
|
||||
TRACEPOINT_EVENT(librados, rados_cache_pin_exit,
|
||||
TP_ARGS(
|
||||
int, retval),
|
||||
TP_FIELDS(
|
||||
ctf_integer(int, retval, retval)
|
||||
)
|
||||
)
|
||||
|
||||
TRACEPOINT_EVENT(librados, rados_cache_unpin_enter,
|
||||
TP_ARGS(
|
||||
rados_ioctx_t, io,
|
||||
const char*, o),
|
||||
TP_FIELDS(
|
||||
ctf_integer_hex(rados_ioctx_t, io, io)
|
||||
ceph_ctf_string(o, o)
|
||||
)
|
||||
)
|
||||
|
||||
TRACEPOINT_EVENT(librados, rados_cache_unpin_exit,
|
||||
TP_ARGS(
|
||||
int, retval),
|
||||
TP_FIELDS(
|
||||
ctf_integer(int, retval, retval)
|
||||
)
|
||||
)
|
||||
|
@ -477,6 +477,26 @@ TRACEPOINT_EVENT(osd, do_osd_op_pre_watch,
|
||||
)
|
||||
)
|
||||
|
||||
TRACEPOINT_EVENT(osd, do_osd_op_pre_cache_pin,
|
||||
TP_ARGS(
|
||||
const char*, oid,
|
||||
uint64_t, snap),
|
||||
TP_FIELDS(
|
||||
ctf_string(oid, oid)
|
||||
ctf_integer(uint64_t, snap, snap)
|
||||
)
|
||||
)
|
||||
|
||||
TRACEPOINT_EVENT(osd, do_osd_op_pre_cache_unpin,
|
||||
TP_ARGS(
|
||||
const char*, oid,
|
||||
uint64_t, snap),
|
||||
TP_FIELDS(
|
||||
ctf_string(oid, oid)
|
||||
ctf_integer(uint64_t, snap, snap)
|
||||
)
|
||||
)
|
||||
|
||||
TRACEPOINT_EVENT(osd, do_osd_op_pre_setxattr,
|
||||
TP_ARGS(
|
||||
const char*, oid,
|
||||
|
Loading…
Reference in New Issue
Block a user