[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210622093241.GC3555@arm.com>
Date: Tue, 22 Jun 2021 10:32:42 +0100
From: Catalin Marinas <catalin.marinas@....com>
To: Mark Rutland <mark.rutland@....com>
Cc: Nick Desaulniers <ndesaulniers@...gle.com>,
Bill Wendling <morbo@...gle.com>,
Masahiro Yamada <masahiroy@...nel.org>,
Will Deacon <will@...nel.org>,
Ard Biesheuvel <ardb@...nel.org>,
Heiko Carstens <hca@...ux.ibm.com>,
Vasily Gorbik <gor@...ux.ibm.com>,
Christian Borntraeger <borntraeger@...ibm.com>,
Peter Oberparleiter <oberpar@...ux.ibm.com>,
Kees Cook <keescook@...omium.org>,
Peter Zijlstra <peterz@...radead.org>,
Bill Wendling <wcw@...gle.com>,
Sami Tolvanen <samitolvanen@...gle.com>,
Miguel Ojeda <miguel.ojeda.sandonis@...il.com>,
Nathan Chancellor <nathan@...nel.org>,
Luc Van Oostenryck <luc.vanoostenryck@...il.com>,
Arnd Bergmann <arnd@...db.de>,
Andrew Morton <akpm@...ux-foundation.org>,
Rasmus Villemoes <linux@...musvillemoes.dk>,
LKML <linux-kernel@...r.kernel.org>,
clang-built-linux <clang-built-linux@...glegroups.com>,
"maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" <x86@...nel.org>,
Borislav Petkov <bp@...en8.de>, Martin Liska <mliska@...e.cz>,
Jonathan Corbet <corbet@....net>,
Fangrui Song <maskray@...gle.com>,
Linux Doc Mailing List <linux-doc@...r.kernel.org>,
Linux Kbuild mailing list <linux-kbuild@...r.kernel.org>,
Dmitry Vyukov <dvyukov@...gle.com>,
Johannes Berg <johannes.berg@...el.com>,
linux-toolchains@...r.kernel.org, Marco Elver <elver@...gle.com>,
Linux ARM <linux-arm-kernel@...ts.infradead.org>,
linux-s390 <linux-s390@...r.kernel.org>
Subject: Re: [PATCH 2/2] Kconfig: CC_HAS_NO_PROFILE_FN_ATTR, depend on for
GCOV and PGO
On Tue, Jun 22, 2021 at 10:29:37AM +0100, Mark Rutland wrote:
> On Tue, Jun 22, 2021 at 10:25:34AM +0100, Catalin Marinas wrote:
> > On Mon, Jun 21, 2021 at 01:43:54PM -0700, Nick Desaulniers wrote:
> > > We need to be able to express via Kconfig "GCOV should not be enabled
> > > for architectures that use noinstr when the toolchain does not support
> > > __attribute__((no_profile_instrument_function))."
> > >
> > > Where "architectures that use noinstr" are currently arm64, s390, and
> > > x86. So I guess we could do:
> > >
> > > + depends on !ARM64 || !S390 || !X86 || CC_HAS_NO_PROFILE_FN_ATTR
> >
> > I think you want:
> >
> > depends on !(ARM64 || S390 || X86) || CC_HAS_NO_PROFILE_FN_ATTR
> >
> > > (We could add a Kconfig for ARCH_WANTS_NO_INSTR, which might be more
> > > informative than listed out architectures which might be non-obvious
> > > to passers-by).
> >
> > That would probably look better.
>
> It does; see:
>
> https://lore.kernel.org/r/20210621231822.2848305-1-ndesaulniers@google.com
I'm getting there, eventually ;).
--
Catalin
Powered by blists - more mailing lists