Re: [PATCH] tracing: bpf: Hide bpf trace events when they are not used

From: Steven Rostedt
Date: Mon Oct 16 2017 - 16:21:59 EST


On Mon, 16 Oct 2017 21:11:06 +0100 (WEST)
David Miller <davem@xxxxxxxxxxxxx> wrote:

> From: Steven Rostedt <rostedt@xxxxxxxxxxx>
> Date: Mon, 16 Oct 2017 16:01:25 -0400
>
> > On Mon, 16 Oct 2017 20:54:34 +0100 (WEST)
> > David Miller <davem@xxxxxxxxxxxxx> wrote:
> >
> >> Steven, I lost track of how this patch is being handled.
> >>
> >> Do you want me to merge it via my net-next tree?
> >
> > If you want. I could take it too if you give me an ack. It's not
> > dependent on any other changes so it doesn't matter which way it goes. I
> > know Alexei was thinking about doing the same for xdp but those appear
> > to be used even without BPF_SYSCALLS.
>
> Ok, applied to my net-next tree and if you want to apply it to your's
> too, here is the ACK:
>
> Acked-by: David S. Miller <davem@xxxxxxxxxxxxx>

Thanks! But if you are taking it, I'm fine with that. It may be a while
before I get my tool applied that detects unused tracepoints at compile
time. I have it working at runtime, but rather have a compiler warning.

-- Steve