perf test bpf-counters failing on some hybrid machines

From: Arnaldo Carvalho de Melo
Date: Sat Jan 27 2024 - 14:47:07 EST


IIRC there is a patch by Thomas Richter for s390 for this? I'll check

Fails:

root@number:~# uname -a
Linux number 6.6.13-200.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Jan 20 18:03:28 UTC 2024 x86_64 GNU/Linux
root@number:~#
root@number:~# perf test -v 106
106: perf stat --bpf-counters test :
--- start ---
test child forked, pid 997337
The difference between 292281328 and 383336121 are greater than 10%.
test child finished with -1
---- end ----
perf stat --bpf-counters test: FAILED!
root@number:~# grep -m1 "model name" /proc/cpuinfo
model name : Intel(R) Core(TM) i7-14700K
root@number:~#

Fails sometimes:

root@x1:~# uname -a
Linux x1 6.6.13-200.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Jan 20 18:03:28 UTC 2024 x86_64 GNU/Linux
root@x1:~# perf test 106
106: perf stat --bpf-counters test : Ok
root@x1:~# grep -m1 "model name" /proc/cpuinfo
model name : 13th Gen Intel(R) Core(TM) i7-1365U
root@x1:~# perf test 106
106: perf stat --bpf-counters test : Ok
root@x1:~# perf test 106
106: perf stat --bpf-counters test : Ok
root@x1:~# perf test 106
106: perf stat --bpf-counters test : Ok
root@x1:~# perf test 106
106: perf stat --bpf-counters test : Ok
root@x1:~# perf test 106
106: perf stat --bpf-counters test : Ok
root@x1:~# perf test 106
106: perf stat --bpf-counters test : Ok
root@x1:~# perf test 106
106: perf stat --bpf-counters test : FAILED!
root@x1:~# perf test 106
106: perf stat --bpf-counters test : Ok
root@x1:~# perf test 106
106: perf stat --bpf-counters test : FAILED!
root@x1:~# perf test 106
106: perf stat --bpf-counters test : Ok
root@x1:~# perf test 106
106: perf stat --bpf-counters test : Ok
root@x1:~# perf test 106
106: perf stat --bpf-counters test : Ok
root@x1:~# perf test -v 106
106: perf stat --bpf-counters test :
--- start ---
test child forked, pid 279934
test child finished with 0
---- end ----
perf stat --bpf-counters test: Ok
root@x1:~# perf test -v 106
106: perf stat --bpf-counters test :
--- start ---
test child forked, pid 280029
The difference between 261175698 and 219929411 are greater than 10%.
test child finished with -1
---- end ----
perf stat --bpf-counters test: FAILED!
root@x1:~# perf test -v 106
106: perf stat --bpf-counters test :
--- start ---
test child forked, pid 280124
The difference between 251455173 and 299125735 are greater than 10%.
test child finished with -1
---- end ----
perf stat --bpf-counters test: FAILED!
root@x1:~#



- Arnaldo