Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182287
b: refs/heads/master
c: c7ef3a9
h: refs/heads/master
i:
  182285: e2bbe3d
  182283: 2a43ffd
  182279: 3d91df7
  182271: f857544
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Jan 6, 2010
1 parent fabf052 commit 622f4cb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a342a0280b981c130e32dbb94dbd3a57959c4d04
refs/heads/master: c7ef3a9004201bca90626db246a19dadd2c29c9b
4 changes: 2 additions & 2 deletions trunk/include/linux/syscalls.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ struct perf_event_attr;
.name = "sys_enter"#sname, \
.system = "syscalls", \
.event = &enter_syscall_print_##sname, \
.raw_init = trace_event_raw_init, \
.raw_init = init_syscall_trace, \
.show_format = syscall_enter_format, \
.define_fields = syscall_enter_define_fields, \
.regfunc = reg_event_syscall_enter, \
Expand All @@ -165,7 +165,7 @@ struct perf_event_attr;
.name = "sys_exit"#sname, \
.system = "syscalls", \
.event = &exit_syscall_print_##sname, \
.raw_init = trace_event_raw_init, \
.raw_init = init_syscall_trace, \
.show_format = syscall_exit_format, \
.define_fields = syscall_exit_define_fields, \
.regfunc = reg_event_syscall_exit, \
Expand Down
12 changes: 6 additions & 6 deletions trunk/kernel/trace/trace_syscalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,14 +450,14 @@ int init_syscall_trace(struct ftrace_event_call *call)
if (set_syscall_print_fmt(call) < 0)
return -ENOMEM;

id = register_ftrace_event(call->event);
if (!id) {
id = trace_event_raw_init(call);

if (id < 0) {
free_syscall_print_fmt(call);
return -ENODEV;
return id;
}
call->id = id;
INIT_LIST_HEAD(&call->fields);
return 0;

return id;
}

int __init init_ftrace_syscalls(void)
Expand Down

0 comments on commit 622f4cb

Please sign in to comment.