From: Mathieu Desnoyers Date: Mon, 23 Jan 2017 17:18:35 +0000 (-0500) Subject: Update btrfs instrumentation for 4.10 kernel X-Git-Tag: v2.9.1~6 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=c6a2b846473fa2a196a2bd95e8245ed98b83adba;p=lttng-modules.git Update btrfs instrumentation for 4.10 kernel Based on commit 92a1bf76 "Btrfs: add 'inode' for extent map tracepoint" in the upstream Linux kernel. Signed-off-by: Mathieu Desnoyers --- diff --git a/instrumentation/events/lttng-module/btrfs.h b/instrumentation/events/lttng-module/btrfs.h index 77c96404..e2c68866 100644 --- a/instrumentation/events/lttng-module/btrfs.h +++ b/instrumentation/events/lttng-module/btrfs.h @@ -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)