diff options
| author | Steven Rostedt (Red Hat) <[email protected]> | 2016-11-07 21:26:36 +0000 |
|---|---|---|
| committer | Steven Rostedt (VMware) <[email protected]> | 2019-04-04 13:17:52 +0000 |
| commit | d08e411397cb6fcb3d3fb075c27a41975c99e88f (patch) | |
| tree | 64973de5ffbf7dff71cfc6a03a3378b070c337cb /lib/string_helpers.c | |
| parent | ptrace: Remove maxargs from task_current_syscall() (diff) | |
| download | kernel-d08e411397cb6fcb3d3fb075c27a41975c99e88f.tar.gz kernel-d08e411397cb6fcb3d3fb075c27a41975c99e88f.zip | |
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/[email protected]
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions
