Fix: Remove start and number from syscall_get_arguments() args (v5.1)
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 9 Apr 2019 18:12:41 +0000 (14:12 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 10 Apr 2019 21:10:36 +0000 (17:10 -0400)
commit9f70b60c19abc6dc0811e427ed5da4aa74620aca
tree6fbc8528c1e5eb66e035e84c55bbb894c5448f0b
parent72a20ef7c33c8d74bff8f4b2e38e5b388995dde0
Fix: Remove start and number from syscall_get_arguments() args (v5.1)

  commit b35f549df1d7520d37ba1e6d4a8d4df6bd52d136
  Author: Steven Rostedt (Red Hat) <rostedt@goodmis.org>
  Date:   Mon Nov 7 16:26:37 2016 -0500

    syscalls: Remove start and number from syscall_get_arguments() args

    At Linux Plumbers, Andy Lutomirski approached me and pointed out that the
    function call syscall_get_arguments() implemented in x86 was horribly
    written and not optimized for the standard case of passing in 0 and 6 for
    the starting index and the number of system calls to get. When looking at
    all the users of this function, I discovered that all instances pass in only
    0 and 6 for these arguments. Instead of having this function handle
    different cases that are never used, simply rewrite it to return the first 6
    arguments of a system call.

    This should help out the performance of tracing system calls by ptrace,
    ftrace and perf.

Link: http://lkml.kernel.org/r/20161107213233.754809394@goodmis.org
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-syscalls.c
wrapper/syscall.h [new file with mode: 0644]
This page took 0.028504 seconds and 4 git commands to generate.