]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tracing/syscalls: Pass in hardcoded 6 into syscall_get_arguments()
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Mon, 7 Nov 2016 21:26:36 +0000 (16:26 -0500)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 4 Apr 2019 13:17:52 +0000 (09:17 -0400)
commitd08e411397cb6fcb3d3fb075c27a41975c99e88f
tree64973de5ffbf7dff71cfc6a03a3378b070c337cb
parent631b7abacd02b88f4b0795c08b54ad4fc3e7c7c0
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>
kernel/trace/trace_syscalls.c