Skip to content

Commit 275f7bc

Browse files
committed
Collect both user and kernel events for autofdo tests and autoprofiledbootstrap
When we collect just user events for autofdo with lbr we get some events where branch sources are kernel addresses and branch targets are user addresses. Without kernel MMAP events create_gcov can't make sense of kernel addresses. Currently create_gcov fails if it can't map at least 95% of events. We sometimes get below this threshold with just user events. The change is to collect both user events and kernel events. Tested on x86_64-pc-linux-gnu. ChangeLog: * Makefile.in: Collect both kernel and user events for autofdo * Makefile.tpl: Collect both kernel and user events for autofdo gcc/testsuite/ChangeLog: * lib/target-supports.exp: Collect both kernel and user events for autofdo
1 parent bdf2737 commit 275f7bc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ MAKEINFO = @MAKEINFO@
404404
EXPECT = @EXPECT@
405405
RUNTEST = @RUNTEST@
406406

407-
AUTO_PROFILE = gcc-auto-profile -c 10000000
407+
AUTO_PROFILE = gcc-auto-profile --all -c 10000000
408408

409409
# This just becomes part of the MAKEINFO definition passed down to
410410
# sub-makes. It lets flags be given on the command line while still

Makefile.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ MAKEINFO = @MAKEINFO@
407407
EXPECT = @EXPECT@
408408
RUNTEST = @RUNTEST@
409409

410-
AUTO_PROFILE = gcc-auto-profile -c 10000000
410+
AUTO_PROFILE = gcc-auto-profile --all -c 10000000
411411

412412
# This just becomes part of the MAKEINFO definition passed down to
413413
# sub-makes. It lets flags be given on the command line while still

gcc/testsuite/lib/target-supports.exp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ proc check_effective_target_keeps_null_pointer_checks { } {
704704
# this allows parallelism of 16 and higher of parallel gcc-auto-profile
705705
proc profopt-perf-wrapper { } {
706706
global srcdir
707-
return "$srcdir/../config/i386/gcc-auto-profile -m8 "
707+
return "$srcdir/../config/i386/gcc-auto-profile --all -m8 "
708708
}
709709

710710
# Return true if profiling is supported on the target.

0 commit comments

Comments
 (0)