Re: [PATCH v9] pgo: add clang's Profile Guided Optimization infrastructure

From
Peter Zijlstra <peterz@infradead.org>
Date
2021-06-14 10:18:55
Also in
linux-kbuild, lkml
Reply to
Peter Zijlstra, 2021-06-14
On Mon, Jun 14, 2021 at 11:43:12AM +0200, Peter Zijlstra wrote:
On Sun, Jun 13, 2021 at 11:07:26AM -0700, Bill Wendling wrote:
quoted
quoted
quoted
Now, for the "nointr" issue. I'll see if we need an additional change for that.
The GCOV implementation disables profiling in those directories where
instrumentation would fail. We do the same. Both clang and gcc seem to
treat the no_instrument_function attribute similarly.
Both seem to emit instrumentation, so they're both, simliarly, *broken*.

noinstr *MUST* disable all compiler generated instrumentation. Also see:

  https://lkml.kernel.org/r/20210527194448.3470080-1-elver@google.com (local)

I'll go mark GCOV support as BROKEN for x86.
https://lkml.kernel.org/r/YMcssV/n5IBGv4f0@hirez.programming.kicks-ass.net
Thread (99 messages) 99 messages, 10 authors, last reply 2021-06-14
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help