Commit 64044345 authored by Frederic Weisbecker's avatar Frederic Weisbecker Committed by Ingo Molnar

tracing/syscalls: various cleanups

Impact: cleanup

- Drop unused cpu variable
- Fix some errors on comments
Signed-off-by: default avatarFrederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <1237151439-6755-2-git-send-email-fweisbec@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent ac99c58c
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
static atomic_t refcount; static atomic_t refcount;
/* Our two options */ /* Option to display the parameters types */
enum { enum {
TRACE_SYSCALLS_OPT_TYPES = 0x1, TRACE_SYSCALLS_OPT_TYPES = 0x1,
}; };
...@@ -18,7 +18,7 @@ static struct tracer_opt syscalls_opts[] = { ...@@ -18,7 +18,7 @@ static struct tracer_opt syscalls_opts[] = {
}; };
static struct tracer_flags syscalls_flags = { static struct tracer_flags syscalls_flags = {
.val = 0, /* By default: no args types */ .val = 0, /* By default: no parameters types */
.opts = syscalls_opts .opts = syscalls_opts
}; };
...@@ -135,12 +135,9 @@ void ftrace_syscall_enter(struct pt_regs *regs) ...@@ -135,12 +135,9 @@ void ftrace_syscall_enter(struct pt_regs *regs)
struct ring_buffer_event *event; struct ring_buffer_event *event;
int size; int size;
int syscall_nr; int syscall_nr;
int cpu;
syscall_nr = syscall_get_nr(current, regs); syscall_nr = syscall_get_nr(current, regs);
cpu = raw_smp_processor_id();
sys_data = syscall_nr_to_meta(syscall_nr); sys_data = syscall_nr_to_meta(syscall_nr);
if (!sys_data) if (!sys_data)
return; return;
...@@ -166,12 +163,9 @@ void ftrace_syscall_exit(struct pt_regs *regs) ...@@ -166,12 +163,9 @@ void ftrace_syscall_exit(struct pt_regs *regs)
struct syscall_metadata *sys_data; struct syscall_metadata *sys_data;
struct ring_buffer_event *event; struct ring_buffer_event *event;
int syscall_nr; int syscall_nr;
int cpu;
syscall_nr = syscall_get_nr(current, regs); syscall_nr = syscall_get_nr(current, regs);
cpu = raw_smp_processor_id();
sys_data = syscall_nr_to_meta(syscall_nr); sys_data = syscall_nr_to_meta(syscall_nr);
if (!sys_data) if (!sys_data)
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment