void-packages/srcpkgs/linux-tools/patches/perf.patch

16 lines
486 B
Diff

https://lore.kernel.org/linux-perf-users/3a8c66ec-537d-4e29-bf08-226dd41b08aa@linux.intel.com/
--- a/tools/perf/builtin-top.c
+++ b/tools/perf/builtin-top.c
@@ -1027,8 +1027,8 @@
evlist__for_each_entry(evlist, counter) {
try_again:
- if (evsel__open(counter, top->evlist->core.user_requested_cpus,
- top->evlist->core.threads) < 0) {
+ if (evsel__open(counter, counter->core.cpus,
+ counter->core.threads) < 0) {
/*
* Specially handle overwrite fall back.