* [binutils-gdb] Collect both user and kernel events for autofdo tests and autoprofiledbootstrap
@ 2023-08-12 1:01 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2023-08-12 1:01 UTC (permalink / raw)
To: bfd-cvs, gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=5ce0ff9b5464a030ea956473add180db42dcd513
commit 5ce0ff9b5464a030ea956473add180db42dcd513
Author: Eugene Rozenfeld <erozen@microsoft.com>
Date: Mon Aug 7 13:07:40 2023 +0200
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.
* Makefile.tpl: Collect both kernel and user events for autofdo
Diff:
---
Makefile.tpl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile.tpl b/Makefile.tpl
index 485b2f16fd2..45facbac6a9 100644
--- a/Makefile.tpl
+++ b/Makefile.tpl
@@ -408,7 +408,7 @@ MAKEINFO = @MAKEINFO@
EXPECT = @EXPECT@
RUNTEST = @RUNTEST@
-AUTO_PROFILE = gcc-auto-profile -c 10000000
+AUTO_PROFILE = gcc-auto-profile --all -c 10000000
# This just becomes part of the MAKEINFO definition passed down to
# sub-makes. It lets flags be given on the command line while still
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-08-12 1:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-12 1:01 [binutils-gdb] Collect both user and kernel events for autofdo tests and autoprofiledbootstrap Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).