PR sync from: Junhao He hejunhao3@huawei.com
https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/JPUVYEM5HTGKJKBUMBV6WGHZZHOUQGXY/
The patches stop attempts to auxtrace mmap when it is not an
auxtrace event e.g. when mmapping the CPUs on which only sideband is
captured

Adrian Hunter (6):
libperf evlist: Remove ->idx() per_cpu parameter
libperf evlist: Move ->idx() into mmap_per_evsel()
libperf evlist: Add evsel as a parameter to ->idx()
perf auxtrace: Record whether an auxtrace mmap is needed
perf auxtrace: Add mmap_needed to auxtrace_mmap_params
perf auxtrace: Remove auxtrace_mmap_params__set_idx() per_cpu
parameter

--
2.33.0

#I7HI80:stop attempts to auxtrace mmap when it is not an auxtrace event