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. Each trace event can take up to around 5K in memory regardless if they are used or not. Soon there will be warnings when they are defined but not used. Please remove any unused trace event or at least hide it under an #ifdef if they are used within configs. I'm planning on adding these warning in the next merge window. Thanks, -- Steve [1] https://lore.kernel.org/linux-trace-kernel/20250612235827.011358...@goodmis.org/