]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Correct aarch64: AutoFDO: Add support for ARM SPE to autoprofiledbootstrap
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 11 Apr 2026 05:58:13 +0000 (13:58 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 11 Apr 2026 06:56:21 +0000 (14:56 +0800)
5df258ae1ad01fc75705a35296a29fd359121845
commit 5df258ae1ad01fc75705a35296a29fd359121845 (HEAD)
Author: Dhruv Chawla <dhruvc@nvidia.com>
Date:   Thu Feb 12 04:06:03 2026 +0000

    aarch64: AutoFDO: Add support for ARM SPE to autoprofiledbootstrap

added

set profiler_check [string trim [lindex [remote_exec target "perf list | grep arm_spe"] 1]]

to lib/profopt.exp which caused:

WARNING: program timed out

during "make check":

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124849

Pass --no-pager to perf to fix it.

PR testsuite/124849
* lib/profopt.exp (profopt-execute): Pass --no-pager to perf.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
gcc/testsuite/lib/profopt.exp

index 7a03b38692c3ec47e7d1644a3399ab1cac586b0b..370b45436fb8ac127079e0c2152894d241d99401 100644 (file)
@@ -456,7 +456,7 @@ proc profopt-execute { src } {
                 set bprefix "afdo."
                set compiler [lindex $GCC_UNDER_TEST 0]
                set autofdo_version [string trim [lindex [remote_exec target "$compiler --print-autofdo-gcov-version"] 1] ]
-               set profiler_check [string trim [lindex [remote_exec target "perf list | grep arm_spe"] 1]]
+               set profiler_check [string trim [lindex [remote_exec target "perf --no-pager list | grep arm_spe"] 1]]
                if {$profiler_check ne ""} {
                    set profiler "perf_spe"
                } else {