Re: [PATCH 1/5] perf/sdt: Show proper hint

From: Ingo Molnar
Date: Thu Feb 02 2017 - 08:41:02 EST



* Ravi Bangoria <ravi.bangoria@xxxxxxxxxxxxxxxxxx> wrote:

> After patch:
> $ perf record -e sdt_glib:main__after_check
> event syntax error: 'sdt_glib:idle__add'
> \___ unknown tracepoint
>
> Error: File /sys/kernel/debug/tracing/events/sdt_glib/idle__add ...
> Hint: SDT event has to be probed before recording it.

So what is the command line option to 'probe' an SDT event? Could you give an
example that would make the above command work?

Thanks,

Ingo