diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2015-05-13 14:20:14 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2015-05-13 14:20:14 -0400 |
commit | 687fcc4aee4567df14e31e82d6993418b826f408 (patch) | |
tree | e048483944ab5fdbb930ab46d6bc75d053204ef1 /kernel/trace/trace_uprobe.c | |
parent | 609a74045238c303bbe9396775eacf5bac1f51cc (diff) |
tracing: Rename ftrace_event_name() to trace_event_name()
The name "ftrace" really refers to the function hook infrastructure. It
is not about the trace_events. ftrace_event_name() returns the name of
an event tracepoint, has nothing to do with function tracing. Rename it
to trace_event_name().
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_uprobe.c')
-rw-r--r-- | kernel/trace/trace_uprobe.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kernel/trace/trace_uprobe.c b/kernel/trace/trace_uprobe.c index 68ba5da5d9e0..40764abc7d09 100644 --- a/kernel/trace/trace_uprobe.c +++ b/kernel/trace/trace_uprobe.c | |||
@@ -293,7 +293,7 @@ static struct trace_uprobe *find_probe_event(const char *event, const char *grou | |||
293 | struct trace_uprobe *tu; | 293 | struct trace_uprobe *tu; |
294 | 294 | ||
295 | list_for_each_entry(tu, &uprobe_list, list) | 295 | list_for_each_entry(tu, &uprobe_list, list) |
296 | if (strcmp(ftrace_event_name(&tu->tp.call), event) == 0 && | 296 | if (strcmp(trace_event_name(&tu->tp.call), event) == 0 && |
297 | strcmp(tu->tp.call.class->system, group) == 0) | 297 | strcmp(tu->tp.call.class->system, group) == 0) |
298 | return tu; | 298 | return tu; |
299 | 299 | ||
@@ -323,7 +323,7 @@ static int register_trace_uprobe(struct trace_uprobe *tu) | |||
323 | mutex_lock(&uprobe_lock); | 323 | mutex_lock(&uprobe_lock); |
324 | 324 | ||
325 | /* register as an event */ | 325 | /* register as an event */ |
326 | old_tu = find_probe_event(ftrace_event_name(&tu->tp.call), | 326 | old_tu = find_probe_event(trace_event_name(&tu->tp.call), |
327 | tu->tp.call.class->system); | 327 | tu->tp.call.class->system); |
328 | if (old_tu) { | 328 | if (old_tu) { |
329 | /* delete old event */ | 329 | /* delete old event */ |
@@ -600,7 +600,7 @@ static int probes_seq_show(struct seq_file *m, void *v) | |||
600 | int i; | 600 | int i; |
601 | 601 | ||
602 | seq_printf(m, "%c:%s/%s", c, tu->tp.call.class->system, | 602 | seq_printf(m, "%c:%s/%s", c, tu->tp.call.class->system, |
603 | ftrace_event_name(&tu->tp.call)); | 603 | trace_event_name(&tu->tp.call)); |
604 | seq_printf(m, " %s:0x%p", tu->filename, (void *)tu->offset); | 604 | seq_printf(m, " %s:0x%p", tu->filename, (void *)tu->offset); |
605 | 605 | ||
606 | for (i = 0; i < tu->tp.nr_args; i++) | 606 | for (i = 0; i < tu->tp.nr_args; i++) |
@@ -651,7 +651,7 @@ static int probes_profile_seq_show(struct seq_file *m, void *v) | |||
651 | struct trace_uprobe *tu = v; | 651 | struct trace_uprobe *tu = v; |
652 | 652 | ||
653 | seq_printf(m, " %s %-44s %15lu\n", tu->filename, | 653 | seq_printf(m, " %s %-44s %15lu\n", tu->filename, |
654 | ftrace_event_name(&tu->tp.call), tu->nhit); | 654 | trace_event_name(&tu->tp.call), tu->nhit); |
655 | return 0; | 655 | return 0; |
656 | } | 656 | } |
657 | 657 | ||
@@ -853,12 +853,12 @@ print_uprobe_event(struct trace_iterator *iter, int flags, struct trace_event *e | |||
853 | 853 | ||
854 | if (is_ret_probe(tu)) { | 854 | if (is_ret_probe(tu)) { |
855 | trace_seq_printf(s, "%s: (0x%lx <- 0x%lx)", | 855 | trace_seq_printf(s, "%s: (0x%lx <- 0x%lx)", |
856 | ftrace_event_name(&tu->tp.call), | 856 | trace_event_name(&tu->tp.call), |
857 | entry->vaddr[1], entry->vaddr[0]); | 857 | entry->vaddr[1], entry->vaddr[0]); |
858 | data = DATAOF_TRACE_ENTRY(entry, true); | 858 | data = DATAOF_TRACE_ENTRY(entry, true); |
859 | } else { | 859 | } else { |
860 | trace_seq_printf(s, "%s: (0x%lx)", | 860 | trace_seq_printf(s, "%s: (0x%lx)", |
861 | ftrace_event_name(&tu->tp.call), | 861 | trace_event_name(&tu->tp.call), |
862 | entry->vaddr[0]); | 862 | entry->vaddr[0]); |
863 | data = DATAOF_TRACE_ENTRY(entry, false); | 863 | data = DATAOF_TRACE_ENTRY(entry, false); |
864 | } | 864 | } |
@@ -1295,7 +1295,7 @@ static int register_uprobe_event(struct trace_uprobe *tu) | |||
1295 | 1295 | ||
1296 | if (ret) { | 1296 | if (ret) { |
1297 | pr_info("Failed to register uprobe event: %s\n", | 1297 | pr_info("Failed to register uprobe event: %s\n", |
1298 | ftrace_event_name(call)); | 1298 | trace_event_name(call)); |
1299 | kfree(call->print_fmt); | 1299 | kfree(call->print_fmt); |
1300 | unregister_trace_event(&call->event); | 1300 | unregister_trace_event(&call->event); |
1301 | } | 1301 | } |