Skip to content

Commit bdae29d

Browse files
edumazetingomolnar
authored andcommitted
rseq: Always inline rseq_debug_syscall_return()
To get the full benefit of: eaa9088 ("rseq: Use static branch for syscall exit debug when GENERIC_IRQ_ENTRY=y") clang needs an __always_inline instead of a plain inline qualifier: $ for i in {1..10}; do taskset -c 4 perf5 bench syscall basic -l 100000000 | grep "ops/sec"; done Before After ops/sec 1542449 15872221 +2.9% Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@kernel.org> Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Link: https://patch.msgid.link/20251205100753.4073221-1-edumazet@google.com
1 parent d36067d commit bdae29d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/linux/rseq_entry.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ static __always_inline void rseq_exit_to_user_mode_legacy(void)
596596

597597
void __rseq_debug_syscall_return(struct pt_regs *regs);
598598

599-
static inline void rseq_debug_syscall_return(struct pt_regs *regs)
599+
static __always_inline void rseq_debug_syscall_return(struct pt_regs *regs)
600600
{
601601
if (static_branch_unlikely(&rseq_debug_enabled))
602602
__rseq_debug_syscall_return(regs);

0 commit comments

Comments
 (0)