Skip to content

Commit 43fe989

Browse files
namhyungrostedt
authored andcommitted
tracing/uprobes: Support mix of ftrace and perf
It seems there's no reason to prevent mixed used of ftrace and perf for a single uprobe event. At least the kprobes already support it. Link: http://lkml.kernel.org/r/[email protected] Reviewed-by: Masami Hiramatsu <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Oleg Nesterov <[email protected]> Cc: Srikar Dronamraju <[email protected]> Cc: zhangwei(Jovi) <[email protected]> Signed-off-by: Namhyung Kim <[email protected]> Signed-off-by: Steven Rostedt <[email protected]>
1 parent ca3b162 commit 43fe989

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

kernel/trace/trace_uprobe.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -882,9 +882,6 @@ probe_event_enable(struct trace_uprobe *tu, struct ftrace_event_file *file,
882882
int ret;
883883

884884
if (file) {
885-
if (tu->tp.flags & TP_FLAG_PROFILE)
886-
return -EINTR;
887-
888885
link = kmalloc(sizeof(*link), GFP_KERNEL);
889886
if (!link)
890887
return -ENOMEM;
@@ -893,12 +890,8 @@ probe_event_enable(struct trace_uprobe *tu, struct ftrace_event_file *file,
893890
list_add_tail_rcu(&link->list, &tu->tp.files);
894891

895892
tu->tp.flags |= TP_FLAG_TRACE;
896-
} else {
897-
if (tu->tp.flags & TP_FLAG_TRACE)
898-
return -EINTR;
899-
893+
} else
900894
tu->tp.flags |= TP_FLAG_PROFILE;
901-
}
902895

903896
ret = uprobe_buffer_enable();
904897
if (ret < 0)

0 commit comments

Comments
 (0)