[f2fs-dev] [PATCH v2] f2fs: optimize trace_f2fs_write_checkpoint with enums

2025-11-27 Thread YH Lin via Linux-f2fs-devel
This patch optimizes the tracepoint by replacing these hardcoded strings with a new enumeration f2fs_cp_phase. 1.Defines enum f2fs_cp_phase with values for each checkpoint phase. 2.Updates trace_f2fs_write_checkpoint to accept a u16 phase argument instead of a string pointer. 3.Uses __print_symbol

[f2fs-dev] [PATCH] f2fs: optimize trace_f2fs_write_checkpoint with enums

2025-11-17 Thread YH Lin via Linux-f2fs-devel
This patch optimizes the tracepoint by replacing these hardcoded strings with a new enumeration f2fs_cp_phase. 1.Defines enum f2fs_cp_phase with values for each checkpoint phase. 2.Updates trace_f2fs_write_checkpoint to accept a u16 phase argument instead of a string pointer. 3.Uses __print_symbol