summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDouglas Raillard <douglas.raillard@arm.com>2023-03-06 15:25:49 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-04-26 12:18:56 +0300
commitfc4c7404ae5cd71d42f44ff64f9f268ce7e237b3 (patch)
treeefd02d1fb88b3a1a0693fb7cc1536d2c738c61be /include
parentdb0753b611d096a2f763cefeaff8d9ddd8de2d5c (diff)
downloadlinux-fc4c7404ae5cd71d42f44ff64f9f268ce7e237b3.tar.xz
f2fs: Fix f2fs_truncate_partial_nodes ftrace event
[ Upstream commit 0b04d4c0542e8573a837b1d81b94209e48723b25 ] Fix the nid_t field so that its size is correctly reported in the text format embedded in trace.dat files. As it stands, it is reported as being of size 4: field:nid_t nid[3]; offset:24; size:4; signed:0; Instead of 12: field:nid_t nid[3]; offset:24; size:12; signed:0; This also fixes the reported offset of subsequent fields so that they match with the actual struct layout. Signed-off-by: Douglas Raillard <douglas.raillard@arm.com> Reviewed-by: Mukesh Ojha <quic_mojha@quicinc.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/trace/events/f2fs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/trace/events/f2fs.h b/include/trace/events/f2fs.h
index 7ab40491485b..8ecfc8e68507 100644
--- a/include/trace/events/f2fs.h
+++ b/include/trace/events/f2fs.h
@@ -485,7 +485,7 @@ TRACE_EVENT(f2fs_truncate_partial_nodes,
TP_STRUCT__entry(
__field(dev_t, dev)
__field(ino_t, ino)
- __field(nid_t, nid[3])
+ __array(nid_t, nid, 3)
__field(int, depth)
__field(int, err)
),