Re: [PATCH 0/2] tracing: tprobe-events: Fixes for tprobe events

From: Google

Date: Thu Nov 06 2025 - 17:28:35 EST


On Thu, 6 Nov 2025 17:55:13 +0000
Beau Belgrave <beaub@xxxxxxxxxxxxxxxxxxx> wrote:

> On Fri, Nov 07, 2025 at 01:52:05AM +0900, Masami Hiramatsu (Google) wrote:
> > Hi,
> >
> > Beau reported tprobe example in the document does not work on 6.17
> > kernel.
> >
>
> Thanks! I've applied this series locally and tested this. Everything
> works well in our environment.

Great!

>
> >
> > And found it forgot to set tuser->tpoint before calling
> > tracepoint_user_register() which calls
> > tracepoint_probe_register_prio_may_exist(tuser->tpoint).
> > To fix that, I just moved the tuser->tpoint setting line
> > right before tracepoint_user_register() call [1/2].
> >
> > I also found another issue when I switched enable and disable[2/2].
> >
>
> Thanks! I've validated no bad dmesg, etc. and can delete the tprobe
> without issues after we disable it.
>
> > I hope this report will help someone to do similar debug by tracing.
> >
>
> I will reference this, it's very useful.
>
> For the series:
> Tested-by: Beau Belgrave <beaub@xxxxxxxxxxxxxxxxxxx>
> Reviewed-by: Beau Belgrave <beaub@xxxxxxxxxxxxxxxxxxx>

Thanks!


>
> Thanks,
> -Beau
> > Thank you,
> >
> > ---
> >
> > Masami Hiramatsu (Google) (2):
> > tracing: tprobe-events: Fix to register tracepoint correctly
> > tracing: tprobe-events: Fix to put tracepoint_user when disable the tprobe
> >
> >
> > kernel/trace/trace_fprobe.c | 7 ++++++-
> > 1 file changed, 6 insertions(+), 1 deletion(-)
> >
> > --
> > Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx>


--
Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx>