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 |
---|---|---|
damon | ||
.gitignore | -rw-r--r-- | 60 bytes |
active_mm.rst | -rw-r--r-- | 3.8 KB |
arch_pgtable_helpers.rst | -rw-r--r-- | 18.2 KB |
balance.rst | -rw-r--r-- | 5.3 KB |
bootmem.rst | -rw-r--r-- | 73 bytes |
free_page_reporting.rst | -rw-r--r-- | 2.0 KB |
frontswap.rst | -rw-r--r-- | 13.6 KB |
highmem.rst | -rw-r--r-- | 7.0 KB |
hmm.rst | -rw-r--r-- | 21.0 KB |
hugetlbfs_reserv.rst | -rw-r--r-- | 28.8 KB |
hwpoison.rst | -rw-r--r-- | 5.8 KB |
index.rst | -rw-r--r-- | 1.4 KB |
ksm.rst | -rw-r--r-- | 3.4 KB |
memory-model.rst | -rw-r--r-- | 7.9 KB |
mmu_notifier.rst | -rw-r--r-- | 4.1 KB |
numa.rst | -rw-r--r-- | 8.6 KB |
oom.rst | -rw-r--r-- | 106 bytes |
overcommit-accounting.rst | -rw-r--r-- | 2.7 KB |
page_allocation.rst | -rw-r--r-- | 85 bytes |
page_cache.rst | -rw-r--r-- | 70 bytes |
page_frags.rst | -rw-r--r-- | 2.3 KB |
page_migration.rst | -rw-r--r-- | 13.1 KB |
page_owner.rst | -rw-r--r-- | 7.3 KB |
page_reclaim.rst | -rw-r--r-- | 76 bytes |
page_table_check.rst | -rw-r--r-- | 2.4 KB |
page_tables.rst | -rw-r--r-- | 73 bytes |
physical_memory.rst | -rw-r--r-- | 85 bytes |
process_addrs.rst | -rw-r--r-- | 91 bytes |
remap_file_pages.rst | -rw-r--r-- | 1.6 KB |
shmfs.rst | -rw-r--r-- | 112 bytes |
slab.rst | -rw-r--r-- | 85 bytes |
slub.rst | -rw-r--r-- | 16.4 KB |
split_page_table_lock.rst | -rw-r--r-- | 3.6 KB |
swap.rst | -rw-r--r-- | 52 bytes |
transhuge.rst | -rw-r--r-- | 8.2 KB |
unevictable-lru.rst | -rw-r--r-- | 26.1 KB |
vmalloc.rst | -rw-r--r-- | 154 bytes |
vmalloced-kernel-stacks.rst | -rw-r--r-- | 5.6 KB |
vmemmap_dedup.rst | -rw-r--r-- | 11.1 KB |
z3fold.rst | -rw-r--r-- | 1.2 KB |
zsmalloc.rst | -rw-r--r-- | 3.0 KB |
Computing file changes ...