Re: [PATCH] alarmtimer: Hide alarmtimer_suspend event when RTC_CLASS is not configured

From: Steven Rostedt
Date: Mon Jun 16 2025 - 14:49:37 EST


On Fri, 13 Jun 2025 18:44:33 +0200
Thomas Gleixner <tglx@xxxxxxxxxxxxx> wrote:

> On Thu, Jun 12 2025 at 09:58, Steven Rostedt wrote:
> > From: Steven Rostedt <rostedt@xxxxxxxxxxx>
> >
> > The trace event alarmtimer_suspend is only called when RTC_CLASS is not
> > defined.
>
> s/not//
>
> No?

Ah yeah.

>
> > As every event created can create up to 5K of text and meta data
> > regardless if it is called or not it should not be created and waste
> > memory. Hide the event when CONFIG_RTC_CLASS is not defined.
> >
> > Signed-off-by: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx>
>
> Other than that:
>
> Acked-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>

Thanks!

-- Steve