diff options
| author | Ian Rogers <irogers@google.com> | 2025-10-09 06:29:11 -0700 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2025-10-13 01:58:51 -0700 |
| commit | 2a67955de13624ec17d1c2504d2c9eeb37933b77 (patch) | |
| tree | 5b169c1a9e2be0518d87a5d0cb03742cabb21b9e /tools/perf/scripts/python | |
| parent | 6090e612cf24393335e709105db31b6d6e36d6ef (diff) | |
| download | linux-2a67955de13624ec17d1c2504d2c9eeb37933b77.tar.gz linux-2a67955de13624ec17d1c2504d2c9eeb37933b77.zip | |
perf bpf_counter: Fix opening of "any"(-1) CPU events
The bperf BPF counter code doesn't handle "any"(-1) CPU events, always
wanting to aggregate a count against a CPU, which avoids the need for
atomics so let's not change that. Force evsels used for BPF counters
to require a CPU when not in system-wide mode so that the "any"(-1)
value isn't used during map propagation and evsel's CPU map matches
that of the PMU.
Fixes: b91917c0c6fa ("perf bpf_counter: Fix handling of cpumap fixing hybrid")
Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
