summaryrefslogtreecommitdiff
path: root/scripts/decode_stacktrace.sh
diff options
context:
space:
mode:
authorMukesh Kumar Chaurasiya (IBM) <mkchauras@gmail.com>2026-09-29 12:47:44 +0530
committerMadhavan Srinivasan <maddy@linux.ibm.com>2026-10-12 09:31:44 +0530
commit66236558dfac63d9bea5b0b6a66a4d717529c118 (patch)
tree0860d6a73b31a631052aa58a1006c7ea9c6c7880 /scripts/decode_stacktrace.sh
parentde5a7fedf5061bdf6823eb509353bd7c128e34b5 (diff)
powerpc/syscall: Avoid atomic test_and_clear_thread_flag on fast path
In system_call_exception(), test_and_clear_thread_flag(TIF_SYSCALL_RET) performs an atomic bit test-and-clear operation on every system call entry. This introduces an unnecessary performance regression on the syscall fast path. Combine the TIF_SYSCALL_RET check with the unlikely error condition from syscall_enter_from_user_mode_randomize_stack() using non-atomic test_thread_flag(). If the flag is set or entry failed, only then clear the flag via clear_thread_flag() and return the error value. Signed-off-by: Mukesh Kumar Chaurasiya (IBM) <mkchauras@gmail.com> Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com> Link: https://patch.msgid.link/20260929071744.2965058-1-mkchauras@gmail.com
Diffstat (limited to 'scripts/decode_stacktrace.sh')
0 files changed, 0 insertions, 0 deletions