Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146149
b: refs/heads/master
c: d6bf81e
h: refs/heads/master
i:
  146147: 291a8fa
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed May 7, 2009
1 parent 22f3ee9 commit 10bf643
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 29c8000ee7da3a6756d26143991e573eaaf2a9f6
refs/heads/master: d6bf81ef0f7474434c2a049e8bf3c9146a14dd96
6 changes: 4 additions & 2 deletions trunk/kernel/trace/trace_events.c
Original file line number Diff line number Diff line change
Expand Up @@ -509,9 +509,11 @@ system_enable_write(struct file *filp, const char __user *ubuf, size_t cnt,
return -EINVAL;
}

command = kstrdup(system, GFP_KERNEL);
/* +3 for the ":*\0" */
command = kmalloc(strlen(system)+3, GFP_KERNEL);
if (!command)
return -ENOMEM;
sprintf(command, "%s:*", system);

ret = ftrace_set_clr_event(command, val);
if (ret)
Expand Down Expand Up @@ -1179,7 +1181,7 @@ static __init int event_trace_init(void)
&ftrace_show_header_fops);

trace_create_file("enable", 0644, d_events,
"*:*", &ftrace_system_enable_fops);
"*", &ftrace_system_enable_fops);

for_each_event(call, __start_ftrace_events, __stop_ftrace_events) {
/* The linker may leave blanks */
Expand Down

0 comments on commit 10bf643

Please sign in to comment.