https://github.com/torvalds/linux
Revision e69a5c010246ca6a87c4e6f13d0a291954bdece8 authored by Zhengjun Xing on 01 June 2022, 15:25:44 UTC, committed by Arnaldo Carvalho de Melo on 03 June 2022, 19:12:34 UTC
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: d98079c05b5a ("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
1 parent 9be4cbd
Tip revision: e69a5c010246ca6a87c4e6f13d0a291954bdece8 authored by Zhengjun Xing on 01 June 2022, 15:25:44 UTC
perf evlist: Extend arch_evsel__must_be_in_group to support hybrid systems
perf evlist: Extend arch_evsel__must_be_in_group to support hybrid systems
Tip revision: e69a5c0
File | Mode | Size |
---|---|---|
scsi_transport_srp | ||
53c700.rst | -rw-r--r-- | 4.6 KB |
BusLogic.rst | -rw-r--r-- | 25.8 KB |
ChangeLog.arcmsr | -rw-r--r-- | 6.6 KB |
ChangeLog.ips | -rw-r--r-- | 5.2 KB |
ChangeLog.lpfc | -rw-r--r-- | 87.6 KB |
ChangeLog.megaraid | -rw-r--r-- | 23.4 KB |
ChangeLog.megaraid_sas | -rw-r--r-- | 25.2 KB |
ChangeLog.ncr53c8xx | -rw-r--r-- | 22.3 KB |
ChangeLog.sym53c8xx | -rw-r--r-- | 28.8 KB |
ChangeLog.sym53c8xx_2 | -rw-r--r-- | 5.9 KB |
FlashPoint.rst | -rw-r--r-- | 8.9 KB |
LICENSE.FlashPoint | -rw-r--r-- | 2.6 KB |
NinjaSCSI.rst | -rw-r--r-- | 3.9 KB |
aacraid.rst | -rw-r--r-- | 6.9 KB |
advansys.rst | -rw-r--r-- | 9.6 KB |
aha152x.rst | -rw-r--r-- | 6.8 KB |
aic79xx.rst | -rw-r--r-- | 21.2 KB |
aic7xxx.rst | -rw-r--r-- | 17.5 KB |
arcmsr_spec.rst | -rw-r--r-- | 25.3 KB |
bfa.rst | -rw-r--r-- | 3.1 KB |
bnx2fc.rst | -rw-r--r-- | 3.1 KB |
cxgb3i.rst | -rw-r--r-- | 3.3 KB |
dc395x.rst | -rw-r--r-- | 3.8 KB |
dpti.rst | -rw-r--r-- | 3.4 KB |
g_NCR5380.rst | -rw-r--r-- | 3.0 KB |
hpsa.rst | -rw-r--r-- | 5.1 KB |
hptiop.rst | -rw-r--r-- | 8.5 KB |
index.rst | -rw-r--r-- | 662 bytes |
libsas.rst | -rw-r--r-- | 13.5 KB |
link_power_management_policy.rst | -rw-r--r-- | 1003 bytes |
lpfc.rst | -rw-r--r-- | 3.1 KB |
megaraid.rst | -rw-r--r-- | 3.1 KB |
ncr53c8xx.rst | -rw-r--r-- | 82.5 KB |
ppa.rst | -rw-r--r-- | 514 bytes |
qlogicfas.rst | -rw-r--r-- | 3.4 KB |
scsi-changer.rst | -rw-r--r-- | 6.4 KB |
scsi-generic.rst | -rw-r--r-- | 4.3 KB |
scsi-parameters.rst | -rw-r--r-- | 2.9 KB |
scsi.rst | -rw-r--r-- | 2.3 KB |
scsi_eh.rst | -rw-r--r-- | 17.0 KB |
scsi_fc_transport.rst | -rw-r--r-- | 23.6 KB |
scsi_mid_low_api.rst | -rw-r--r-- | 52.9 KB |
sd-parameters.rst | -rw-r--r-- | 993 bytes |
smartpqi.rst | -rw-r--r-- | 2.8 KB |
st.rst | -rw-r--r-- | 28.8 KB |
sym53c500_cs.rst | -rw-r--r-- | 1.2 KB |
sym53c8xx_2.rst | -rw-r--r-- | 43.7 KB |
tcm_qla2xxx.rst | -rw-r--r-- | 1018 bytes |
ufs.rst | -rw-r--r-- | 6.7 KB |
wd719x.rst | -rw-r--r-- | 956 bytes |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...