Test case '105: perf stat tests' fails for s390.
Ian,
test case '105: perf stat tests' fails for s390 (linux 7.0.0rc2) . It boils down to this command
# ./perf stat -C 0-31 -a true Error: No supported events found.
The first bad commit is this one:
commit cee275edcdb1 ("perf metricgroup: Don't early exit if no CPUID table exists")
Before this commit the output of above command is:
Output before that commit:
./perf stat -C 0-31 -a true
Performance counter stats for 'system wide':
105 context-switches # 3579.8 cs/sec cs_per_second
29.33 msec cpu-clock # 7.8 CPUs CPUs_utilized
34 cpu-migrations # 1159.2 migrations/sec migrations_per_second
52 page-faults # 1772.9 faults/sec page_faults_per_second
5,026,832 cpu-cycles # 0.2 GHz cycles_frequency
3,029,266 instructions # 0.6 instructions insn_per_cycle0.000851608 seconds time elapsed
Since this is executed on an s390 LPAR, hardware event CPU_CYCLES is available, so it should be used. This is something I will look into.
Also some other test cases fail after the bad commit:
./perf test 2>&1 | grep FAILED
99: perf stat CSV output linter : FAILED! 102: perf stat JSON output linter : FAILED! 104: perf stat STD output linter : FAILED! 105: perf stat tests : FAILED! 133: perftool-testsuite_report : FAILED!
Before the bad commit the output is
./perf test 2>&1 | grep FAILED
133: perftool-testsuite_report : FAILED!
Any ideas where to look too narrow down the debuggung are very welcome.
Thanks a lot.
Signature · 9 lines
Thomas Richter, Dept 3303, IBM s390 Linux Development, Boeblingen, Germany -- IBM Deutschland Research & Development GmbH Vorsitzender des Aufsichtsrats: Wolfgang Wendt Geschäftsführung: David Faller Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart, HRB 243294
Quoted 37 lines · Thomas Richter
Ian,
test case '105: perf stat tests' fails for s390 (linux 7.0.0rc2) . It boils down to this command
# ./perf stat -C 0-31 -a true Error: No supported events found.The first bad commit is this one:
commitcee275edcdb1("perf metricgroup: Don't early exit if no CPUID table exists")Before this commit the output of above command is:
Output before that commit:
./perf stat -C 0-31 -a truePerformance counter stats for 'system wide':
105 context-switches # 3579.8 cs/sec cs_per_second 29.33 msec cpu-clock # 7.8 CPUs CPUs_utilized 34 cpu-migrations # 1159.2 migrations/sec migrations_per_second 52 page-faults # 1772.9 faults/sec page_faults_per_second 5,026,832 cpu-cycles # 0.2 GHz cycles_frequency 3,029,266 instructions # 0.6 instructions insn_per_cycle0.000851608 seconds time elapsed
Since this is executed on an s390 LPAR, hardware event
CPU_CYCLESis available, so it should be used. This is something I will look into.Also some other test cases fail after the bad commit:
./perf test 2>&1 | grep FAILED99: perf stat CSV output linter : FAILED! 102: perf stat JSON output linter : FAILED! 104: perf stat STD output linter : FAILED! 105: perf stat tests : FAILED! 133: perftool-testsuite_report : FAILED!
Quoted 5 lines
Before the bad commit the output is
./perf test 2>&1 | grep FAILED
133: perftool-testsuite_report : FAILED!Any ideas where to look too narrow down the debuggung are very welcome.
Hi Thomas, sorry for the breakage! I think the issue is a missed commit in the v7.0 PR, specifically:
https://web.git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools-next.git/commit/tools/perf/util/metricgroup.c?h=perf-tools-next&id=c5a244bf17caf2de22f9e100832b75f72b31d3e6
This has also shown up as breaking stable backports:
https://lore.kernel.org/lkml/[email protected]/
Thanks,
Ian
Quoted 13 lines
Thanks a lot.
--
Thomas Richter, Dept 3303, IBM s390 Linux Development, Boeblingen, Germany --
IBM Deutschland Research & Development GmbHVorsitzender des Aufsichtsrats: Wolfgang Wendt
Geschäftsführung: David Faller
Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart, HRB 243294
Thomas Richter
Tested-byQuoted 44 lines · Ian Rogers
Quoted 37 lines · Thomas Richter
Ian,
test case '105: perf stat tests' fails for s390 (linux 7.0.0rc2) . It boils down to this command
# ./perf stat -C 0-31 -a true Error: No supported events found.The first bad commit is this one:
commitcee275edcdb1("perf metricgroup: Don't early exit if no CPUID table exists")Before this commit the output of above command is:
Output before that commit:
./perf stat -C 0-31 -a truePerformance counter stats for 'system wide':
105 context-switches # 3579.8 cs/sec cs_per_second 29.33 msec cpu-clock # 7.8 CPUs CPUs_utilized 34 cpu-migrations # 1159.2 migrations/sec migrations_per_second 52 page-faults # 1772.9 faults/sec page_faults_per_second 5,026,832 cpu-cycles # 0.2 GHz cycles_frequency 3,029,266 instructions # 0.6 instructions insn_per_cycle0.000851608 seconds time elapsed
Since this is executed on an s390 LPAR, hardware event
CPU_CYCLESis available, so it should be used. This is something I will look into.Also some other test cases fail after the bad commit:
./perf test 2>&1 | grep FAILED99: perf stat CSV output linter : FAILED! 102: perf stat JSON output linter : FAILED! 104: perf stat STD output linter : FAILED! 105: perf stat tests : FAILED! 133: perftool-testsuite_report : FAILED!Quoted 5 lines
Before the bad commit the output is
./perf test 2>&1 | grep FAILED
133: perftool-testsuite_report : FAILED!Any ideas where to look too narrow down the debuggung are very welcome.
Quoted 9 lines
Hi Thomas, sorry for the breakage! I think the issue is a missed commit in the v7.0 PR, specifically:
https://web.git.kernel.org/pub/scm/linux/kernel/git/perf/perf-tools-next.git/commit/tools/perf/util/metricgroup.c?h=perf-tools-next&id=c5a244bf17caf2de22f9e100832b75f72b31d3e6
This has also shown up as breaking stable backports:
https://lore.kernel.org/lkml/[email protected]/Thanks,
Ian
Ian, Thanks very much!
This is the fix I needed, in case its needed:
Signature · 9 lines
Thomas Richter, Dept 3303, IBM s390 Linux Development, Boeblingen, Germany -- IBM Deutschland Research & Development GmbH Vorsitzender des Aufsichtsrats: Wolfgang Wendt Geschäftsführung: David Faller Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart, HRB 243294