diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2009-03-15 17:10:36 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-03-16 04:13:16 -0400 |
commit | 6404434525bb9f8f2239998f30fd7c93f2efa5b3 (patch) | |
tree | 9c761f4d724f73a4ca9792accb576289432e4fbb /kernel/trace/trace_syscalls.c | |
parent | ac99c58c9e56967037382e31f865b72b10127965 (diff) |
tracing/syscalls: various cleanups
Impact: cleanup
- Drop unused cpu variable
- Fix some errors on comments
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <1237151439-6755-2-git-send-email-fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace_syscalls.c')
-rw-r--r-- | kernel/trace/trace_syscalls.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/kernel/trace/trace_syscalls.c b/kernel/trace/trace_syscalls.c index c5fc1d8880f6..26f9a8679d3d 100644 --- a/kernel/trace/trace_syscalls.c +++ b/kernel/trace/trace_syscalls.c | |||
@@ -7,7 +7,7 @@ | |||
7 | 7 | ||
8 | static atomic_t refcount; | 8 | static atomic_t refcount; |
9 | 9 | ||
10 | /* Our two options */ | 10 | /* Option to display the parameters types */ |
11 | enum { | 11 | enum { |
12 | TRACE_SYSCALLS_OPT_TYPES = 0x1, | 12 | TRACE_SYSCALLS_OPT_TYPES = 0x1, |
13 | }; | 13 | }; |
@@ -18,7 +18,7 @@ static struct tracer_opt syscalls_opts[] = { | |||
18 | }; | 18 | }; |
19 | 19 | ||
20 | static struct tracer_flags syscalls_flags = { | 20 | static struct tracer_flags syscalls_flags = { |
21 | .val = 0, /* By default: no args types */ | 21 | .val = 0, /* By default: no parameters types */ |
22 | .opts = syscalls_opts | 22 | .opts = syscalls_opts |
23 | }; | 23 | }; |
24 | 24 | ||
@@ -135,12 +135,9 @@ void ftrace_syscall_enter(struct pt_regs *regs) | |||
135 | struct ring_buffer_event *event; | 135 | struct ring_buffer_event *event; |
136 | int size; | 136 | int size; |
137 | int syscall_nr; | 137 | int syscall_nr; |
138 | int cpu; | ||
139 | 138 | ||
140 | syscall_nr = syscall_get_nr(current, regs); | 139 | syscall_nr = syscall_get_nr(current, regs); |
141 | 140 | ||
142 | cpu = raw_smp_processor_id(); | ||
143 | |||
144 | sys_data = syscall_nr_to_meta(syscall_nr); | 141 | sys_data = syscall_nr_to_meta(syscall_nr); |
145 | if (!sys_data) | 142 | if (!sys_data) |
146 | return; | 143 | return; |
@@ -166,12 +163,9 @@ void ftrace_syscall_exit(struct pt_regs *regs) | |||
166 | struct syscall_metadata *sys_data; | 163 | struct syscall_metadata *sys_data; |
167 | struct ring_buffer_event *event; | 164 | struct ring_buffer_event *event; |
168 | int syscall_nr; | 165 | int syscall_nr; |
169 | int cpu; | ||
170 | 166 | ||
171 | syscall_nr = syscall_get_nr(current, regs); | 167 | syscall_nr = syscall_get_nr(current, regs); |
172 | 168 | ||
173 | cpu = raw_smp_processor_id(); | ||
174 | |||
175 | sys_data = syscall_nr_to_meta(syscall_nr); | 169 | sys_data = syscall_nr_to_meta(syscall_nr); |
176 | if (!sys_data) | 170 | if (!sys_data) |
177 | return; | 171 | return; |