summaryrefslogtreecommitdiffstats
path: root/src/tracing/librbd.tp
diff options
context:
space:
mode:
authorJulien Collet <julien.collet@cern.ch>2018-02-20 10:14:00 +0100
committerJason Dillaman <dillaman@redhat.com>2018-08-21 22:17:17 +0200
commit809c5430c2929ea1b33d3d1ab7c0023fbb2ce7a5 (patch)
tree7d11af46ef75621e0674697c479e31f4b7f15888 /src/tracing/librbd.tp
parentMerge pull request #23649 from trociny/wip-26939 (diff)
downloadceph-809c5430c2929ea1b33d3d1ab7c0023fbb2ce7a5.tar.xz
ceph-809c5430c2929ea1b33d3d1ab7c0023fbb2ce7a5.zip
librbd: add image access/last modified timestamps
Add access and modify timestamps and associated tests to RBD images. Access (resp. modify) timestamps are updated on read (resp. write) operations. A configurable throttling mechanism is implemented (default to 60s). Signed-off-by: Julien Collet <julien.collet@cern.ch>
Diffstat (limited to 'src/tracing/librbd.tp')
-rw-r--r--src/tracing/librbd.tp45
1 files changed, 45 insertions, 0 deletions
diff --git a/src/tracing/librbd.tp b/src/tracing/librbd.tp
index e334e018cde..3c189fb33f0 100644
--- a/src/tracing/librbd.tp
+++ b/src/tracing/librbd.tp
@@ -2159,6 +2159,51 @@ TRACEPOINT_EVENT(librbd, get_create_timestamp_exit,
)
)
+TRACEPOINT_EVENT(librbd, get_access_timestamp_enter,
+ TP_ARGS(
+ void*, imagectx,
+ const char*, name,
+ char, read_only),
+ TP_FIELDS(
+ ctf_integer_hex(void*, imagectx, imagectx)
+ ctf_string(name, name)
+ ctf_integer(char, read_only, read_only)
+ )
+)
+
+TRACEPOINT_EVENT(librbd, get_access_timestamp_exit,
+ TP_ARGS(
+ int, retval,
+ struct timespec*, timestamp),
+ TP_FIELDS(
+ ctf_integer(int, retval, retval)
+ ctf_integer(uint64_t, timestamp, timestamp->tv_sec)
+ )
+)
+
+TRACEPOINT_EVENT(librbd, get_modify_timestamp_enter,
+ TP_ARGS(
+ void*, imagectx,
+ const char*, name,
+ char, read_only),
+ TP_FIELDS(
+ ctf_integer_hex(void*, imagectx, imagectx)
+ ctf_string(name, name)
+ ctf_integer(char, read_only, read_only)
+ )
+)
+
+TRACEPOINT_EVENT(librbd, get_modify_timestamp_exit,
+ TP_ARGS(
+ int, retval,
+ struct timespec*, timestamp),
+ TP_FIELDS(
+ ctf_integer(int, retval, retval)
+ ctf_integer(uint64_t, timestamp, timestamp->tv_sec)
+ )
+)
+
+
TRACEPOINT_EVENT(librbd, get_features_enter,
TP_ARGS(
void*, imagectx,