Re: [PATCH v3] perf evsel: Refactor tool events

From: Namhyung Kim
Date: Tue Jun 11 2024 - 11:51:26 EST


On Fri, 03 May 2024 16:28:49 -0700, Ian Rogers wrote:

> Tool events unnecessarily open a dummy perf event which is useless
> even with `perf record` which will still open a dummy event. Change
> the behavior of tool events so:
>
> - duration_time - call `rdclock` on open and then report the count as
> a delta since the start in evsel__read_counter. This moves code out
> of builtin-stat making it more general purpose.
>
> [...]

Applied to perf-tools-next, thanks!

Best regards,
Namhyung