linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFC 0/5] x86/asm: Improve code generation
@ 2025-04-08  8:21 Josh Poimboeuf
  2025-04-08  8:21 ` [PATCH RFC 1/5] objtool: Remove ANNOTATE_IGNORE_ALTERNATIVE from CLAC/STAC Josh Poimboeuf
                   ` (4 more replies)
  0 siblings, 5 replies; 20+ messages in thread
From: Josh Poimboeuf @ 2025-04-08  8:21 UTC (permalink / raw)
  To: x86; +Cc: linux-kernel, Linus Torvalds, Ingo Molnar, Peter Zijlstra

Some various improvements for inline asm code generation.

The "RFC" is really patches 4 and 5, they propose a more readable format
for alternatives and objtool annotations.  Bikeshedding welcome.

If a general format is agreed upon, we could do similar for other
annotations like WARN/BUG, static branches/calls, etc.

Josh Poimboeuf (5):
  objtool: Remove ANNOTATE_IGNORE_ALTERNATIVE from CLAC/STAC
  objtool, x86/hweight: Remove ANNOTATE_IGNORE_ALTERNATIVE
  noinstr: Use asm_inline() in instrumentation_{begin,end}()
  x86/alternative: Improve code generation readability
  objtool: Improve code generation readability

 arch/x86/include/asm/alternative.h  | 88 ++++++++++++++++++--------
 arch/x86/include/asm/arch_hweight.h |  6 +-
 arch/x86/include/asm/smap.h         | 12 ++--
 include/linux/instrumentation.h     |  4 +-
 include/linux/objtool.h             | 97 ++++++++++++++---------------
 tools/objtool/check.c               | 30 ++++++++-
 6 files changed, 149 insertions(+), 88 deletions(-)

-- 
2.49.0


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

end of thread, other threads:[~2025-04-16 23:30 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-08  8:21 [PATCH RFC 0/5] x86/asm: Improve code generation Josh Poimboeuf
2025-04-08  8:21 ` [PATCH RFC 1/5] objtool: Remove ANNOTATE_IGNORE_ALTERNATIVE from CLAC/STAC Josh Poimboeuf
2025-04-08 18:07   ` Linus Torvalds
2025-04-08 20:45   ` [tip: objtool/urgent] " tip-bot2 for Josh Poimboeuf
2025-04-08  8:21 ` [PATCH RFC 2/5] objtool, x86/hweight: Remove ANNOTATE_IGNORE_ALTERNATIVE Josh Poimboeuf
2025-04-08  8:21 ` [PATCH RFC 3/5] noinstr: Use asm_inline() in instrumentation_{begin,end}() Josh Poimboeuf
2025-04-08  8:30   ` Ingo Molnar
2025-04-08 11:10     ` Uros Bizjak
2025-04-08 16:46       ` Josh Poimboeuf
2025-04-08  8:21 ` [PATCH RFC 4/5] x86/alternative: Improve code generation readability Josh Poimboeuf
2025-04-09 14:38   ` Peter Zijlstra
2025-04-09 17:41     ` Josh Poimboeuf
2025-04-09 18:02       ` Linus Torvalds
2025-04-09 19:51         ` Josh Poimboeuf
2025-04-09 21:20           ` Linus Torvalds
2025-04-09 21:27             ` Josh Poimboeuf
2025-04-09 21:55               ` Josh Poimboeuf
2025-04-16 23:30         ` Josh Poimboeuf
2025-04-08  8:21 ` [PATCH RFC 5/5] objtool: " Josh Poimboeuf
2025-04-09 14:40   ` Peter Zijlstra

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).