From: mathieu.desnoyers@efficios.com (Mathieu Desnoyers)
Subject: [lttng-dev] [PATCH lttng-modules] Fix: update btrfs instrumentation for kernel 4.12
Date: Wed, 24 May 2017 16:13:47 +0000 (UTC) [thread overview]
Message-ID: <196394189.24137.1495642427545.JavaMail.zimbra@efficios.com> (raw)
In-Reply-To: <1495568801-29408-1-git-send-email-mjeanson@efficios.com>
Merged into master, 2.10, 2.9, 2.8.
----- On May 23, 2017, at 9:46 PM, Michael Jeanson mjeanson at efficios.com wrote:
> See upstream commit 490b54d6fb75f6ffd0471ec58bb38a992e2b40cd
>
> Signed-off-by: Michael Jeanson <mjeanson at efficios.com>
> ---
> instrumentation/events/lttng-module/btrfs.h | 48 ++++++++++++++++++++++++++++-
> 1 file changed, 47 insertions(+), 1 deletion(-)
>
> diff --git a/instrumentation/events/lttng-module/btrfs.h
> b/instrumentation/events/lttng-module/btrfs.h
> index ecaf382..72777bc 100644
> --- a/instrumentation/events/lttng-module/btrfs.h
> +++ b/instrumentation/events/lttng-module/btrfs.h
> @@ -83,7 +83,30 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__inode,
> btrfs_inode_evict,
> TP_ARGS(inode)
> )
>
> -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,11,0))
> +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,12,0))
> +
> +LTTNG_TRACEPOINT_EVENT(btrfs_get_extent,
> +
> + TP_PROTO(struct btrfs_root *root, struct btrfs_inode *inode,
> + struct extent_map *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)
> + ctf_integer(u64, block_start, map->block_start)
> + ctf_integer(u64, block_len, map->block_len)
> + ctf_integer(unsigned long, flags, map->flags)
> + ctf_integer(int, refs, refcount_read(&map->refs))
> + ctf_integer(unsigned int, compress_type, map->compress_type)
> + )
> +)
> +
> +#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(4,11,0))
>
> LTTNG_TRACEPOINT_EVENT(btrfs_get_extent,
>
> @@ -152,6 +175,28 @@ LTTNG_TRACEPOINT_EVENT(btrfs_get_extent,
>
> #endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0)) */
>
> +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,12,0))
> +LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__ordered_extent,
> +
> + TP_PROTO(struct inode *inode, struct btrfs_ordered_extent *ordered),
> +
> + TP_ARGS(inode, ordered),
> +
> + TP_FIELDS(
> + ctf_integer(ino_t, ino, inode->i_ino)
> + ctf_integer(u64, file_offset, ordered->file_offset)
> + ctf_integer(u64, start, ordered->start)
> + ctf_integer(u64, len, ordered->len)
> + ctf_integer(u64, disk_len, ordered->disk_len)
> + ctf_integer(u64, bytes_left, ordered->bytes_left)
> + ctf_integer(unsigned long, flags, ordered->flags)
> + ctf_integer(int, compress_type, ordered->compress_type)
> + ctf_integer(int, refs, refcount_read(&ordered->refs))
> + ctf_integer(u64, root_objectid,
> + BTRFS_I(inode)->root->root_key.objectid)
> + )
> +)
> +#else
> LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__ordered_extent,
>
> TP_PROTO(struct inode *inode, struct btrfs_ordered_extent *ordered),
> @@ -172,6 +217,7 @@ LTTNG_TRACEPOINT_EVENT_CLASS(btrfs__ordered_extent,
> BTRFS_I(inode)->root->root_key.objectid)
> )
> )
> +#endif
>
> LTTNG_TRACEPOINT_EVENT_INSTANCE(btrfs__ordered_extent, btrfs_ordered_extent_add,
>
> --
> 2.7.4
--
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com
parent reply other threads:[~2017-05-24 16:13 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <1495568801-29408-1-git-send-email-mjeanson@efficios.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=196394189.24137.1495642427545.JavaMail.zimbra@efficios.com \
--to=mathieu.desnoyers@efficios.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox