[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <e12f45f5-f4d2-45cb-b281-8cb1371fa966@kernel.org>
Date: Fri, 28 Nov 2025 11:50:25 +0800
From: Chao Yu <chao@...nel.org>
To: YH Lin <yhli@...gle.com>
Cc: chao@...nel.org, Jaegeuk Kim <jaegeuk@...nel.org>,
linux-f2fs-devel@...ts.sourceforge.net, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] f2fs: optimize trace_f2fs_write_checkpoint with enums
On 11/28/25 11:23, YH Lin wrote:
> 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@...gle.com>
Reviewed-by: Chao Yu <chao@...nel.org>
Thanks,
Powered by blists - more mailing lists