summaryrefslogtreecommitdiff
path: root/arch/riscv/include/asm/syscall.h
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2016-11-07 16:26:36 -0500
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2019-04-04 09:17:52 -0400
commitd08e411397cb6fcb3d3fb075c27a41975c99e88f (patch)
tree64973de5ffbf7dff71cfc6a03a3378b070c337cb /arch/riscv/include/asm/syscall.h
parent631b7abacd02b88f4b0795c08b54ad4fc3e7c7c0 (diff)
tracing/syscalls: Pass in hardcoded 6 into syscall_get_arguments()
The only users that calls syscall_get_arguments() with a variable and not a hard coded '6' is ftrace_syscall_enter(). syscall_get_arguments() can be optimized by removing a variable input, and always grabbing 6 arguments regardless of what the system call actually uses. Change ftrace_syscall_enter() to pass the 6 args into a local stack array and copy the necessary arguments into the trace event as needed. This is needed to remove two parameters from syscall_get_arguments(). Link: http://lkml.kernel.org/r/20161107213233.627583542@goodmis.org Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'arch/riscv/include/asm/syscall.h')
0 files changed, 0 insertions, 0 deletions