summaryrefslogtreecommitdiffstats
path: root/src/tracing
diff options
context:
space:
mode:
authorRicardo Dias <rdias@suse.com>2017-02-24 19:36:55 +0100
committerRicardo Dias <rdias@suse.com>2017-04-11 13:09:41 +0200
commitb70dbccb674d6d7ac0eb3b763eb1c66479aa23d9 (patch)
treea6b3875d82d36278e45ffb4c81e34d9c0de83ca6 /src/tracing
parentlibrbd: open image gets name from directory or trash (diff)
downloadceph-b70dbccb674d6d7ac0eb3b763eb1c66479aa23d9.tar.xz
ceph-b70dbccb674d6d7ac0eb3b763eb1c66479aa23d9.zip
librbd: added trash methods to API
Signed-off-by: Ricardo Dias <rdias@suse.com>
Diffstat (limited to 'src/tracing')
-rw-r--r--src/tracing/librbd.tp138
1 files changed, 138 insertions, 0 deletions
diff --git a/src/tracing/librbd.tp b/src/tracing/librbd.tp
index 1df20396a39..c5a23eb1547 100644
--- a/src/tracing/librbd.tp
+++ b/src/tracing/librbd.tp
@@ -204,6 +204,28 @@ TRACEPOINT_EVENT(librbd, writesame_exit,
)
)
+TRACEPOINT_EVENT(librbd, open_image_by_id_enter,
+ TP_ARGS(
+ void*, imagectx,
+ const char*, id,
+ const char*, snap_name,
+ int, read_only),
+ TP_FIELDS(
+ ctf_integer_hex(void*, imagectx, imagectx)
+ ctf_string(id, id)
+ ctf_string(snap_name, snap_name)
+ ctf_integer(uint8_t, read_only, read_only ? 1 : 0)
+ )
+)
+
+TRACEPOINT_EVENT(librbd, open_image_by_id_exit,
+ TP_ARGS(
+ int, retval),
+ TP_FIELDS(
+ ctf_integer(int, retval, retval)
+ )
+)
+
TRACEPOINT_EVENT(librbd, aio_open_image_enter,
TP_ARGS(
void*, imagectx,
@@ -230,6 +252,30 @@ TRACEPOINT_EVENT(librbd, aio_open_image_exit,
)
)
+TRACEPOINT_EVENT(librbd, aio_open_image_by_id_enter,
+ TP_ARGS(
+ void*, imagectx,
+ const char*, id,
+ const char*, snap_name,
+ int, read_only,
+ const void*, completion),
+ TP_FIELDS(
+ ctf_integer_hex(void*, imagectx, imagectx)
+ ctf_string(id, id)
+ ctf_string(snap_name, snap_name)
+ ctf_integer(uint8_t, read_only, read_only ? 1 : 0)
+ ctf_integer_hex(const void*, completion, completion)
+ )
+)
+
+TRACEPOINT_EVENT(librbd, aio_open_image_by_id_exit,
+ TP_ARGS(
+ int, retval),
+ TP_FIELDS(
+ ctf_integer(int, retval, retval)
+ )
+)
+
TRACEPOINT_EVENT(librbd, close_image_enter,
TP_ARGS(
void*, imagectx,
@@ -427,6 +473,98 @@ TRACEPOINT_EVENT(librbd, remove_exit,
)
)
+TRACEPOINT_EVENT(librbd, trash_move_enter,
+ TP_ARGS(
+ const char*, pool_name,
+ int64_t, id,
+ const char*, imgname),
+ TP_FIELDS(
+ ctf_string(pool_name, pool_name)
+ ctf_integer(int64_t, id, id)
+ ctf_string(imgname, imgname)
+ )
+)
+
+TRACEPOINT_EVENT(librbd, trash_move_exit,
+ TP_ARGS(
+ int, retval),
+ TP_FIELDS(
+ ctf_integer(int, retval, retval)
+ )
+)
+
+TRACEPOINT_EVENT(librbd, trash_list_enter,
+ TP_ARGS(
+ const char*, pool_name,
+ int64_t, id),
+ TP_FIELDS(
+ ctf_string(pool_name, pool_name)
+ ctf_integer(int64_t, id, id)
+ )
+)
+
+TRACEPOINT_EVENT(librbd, trash_list_entry,
+ TP_ARGS(
+ const char*, id),
+ TP_FIELDS(
+ ctf_string(id, id)
+ )
+)
+
+TRACEPOINT_EVENT(librbd, trash_list_exit,
+ TP_ARGS(
+ int, retval,
+ int, size),
+ TP_FIELDS(
+ ctf_integer(int, retval, retval)
+ ctf_integer(size_t, size, size)
+ )
+)
+
+TRACEPOINT_EVENT(librbd, trash_remove_enter,
+ TP_ARGS(
+ const char*, pool_name,
+ int64_t, id,
+ const char*, imgid,
+ uint8_t, force),
+ TP_FIELDS(
+ ctf_string(pool_name, pool_name)
+ ctf_integer(int64_t, id, id)
+ ctf_string(imgid, imgid)
+ ctf_integer(uint8_t, force, force)
+ )
+)
+
+TRACEPOINT_EVENT(librbd, trash_remove_exit,
+ TP_ARGS(
+ int, retval),
+ TP_FIELDS(
+ ctf_integer(int, retval, retval)
+ )
+)
+
+TRACEPOINT_EVENT(librbd, trash_undelete_enter,
+ TP_ARGS(
+ const char*, pool_name,
+ int64_t, id,
+ const char*, imgid,
+ const char*, imgnewname),
+ TP_FIELDS(
+ ctf_string(pool_name, pool_name)
+ ctf_integer(int64_t, id, id)
+ ctf_string(imgid, imgid)
+ ctf_string(imgnewname, imgnewname)
+ )
+)
+
+TRACEPOINT_EVENT(librbd, trash_undelete_exit,
+ TP_ARGS(
+ int, retval),
+ TP_FIELDS(
+ ctf_integer(int, retval, retval)
+ )
+)
+
TRACEPOINT_EVENT(librbd, aio_write_enter,
TP_ARGS(
void*, imagectx,