+13
−0
Loading
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: b91917c0 ("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>