Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame^] | 1 | From 52563d02a9234215b62c5f519aa1b5d8589ccd0a Mon Sep 17 00:00:00 2001 |
| 2 | From: Michael Jeanson <mjeanson@efficios.com> |
| 3 | Date: Mon, 24 Aug 2020 15:37:50 -0400 |
| 4 | Subject: [PATCH 05/10] =?UTF-8?q?fix:=20ext4:=20indicate=20via=20a=20block?= |
| 5 | =?UTF-8?q?=20bitmap=20read=20is=20prefetched=E2=80=A6=20(v5.9)?= |
| 6 | MIME-Version: 1.0 |
| 7 | Content-Type: text/plain; charset=UTF-8 |
| 8 | Content-Transfer-Encoding: 8bit |
| 9 | |
| 10 | See upstream commit: |
| 11 | |
| 12 | commit ab74c7b23f3770935016e3eb3ecdf1e42b73efaa |
| 13 | Author: Theodore Ts'o <tytso@mit.edu> |
| 14 | Date: Wed Jul 15 11:48:55 2020 -0400 |
| 15 | |
| 16 | ext4: indicate via a block bitmap read is prefetched via a tracepoint |
| 17 | |
| 18 | Modify the ext4_read_block_bitmap_load tracepoint so that it tells us |
| 19 | whether a block bitmap is being prefetched. |
| 20 | |
| 21 | Upstream-Status: Backport |
| 22 | |
| 23 | Signed-off-by: Michael Jeanson <mjeanson@efficios.com> |
| 24 | Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> |
| 25 | Change-Id: I0e5e2c5b8004223d0928235c092449ee16a940e1 |
| 26 | --- |
| 27 | instrumentation/events/lttng-module/ext4.h | 14 ++++++++++++++ |
| 28 | 1 file changed, 14 insertions(+) |
| 29 | |
| 30 | diff --git a/instrumentation/events/lttng-module/ext4.h b/instrumentation/events/lttng-module/ext4.h |
| 31 | index 72ad4c9..4476abb 100644 |
| 32 | --- a/instrumentation/events/lttng-module/ext4.h |
| 33 | +++ b/instrumentation/events/lttng-module/ext4.h |
| 34 | @@ -893,12 +893,26 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__bitmap_load, ext4_mb_buddy_bitmap_load, |
| 35 | TP_ARGS(sb, group) |
| 36 | ) |
| 37 | |
| 38 | +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,9,0)) |
| 39 | +LTTNG_TRACEPOINT_EVENT(ext4_read_block_bitmap_load, |
| 40 | + TP_PROTO(struct super_block *sb, unsigned long group, bool prefetch), |
| 41 | + |
| 42 | + TP_ARGS(sb, group, prefetch), |
| 43 | + |
| 44 | + TP_FIELDS( |
| 45 | + ctf_integer(dev_t, dev, sb->s_dev) |
| 46 | + ctf_integer(__u32, group, group) |
| 47 | + ctf_integer(bool, prefetch, prefetch) |
| 48 | + ) |
| 49 | +) |
| 50 | +#else |
| 51 | LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__bitmap_load, ext4_read_block_bitmap_load, |
| 52 | |
| 53 | TP_PROTO(struct super_block *sb, unsigned long group), |
| 54 | |
| 55 | TP_ARGS(sb, group) |
| 56 | ) |
| 57 | +#endif |
| 58 | |
| 59 | LTTNG_TRACEPOINT_EVENT_INSTANCE(ext4__bitmap_load, ext4_load_inode_bitmap, |
| 60 | |
| 61 | -- |
| 62 | 2.19.1 |
| 63 | |