Re: [PATCH] tracing: sched: Hide numa events under CONFIG_NUMA_BALANCING

From: Steven Rostedt
Date: Fri Jul 25 2025 - 09:00:39 EST


On Wed, 23 Jul 2025 15:14:26 +0530
Shrikanth Hegde <sshegde@xxxxxxxxxxxxx> wrote:

> On 6/12/25 19:35, Steven Rostedt wrote:
> > From: Steven Rostedt <rostedt@xxxxxxxxxxx>
> >
> > The events sched_move_numa, sched_stick_numa and sched_swap_numa are only
> > called when CONFIG_NUMA_BALANCING is configured. As each event can take up
> > to 5K of memory in text and meta data regardless if they are used or not,
> > they should not be defined when used.
>
> they should be defined when used?

That was supposed to be: "they should not be defined when unused."

Thanks for pointing it out.

>
> Reviewed-by: Shrikanth Hegde <sshegde@xxxxxxxxxxxxx>

Thanks!

-- Steve