Skip to content

Commit bceb7ac

Browse files
committed
Merge tag 'perf-core-2023-10-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull performance event updates from Ingo Molnar: - Add AMD Unified Memory Controller (UMC) events introduced with Zen 4 - Simplify & clean up the uncore management code - Fall back from RDPMC to RDMSR on certain uncore PMUs - Improve per-package and cstate event reading - Extend the Intel ref-cycles event to GP counters - Fix Intel MTL event constraints - Improve the Intel hybrid CPU handling code - Micro-optimize the RAPL code - Optimize perf_cgroup_switch() - Improve large AUX area error handling - Misc fixes and cleanups * tag 'perf-core-2023-10-28' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (26 commits) perf/x86/amd/uncore: Pass through error code for initialization failures, instead of -ENODEV perf/x86/amd/uncore: Fix uninitialized return value in amd_uncore_init() x86/cpu: Fix the AMD Fam 17h, Fam 19h, Zen2 and Zen4 MSR enumerations perf: Optimize perf_cgroup_switch() perf/x86/amd/uncore: Add memory controller support perf/x86/amd/uncore: Add group exclusivity perf/x86/amd/uncore: Use rdmsr if rdpmc is unavailable perf/x86/amd/uncore: Move discovery and registration perf/x86/amd/uncore: Refactor uncore management perf/core: Allow reading package events from perf_event_read_local perf/x86/cstate: Allow reading the package statistics from local CPU perf/x86/intel/pt: Fix kernel-doc comments perf/x86/rapl: Annotate 'struct rapl_pmus' with __counted_by perf/core: Rename perf_proc_update_handler() -> perf_event_max_sample_rate_handler(), for readability perf/x86/rapl: Fix "Using plain integer as NULL pointer" Sparse warning perf/x86/rapl: Use local64_try_cmpxchg in rapl_event_update() perf/x86/rapl: Stop doing cpu_relax() in the local64_cmpxchg() loop in rapl_event_update() perf/core: Bail out early if the request AUX area is out of bound perf/x86/intel: Extend the ref-cycles event to GP counters perf/x86/intel: Fix broken fixed event constraints extension ...
2 parents cd063c8 + 744940f commit bceb7ac

File tree

14 files changed

+1093
-689
lines changed

14 files changed

+1093
-689
lines changed

arch/x86/events/amd/uncore.c

Lines changed: 694 additions & 366 deletions
Large diffs are not rendered by default.

arch/x86/events/core.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1887,9 +1887,9 @@ ssize_t events_hybrid_sysfs_show(struct device *dev,
18871887

18881888
str = pmu_attr->event_str;
18891889
for (i = 0; i < x86_pmu.num_hybrid_pmus; i++) {
1890-
if (!(x86_pmu.hybrid_pmu[i].cpu_type & pmu_attr->pmu_type))
1890+
if (!(x86_pmu.hybrid_pmu[i].pmu_type & pmu_attr->pmu_type))
18911891
continue;
1892-
if (x86_pmu.hybrid_pmu[i].cpu_type & pmu->cpu_type) {
1892+
if (x86_pmu.hybrid_pmu[i].pmu_type & pmu->pmu_type) {
18931893
next_str = strchr(str, ';');
18941894
if (next_str)
18951895
return snprintf(page, next_str - str + 1, "%s", str);
@@ -2169,7 +2169,7 @@ static int __init init_hw_perf_events(void)
21692169
hybrid_pmu->pmu.capabilities |= PERF_PMU_CAP_EXTENDED_HW_TYPE;
21702170

21712171
err = perf_pmu_register(&hybrid_pmu->pmu, hybrid_pmu->name,
2172-
(hybrid_pmu->cpu_type == hybrid_big) ? PERF_TYPE_RAW : -1);
2172+
(hybrid_pmu->pmu_type == hybrid_big) ? PERF_TYPE_RAW : -1);
21732173
if (err)
21742174
break;
21752175
}

0 commit comments

Comments
 (0)