On Fri, 11 Mar 2022 07:49:31 +0530 Ritesh Harjani <riteshh@xxxxxxxxxxxxx> wrote: > > # cat /sys/kernel/tracing/events/ext4/ext4_fc_commit_stop/format > > I think you meant ext4_fc_stats. Sure. > > > > > and show me what it outputs. > > root@qemu:/home/qemu# cat /sys/kernel/tracing/events/ext4/ext4_fc_stats/format > name: ext4_fc_stats > ID: 986 > format: > field:unsigned short common_type; offset:0; size:2; signed:0; > field:unsigned char common_flags; offset:2; size:1; signed:0; > field:unsigned char common_preempt_count; offset:3; size:1; signed:0; > field:int common_pid; offset:4; size:4; signed:1; > > field:dev_t dev; offset:8; size:4; signed:0; > field:unsigned int fc_ineligible_rc[EXT4_FC_REASON_MAX]; offset:12; size:36; signed:0; Bah, the above tells us how many items, and the TRACE_DEFINE_ENUM() doesn't modify this part of the file. I could update it to do so though. -- Steve > field:unsigned long fc_commits; offset:48; size:8; signed:0; > field:unsigned long fc_ineligible_commits; offset:56; size:8; signed:0; > field:unsigned long fc_numblks; offset:64; size:8; signed:0;