linux-toolchains.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] no_profile fn attr and Kconfig for GCOV+PGO
@ 2021-06-18 23:30 Nick Desaulniers
  2021-06-18 23:30 ` [PATCH 1/2] compiler_attributes.h: define __no_profile, add to noinstr Nick Desaulniers
                   ` (3 more replies)
  0 siblings, 4 replies; 20+ messages in thread
From: Nick Desaulniers @ 2021-06-18 23:30 UTC (permalink / raw)
  To: Kees Cook
  Cc: Peter Zijlstra, Bill Wendling, Sami Tolvanen,
	Peter Oberparleiter, Masahiro Yamada, Miguel Ojeda,
	Nathan Chancellor, Luc Van Oostenryck, Ard Biesheuvel,
	Will Deacon, Arnd Bergmann, Andrew Morton, Rasmus Villemoes,
	linux-kernel, clang-built-linux, x86, Borislav Petkov,
	Martin Liska, Marco Elver, Jonathan Corbet, Fangrui Song,
	linux-doc, linux-kbuild, Dmitry Vyukov, johannes.berg,
	linux-toolchains, Nick Desaulniers

When we say noinstr, we mean noinstr.  GCOV and PGO can both instrument
functions. Add a new function annotation __no_profile that expands to
__attribute__((__no_profile__)) and Kconfig value
CC_HAS_NO_PROFILE_FN_ATTR.

Base is
https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git/log/?h=for-next/clang/pgo.

Nick Desaulniers (2):
  compiler_attributes.h: define __no_profile, add to noinstr
  Kconfig: CC_HAS_NO_PROFILE_FN_ATTR, depend on for GCOV and PGO

 include/linux/compiler_attributes.h | 12 ++++++++++++
 include/linux/compiler_types.h      |  2 +-
 init/Kconfig                        |  3 +++
 kernel/gcov/Kconfig                 |  1 +
 kernel/pgo/Kconfig                  |  3 ++-
 5 files changed, 19 insertions(+), 2 deletions(-)


base-commit: 4356bc4c0425c81e204f561acf4dd0095544a6cb
-- 
2.32.0.288.g62a8d224e6-goog


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2021-06-22  9:32 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-18 23:30 [PATCH 0/2] no_profile fn attr and Kconfig for GCOV+PGO Nick Desaulniers
2021-06-18 23:30 ` [PATCH 1/2] compiler_attributes.h: define __no_profile, add to noinstr Nick Desaulniers
2021-06-19 11:26   ` Miguel Ojeda
2021-06-19 11:32     ` Miguel Ojeda
2021-06-21 18:10       ` Nick Desaulniers
2021-06-21 18:24         ` Fangrui Song
2021-06-21 19:09           ` Miguel Ojeda
2021-06-18 23:30 ` [PATCH 2/2] Kconfig: CC_HAS_NO_PROFILE_FN_ATTR, depend on for GCOV and PGO Nick Desaulniers
2021-06-19  6:23   ` Marco Elver
2021-06-21 18:22     ` Nick Desaulniers
2021-06-21 18:50       ` Bill Wendling
2021-06-21 20:43         ` Nick Desaulniers
2021-06-21 21:15           ` Nathan Chancellor
2021-06-22  9:25           ` Catalin Marinas
2021-06-22  9:29             ` Mark Rutland
2021-06-22  9:32               ` Catalin Marinas
2021-06-18 23:52 ` [PATCH 0/2] no_profile fn attr and Kconfig for GCOV+PGO Fangrui Song
2021-06-19  2:45 ` Kees Cook
2021-06-20  8:08   ` Bill Wendling
2021-06-20 14:53   ` Miguel Ojeda

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 NNTP newsgroup(s).