[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <176532913615.498.13429276115753090996.tip-bot2@tip-bot2>
Date: Wed, 10 Dec 2025 01:12:16 -0000
From: "tip-bot2 for Eric Dumazet" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: Eric Dumazet <edumazet@...gle.com>, Thomas Gleixner <tglx@...utronix.de>,
Mathieu Desnoyers <mathieu.desnoyers@...icios.com>, x86@...nel.org,
linux-kernel@...r.kernel.org
Subject: [tip: core/urgent] rseq: Always inline rseq_debug_syscall_return()
The following commit has been merged into the core/urgent branch of tip:
Commit-ID: ad9c647ad7627d1ced814fca6d75d046b5a04d6b
Gitweb: https://git.kernel.org/tip/ad9c647ad7627d1ced814fca6d75d046b5a04d6b
Author: Eric Dumazet <edumazet@...gle.com>
AuthorDate: Fri, 05 Dec 2025 10:07:53
Committer: Thomas Gleixner <tglx@...utronix.de>
CommitterDate: Wed, 10 Dec 2025 10:10:05 +09:00
rseq: Always inline rseq_debug_syscall_return()
To get the full benefit of commit eaa9088d568c ("rseq: Use static branch
for syscall exit debug when GENERIC_IRQ_ENTRY=y"), clang needs
__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 15424491 15872221 +2.9%
Signed-off-by: Eric Dumazet <edumazet@...gle.com>
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@...icios.com>
Link: https://patch.msgid.link/20251205100753.4073221-1-edumazet@google.com
---
include/linux/rseq_entry.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/rseq_entry.h b/include/linux/rseq_entry.h
index c92167f..a36b472 100644
--- a/include/linux/rseq_entry.h
+++ b/include/linux/rseq_entry.h
@@ -596,7 +596,7 @@ static __always_inline void rseq_exit_to_user_mode_legacy(void)
void __rseq_debug_syscall_return(struct pt_regs *regs);
-static inline void rseq_debug_syscall_return(struct pt_regs *regs)
+static __always_inline void rseq_debug_syscall_return(struct pt_regs *regs)
{
if (static_branch_unlikely(&rseq_debug_enabled))
__rseq_debug_syscall_return(regs);
Powered by blists - more mailing lists