diff options
author | Tero Kristo <tero.kristo@linux.intel.com> | 2023-09-13 15:59:56 +0300 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2023-10-09 16:12:22 +0200 |
commit | 1765bb61bb18a7b81f68806de6e8b8f5000f65bf (patch) | |
tree | 37f1b540f8501cb51ece10002ac4bbb79f21f41c /tools/perf/scripts/python/gecko.py | |
parent | 05276d4831fe023b6674a72bd6b8c5b39796e690 (diff) |
perf/core: Allow reading package events from perf_event_read_local
Per-package perf events are typically registered with a single CPU only,
however they can be read across all the CPUs within the package.
Currently perf_event_read maps the event CPU according to the topology
information to avoid an unnecessary SMP call, however
perf_event_read_local deals with hard values and rejects a read with a
failure if the CPU is not the one exactly registered. Allow similar
mapping within the perf_event_read_local if the perf event in question
can support this.
This allows users like BPF code to read the package perf events properly
across different CPUs within a package.
Signed-off-by: Tero Kristo <tero.kristo@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20230913125956.3652667-1-tero.kristo@linux.intel.com
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions