]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
MIPS: Use arch specific syscall name match function
authorBibo Mao <maobibo@loongson.cn>
Tue, 9 Jun 2020 02:54:35 +0000 (10:54 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jun 2025 12:38:00 +0000 (14:38 +0200)
commit6fd978a7117e54f88398851ca258de32d42e39e6
tree6155c7aa2c52ab744f7c371dac47f4010aff8f33
parent9a3f2d08291b14386cdbe10b1f8a80bbbbb10ee9
MIPS: Use arch specific syscall name match function

[ Upstream commit 756276ce78d5624dc814f9d99f7d16c8fd51076e ]

On MIPS system, most of the syscall function name begin with prefix
sys_. Some syscalls are special such as clone/fork, function name of
these begin with __sys_. Since scratch registers need be saved in
stack when these system calls happens.

With ftrace system call method, system call functions are declared with
SYSCALL_DEFINEx, metadata of the system call symbol name begins with
sys_. Here mips specific function arch_syscall_match_sym_name is used to
compare function name between sys_call_table[] and metadata of syscall
symbol.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/mips/include/asm/ftrace.h