summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
diff options
context:
space:
mode:
authorYH Lin <yhli@google.com>2025-11-28 11:23:57 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2025-12-04 02:00:06 +0000
commit8d1cb17aca466b361cca17834b8bb1cf3e3d1818 (patch)
tree7a9983dd8e07411dc68f0159be74d275056c5b02 /drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
parent37345eae9deaa2e4f372eeb98f6594cd0ee0916e (diff)
f2fs: optimize trace_f2fs_write_checkpoint with enums
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_symbolic in TP_printk to convert the enum values back to their corresponding strings for human-readable trace output. This change reduces the storage overhead for each trace event by replacing a variable-length string with a 2-byte integer, while maintaining the same readable output in ftrace. Signed-off-by: YH Lin <yhli@google.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c')
0 files changed, 0 insertions, 0 deletions