|
@@ -882,9 +882,6 @@ probe_event_enable(struct trace_uprobe *tu, struct ftrace_event_file *file,
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
if (file) {
|
|
if (file) {
|
|
- if (tu->tp.flags & TP_FLAG_PROFILE)
|
|
|
|
- return -EINTR;
|
|
|
|
-
|
|
|
|
link = kmalloc(sizeof(*link), GFP_KERNEL);
|
|
link = kmalloc(sizeof(*link), GFP_KERNEL);
|
|
if (!link)
|
|
if (!link)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
@@ -893,12 +890,8 @@ probe_event_enable(struct trace_uprobe *tu, struct ftrace_event_file *file,
|
|
list_add_tail_rcu(&link->list, &tu->tp.files);
|
|
list_add_tail_rcu(&link->list, &tu->tp.files);
|
|
|
|
|
|
tu->tp.flags |= TP_FLAG_TRACE;
|
|
tu->tp.flags |= TP_FLAG_TRACE;
|
|
- } else {
|
|
|
|
- if (tu->tp.flags & TP_FLAG_TRACE)
|
|
|
|
- return -EINTR;
|
|
|
|
-
|
|
|
|
|
|
+ } else
|
|
tu->tp.flags |= TP_FLAG_PROFILE;
|
|
tu->tp.flags |= TP_FLAG_PROFILE;
|
|
- }
|
|
|
|
|
|
|
|
ret = uprobe_buffer_enable();
|
|
ret = uprobe_buffer_enable();
|
|
if (ret < 0)
|
|
if (ret < 0)
|