Skip to content

Commit

Permalink
f2fs: Fix f2fs_truncate_partial_nodes ftrace event
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Mukesh Ojha <[email protected]>
Reviewed-by: Chao Yu <[email protected]>
Signed-off-by: Jaegeuk Kim <[email protected]>
  • Loading branch information
douglas-raillard-arm authored and Jaegeuk Kim committed Mar 10, 2023
1 parent fe15c26 commit 0b04d4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/trace/events/f2fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,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)
),
Expand Down

0 comments on commit 0b04d4c

Please sign in to comment.