[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <528036f5-cb79-4a7f-9421-5cfa17a849b7@bytedance.com>
Date: Wed, 4 Dec 2024 16:21:24 +0800
From: Yang Jihong <yangjihong@...edance.com>
To: Arnaldo Carvalho de Melo <acme@...nel.org>
Cc: peterz@...radead.org, mingo@...hat.com, namhyung@...nel.org,
mark.rutland@....com, alexander.shishkin@...ux.intel.com, jolsa@...nel.org,
irogers@...gle.com, adrian.hunter@...el.com, kan.liang@...ux.intel.com,
james.clark@....com, linux-perf-users@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [External] Re: [RFC 00/12] perf record: Add event action support
Hello,
On 11/29/24 04:14, Arnaldo Carvalho de Melo wrote:
> On Thu, Nov 28, 2024 at 09:35:41PM +0800, Yang Jihong wrote:
>> In perf-record, when an event is triggered, default behavior is to
>> save sample data to perf.data. Sometimes, we may just want to do
>> some lightweight actions, such as printing a log.
>
>> Based on this requirement, add the --action option to the event to
>> specify the behavior when the event occurs.
>
> 'perf record' is centered on saving data to disk without processing
> events, while it has sideband events for some needs, like processing BPF
> related events (PERF_RECORD_BPF_EVENT to catch PERF_BPF_EVENT_PROG_LOAD
> and UNLOAD), doing things in a "live" way as your patchkit does seems
> more appropriate to do in 'perf trace' :-)
Ok, we can put it in "perf trace".
>
> I'll take a look at the rest of the patch series.
Thanks for reviewing this patchset. Currently, this patchset only
implements a print() call and only supports attaching to tracepoints.
The functionality is relatively simple.
Eventually, we can use bpf prog to allow users to customize the sampled
data to and the processing of the data.
we can continue to expand the functionality (for example, attaching to
kprobe events, printing the parameters and return values of the target
function)
Thanks,
Yang
Powered by blists - more mailing lists