diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2015-05-13 15:37:57 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2015-05-13 21:49:00 -0400 |
commit | 33d0f35eea7ac9027dee4fff819fc54afc8615e5 (patch) | |
tree | ec0bd2253d8b0d817e7c639e109ea573ef47a537 /include/trace | |
parent | 3ad017bac94ac86edf18d0e2218ebafe71e23d45 (diff) |
tracing: Rename ftrace_define_fields_##call() to trace_event_define_fields_##call()
The name "ftrace" really refers to the function hook infrastructure. It
is not about the trace_events. The function ftrace_define_fields_##call()
is used to define how to process the trace_event fields. It has nothing to
do with function tracing. Rename it.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/perf.h | 4 | ||||
-rw-r--r-- | include/trace/trace_events.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/trace/perf.h b/include/trace/perf.h index c9af07652f08..4ad27492a63d 100644 --- a/include/trace/perf.h +++ b/include/trace/perf.h | |||
@@ -65,7 +65,7 @@ | |||
65 | * | 65 | * |
66 | * static struct trace_event_class __used event_class_<template> = { | 66 | * static struct trace_event_class __used event_class_<template> = { |
67 | * .system = "<system>", | 67 | * .system = "<system>", |
68 | * .define_fields = ftrace_define_fields_<call>, | 68 | * .define_fields = trace_event_define_fields_<call>, |
69 | * .fields = LIST_HEAD_INIT(event_class_##call.fields), | 69 | * .fields = LIST_HEAD_INIT(event_class_##call.fields), |
70 | * .raw_init = trace_event_raw_init, | 70 | * .raw_init = trace_event_raw_init, |
71 | * .probe = trace_event_raw_event_##call, | 71 | * .probe = trace_event_raw_event_##call, |
@@ -215,7 +215,7 @@ _TRACE_PERF_PROTO(call, PARAMS(proto)); \ | |||
215 | static char print_fmt_##call[] = print; \ | 215 | static char print_fmt_##call[] = print; \ |
216 | static struct trace_event_class __used __refdata event_class_##call = { \ | 216 | static struct trace_event_class __used __refdata event_class_##call = { \ |
217 | .system = TRACE_SYSTEM_STRING, \ | 217 | .system = TRACE_SYSTEM_STRING, \ |
218 | .define_fields = ftrace_define_fields_##call, \ | 218 | .define_fields = trace_event_define_fields_##call, \ |
219 | .fields = LIST_HEAD_INIT(event_class_##call.fields),\ | 219 | .fields = LIST_HEAD_INIT(event_class_##call.fields),\ |
220 | .raw_init = trace_event_raw_init, \ | 220 | .raw_init = trace_event_raw_init, \ |
221 | .probe = trace_event_raw_event_##call, \ | 221 | .probe = trace_event_raw_event_##call, \ |
diff --git a/include/trace/trace_events.h b/include/trace/trace_events.h index d88bd0f0844d..e27b87ef5724 100644 --- a/include/trace/trace_events.h +++ b/include/trace/trace_events.h | |||
@@ -407,7 +407,7 @@ static struct trace_event_functions trace_event_type_funcs_##call = { \ | |||
407 | #undef DECLARE_EVENT_CLASS | 407 | #undef DECLARE_EVENT_CLASS |
408 | #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, func, print) \ | 408 | #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, func, print) \ |
409 | static int notrace __init \ | 409 | static int notrace __init \ |
410 | ftrace_define_fields_##call(struct trace_event_call *event_call) \ | 410 | trace_event_define_fields_##call(struct trace_event_call *event_call) \ |
411 | { \ | 411 | { \ |
412 | struct trace_event_raw_##call field; \ | 412 | struct trace_event_raw_##call field; \ |
413 | int ret; \ | 413 | int ret; \ |