Re: [PATCH] perf probe: Introduce --no-advice option when a new event is created

From: Aaron Tomlin
Date: Fri Jan 24 2025 - 05:56:09 EST


On Thu, Jan 23, 2025 at 04:25:10PM -0800, Namhyung Kim wrote:
> Hello,

Hi Namhyung,

> Sorry for the late reply.

No problem at all.

> On Sat, Dec 14, 2024 at 07:34:52PM +0000, Aaron Tomlin wrote:
> > This patch introduces a new option namely "--no-advice" to be used with
> > the add command. Now one has the ability to avoid the generation of any
> > advice when a new event is created. Thus making the output reasonable.
> > For example:
> >
> > # perf probe --no-advice --add 'user_path_at%return return=$retval:s32'
> > Added new event:
> > probe:user_path_at__return (on user_path_at%return with return=$retval:s32)
> > #
>
> Thanks for sending the patch but why do you care? You can just ignore
> the message.

I understand.

As a frequent and avid perf-probe user, I often only need to confirm the
successful creation of a new event, ensuring its presence under
/sys/kernel/debug/tracing/events/probes for subsequent use with Ftrace.
The ability to suppress verbose output would be a valuable enhancement.

Please let me know your thoughts.


Kind regards,

--
Aaron Tomlin