Unused trace event in erofs

Gao Xiang hsiangkao at linux.alibaba.com
Tue Jun 17 23:25:25 AEST 2025



On 2025/6/17 18:50, Hongbo Li wrote:
> 
> 
> On 2025/6/13 20:17, Steven Rostedt wrote:
>> On Fri, 13 Jun 2025 14:08:32 +0800
>> Gao Xiang <hsiangkao at linux.alibaba.com> wrote:
>>
>>> Hi Steven,
>>>
>>> On 2025/6/13 10:49, Steven Rostedt wrote:
>>>> I have code that will trigger a warning if a trace event is defined but
>>>> not used[1]. It gives a list of unused events. Here's what I have for
>>>> erofs:
>>>>
>>>> warning: tracepoint 'erofs_destroy_inode' is unused.
>>>
>>> I'm fine to remove it, also I wonder if it's possible to disable
>>> erofs tracepoints (rather than disable all tracepoints) in some
>>> embedded use cases because erofs tracepoints might not be useful for
>>> them and it can save memory (and .ko size) as you said below.
>>
>> You can add #ifdef around them.
>>
> Should we introduce a new CONFIG to disable them?

I'd like to, and it seems much helpful to the embedded
device users.

Thanks,
Gao Xiang


More information about the Linux-erofs mailing list