]> www.infradead.org Git - users/willy/xarray.git/commit
perf: Add PERF_EV_CAP_READ_SCOPE
authorKan Liang <kan.liang@linux.intel.com>
Fri, 2 Aug 2024 15:16:38 +0000 (08:16 -0700)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 10 Sep 2024 09:44:13 +0000 (11:44 +0200)
commita48a36b316ae5d3ab83f9b545dba15998e96d59c
treec530a3553531bb4c067e39e1c4a0b4044aa85a65
parent4ba4f1afb6a9fed8ef896c2363076e36572f71da
perf: Add PERF_EV_CAP_READ_SCOPE

Usually, an event can be read from any CPU of the scope. It doesn't need
to be read from the advertised CPU.

Add a new event cap, PERF_EV_CAP_READ_SCOPE. An event of a PMU with
scope can be read from any active CPU in the scope.

Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20240802151643.1691631-3-kan.liang@linux.intel.com
include/linux/perf_event.h
kernel/events/core.c