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)
&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 */