Re: [PATCH v3 00/46] Fix perf on Intel hybrid CPUs

From: Liang, Kan
Date: Mon May 01 2023 - 16:35:08 EST




On 2023-04-29 1:34 a.m., Ian Rogers wrote:
> Sample output is contained in the v1 patch set:
> https://lore.kernel.org/lkml/bff481ba-e60a-763f-0aa0-3ee53302c480@xxxxxxxxxxxxxxx/
>
> Tested on Tigerlake, Skylake and Alderlake CPUs.

The metrics and metricgroups tests are failed on a hybrid machine.
Seems we need the no group trick for more metrics?

./perf test "perf all metricgroups test"
102: perf all metricgroups test :
FAILED!


Testing DataSharing
Error:
The sys_perf_event_open() syscall returned with 22 (Invalid argument)
for event (cpu_core/topdown-fe-bound/).
/bin/dmesg | grep -i perf may provide additional information.

test child finished with -1
---- end ----
perf all metricgroups test: FAILED!




./perf test "perf all metrics test"
103: perf all metrics test :
FAILED!

Testing tma_info_branctest child finished with -1
---- end ----
perf all metrics test: FAILED!

Testing tma_contested_accesses
Metric 'tma_contested_accesses' not printed in:
Error:
Invalid event (cpu_core/topdown-fe-bound/) in per-thread mode, enable
system wide with '-a'.

Metric 'tma_dram_bound' not printed in:
Error:
Invalid event (cpu_core/topdown-mem-bound/) in per-thread mode, enable
system wide with '-a'.


Metric 'tma_data_sharing' not printed in:
Error:
Invalid event (cpu_core/topdown-fe-bound/) in per-thread mode, enable
system wide with '-a'.


Thanks,
Kan