blob: 8067cffaab4660203e02624f08890a7ad8b4a2bb [file] [log] [blame]
Patrick Williamsb9af8752023-01-30 13:28:01 -06001From dd7be14bd04c1de309ba267097b03a308da87dae Mon Sep 17 00:00:00 2001
2From: Michael Jeanson <mjeanson@efficios.com>
3Date: Tue, 17 Jan 2023 11:03:12 -0500
4Subject: [PATCH] fix: jbd2: use the correct print format (v5.10.163)
5
6See upstream commit :
7
8 commit d87a7b4c77a997d5388566dd511ca8e6b8e8a0a8
9 Author: Bixuan Cui <cuibixuan@linux.alibaba.com>
10 Date: Tue Oct 11 19:33:44 2022 +0800
11
12 jbd2: use the correct print format
13
14 The print format error was found when using ftrace event:
15 <...>-1406 [000] .... 23599442.895823: jbd2_end_commit: dev 252,8 transaction -1866216965 sync 0 head -1866217368
16 <...>-1406 [000] .... 23599442.896299: jbd2_start_commit: dev 252,8 transaction -1866216964 sync 0
17
18 Use the correct print format for transaction, head and tid.
19
20Change-Id: I7601f5cbb86495c2607be7b11e02724c90b3ebf9
21Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
22Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
23
24Upstream-Status: Backport
25Signed-off-by: Armin Kuster <akuster@mvista.com>
26
27---
28 include/instrumentation/events/jbd2.h | 3 +++
29 1 file changed, 3 insertions(+)
30
31diff --git a/include/instrumentation/events/jbd2.h b/include/instrumentation/events/jbd2.h
32index d5d8ea0c..f7993511 100644
33--- a/include/instrumentation/events/jbd2.h
34+++ b/include/instrumentation/events/jbd2.h
35@@ -28,6 +28,7 @@ LTTNG_TRACEPOINT_EVENT(jbd2_checkpoint,
36 )
37
38 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(6,2,0) \
39+ || LTTNG_KERNEL_RANGE(5,10,163, 6,0,0) \
40 || LTTNG_KERNEL_RANGE(5,15,87, 5,16,0) \
41 || LTTNG_KERNEL_RANGE(6,0,18, 6,1,0) \
42 || LTTNG_KERNEL_RANGE(6,1,4, 6,2,0))
43@@ -96,6 +97,7 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE(jbd2_commit, jbd2_drop_transaction,
44 #endif
45
46 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(6,2,0) \
47+ || LTTNG_KERNEL_RANGE(5,10,163, 6,0,0) \
48 || LTTNG_KERNEL_RANGE(5,15,87, 5,16,0) \
49 || LTTNG_KERNEL_RANGE(6,0,18, 6,1,0) \
50 || LTTNG_KERNEL_RANGE(6,1,4, 6,2,0))
51@@ -138,6 +140,7 @@ LTTNG_TRACEPOINT_EVENT(jbd2_submit_inode_data,
52 )
53
54 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(6,2,0) \
55+ || LTTNG_KERNEL_RANGE(5,10,163, 6,0,0) \
56 || LTTNG_KERNEL_RANGE(5,15,87, 5,16,0) \
57 || LTTNG_KERNEL_RANGE(6,0,18, 6,1,0) \
58 || LTTNG_KERNEL_RANGE(6,1,4, 6,2,0))
59--
602.35.4
61