linux-stable/tools
Zhengjun Xing 4a6022c133 perf evlist: Extend arch_evsel__must_be_in_group to support hybrid systems
commit e69a5c0102 upstream.

For the hybrid system, the "slots" event changes to "cpu_core/slots/", need
extend API arch_evsel__must_be_in_group() to support hybrid systems.

In the origin code, for hybrid system event "cpu_core/slots/", the output
of the API arch_evsel__must_be_in_group() is "false" (in fact,it should be
"true"). Currently only one API evsel__remove_from_group() calls it. In
evsel__remove_from_group(), it adds the second condition to check, so the
output of evsel__remove_from_group() still is correct. That's the reason
why there isn't an instant error. I'd like to fix the issue found in API
arch_evsel__must_be_in_group() in case someone else using the function in
the other place.

Fixes: d98079c05b ("perf evlist: Keep topdown counters in weak group")
Signed-off-by: Zhengjun Xing <zhengjun.xing@linux.intel.com>
Reviewed-by: Kan Liang <kan.liang@linux.intel.com>
Acked-by: Ian Rogers <irogers@google.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Link: https://lore.kernel.org/r/20220601152544.1842447-1-zhengjun.xing@linux.intel.com
Cc: peterz@infradead.org
Cc: adrian.hunter@intel.com
Cc: alexander.shishkin@intel.com
Cc: acme@kernel.org
Cc: ak@linux.intel.com
Cc: jolsa@redhat.com
Cc: mingo@redhat.com
Cc: linux-kernel@vger.kernel.org
Cc: linux-perf-users@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-06-09 10:26:31 +02:00
..
accounting
arch x86/tsx: Disable TSX development mode at boot 2022-04-20 09:36:26 +02:00
bootconfig
bpf bpftool: Fix print error when show bpf map 2022-04-08 13:58:22 +02:00
build perf build: Fix btf__load_from_kernel_by_id() feature check 2022-06-09 10:26:14 +02:00
cgroup tools/cgroup/slabinfo: update to work with struct slab 2022-02-21 11:34:49 +01:00
counter
debugging
edid
firewire
firmware
gpio
hv
iio
include bpf: Fix comment for helper bpf_current_task_under_cgroup() 2022-04-08 13:59:00 +02:00
io_uring
kvm/kvm_stat
laptop
leds
lib libbpf: Fix logic for finding matching program for CO-RE relocation 2022-06-09 10:25:44 +02:00
memory-model tools/memory-model/README: Update klitmus7 compat table 2022-06-06 08:47:53 +02:00
objtool objtool: Fix symbol creation 2022-06-09 10:26:16 +02:00
pci
pcmcia
perf perf evlist: Extend arch_evsel__must_be_in_group to support hybrid systems 2022-06-09 10:26:31 +02:00
power tools/power turbostat: fix ICX DRAM power numbers 2022-06-09 10:25:20 +02:00
rcu
scripts
spi
testing kseltest/cgroup: Make test_stress.sh work if run interactively 2022-06-09 10:26:31 +02:00
thermal/tmon
time
tracing rtla: Fix __set_sched_attr error message 2022-06-09 10:26:15 +02:00
usb
virtio tools/virtio: compile with -pthread 2022-05-25 09:59:00 +02:00
vm
wmi
Makefile