Update btrfs instrumentation for 4.10 kernel
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 23 Jan 2017 17:18:35 +0000 (12:18 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 23 Jan 2017 17:27:17 +0000 (12:27 -0500)
Based on commit 92a1bf76 "Btrfs: add 'inode' for extent map tracepoint"
in the upstream Linux kernel.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
instrumentation/events/lttng-module/btrfs.h

index 77c9640402dbcb94db59ff7c05feac2dd0cf8c7d..e2c68866645d3b33bea47dd5795cb1a6aebd9f75 100644 (file)
@@ -85,12 +85,14 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__inode, btrfs_inode_evict,
 
 LTTNG_TRACEPOINT_EVENT(btrfs_get_extent,
 
-       TP_PROTO(struct btrfs_root *root, struct extent_map *map),
+       TP_PROTO(struct btrfs_root *root, struct inode *inode,
+               struct extent_map *map),
 
-       TP_ARGS(root, map),
+       TP_ARGS(root, inode, map),
 
        TP_FIELDS(
                ctf_integer(u64, root_objectid, root->root_key.objectid)
+               ctf_integer(u64, ino, btrfs_ino(inode))
                ctf_integer(u64, start, map->start)
                ctf_integer(u64, len, map->len)
                ctf_integer(u64, orig_start, map->orig_start)
This page took 0.027093 seconds and 4 git commands to generate.