summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_syscalls.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace/trace_syscalls.c')
-rw-r--r--kernel/trace/trace_syscalls.c10
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 @@
static atomic_t refcount;
-/* Our two options */
+/* Option to display the parameters types */
enum {
TRACE_SYSCALLS_OPT_TYPES = 0x1,
};
@@ -18,7 +18,7 @@ static struct tracer_opt syscalls_opts[] = {
};
static struct tracer_flags syscalls_flags = {
- .val = 0, /* By default: no args types */
+ .val = 0, /* By default: no parameters types */
.opts = syscalls_opts
};
@@ -135,12 +135,9 @@ void ftrace_syscall_enter(struct pt_regs *regs)
struct ring_buffer_event *event;
int size;
int syscall_nr;
- int cpu;
syscall_nr = syscall_get_nr(current, regs);
- cpu = raw_smp_processor_id();
-
sys_data = syscall_nr_to_meta(syscall_nr);
if (!sys_data)
return;
@@ -166,12 +163,9 @@ void ftrace_syscall_exit(struct pt_regs *regs)
struct syscall_metadata *sys_data;
struct ring_buffer_event *event;
int syscall_nr;
- int cpu;
syscall_nr = syscall_get_nr(current, regs);
- cpu = raw_smp_processor_id();
-
sys_data = syscall_nr_to_meta(syscall_nr);
if (!sys_data)
return;
OpenPOWER on IntegriCloud