Commit 33d0f35e authored by Steven Rostedt (Red Hat)'s avatar Steven Rostedt (Red Hat) Committed by Steven Rostedt

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: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 3ad017ba
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
* *
* static struct trace_event_class __used event_class_<template> = { * static struct trace_event_class __used event_class_<template> = {
* .system = "<system>", * .system = "<system>",
* .define_fields = ftrace_define_fields_<call>, * .define_fields = trace_event_define_fields_<call>,
* .fields = LIST_HEAD_INIT(event_class_##call.fields), * .fields = LIST_HEAD_INIT(event_class_##call.fields),
* .raw_init = trace_event_raw_init, * .raw_init = trace_event_raw_init,
* .probe = trace_event_raw_event_##call, * .probe = trace_event_raw_event_##call,
...@@ -215,7 +215,7 @@ _TRACE_PERF_PROTO(call, PARAMS(proto)); \ ...@@ -215,7 +215,7 @@ _TRACE_PERF_PROTO(call, PARAMS(proto)); \
static char print_fmt_##call[] = print; \ static char print_fmt_##call[] = print; \
static struct trace_event_class __used __refdata event_class_##call = { \ static struct trace_event_class __used __refdata event_class_##call = { \
.system = TRACE_SYSTEM_STRING, \ .system = TRACE_SYSTEM_STRING, \
.define_fields = ftrace_define_fields_##call, \ .define_fields = trace_event_define_fields_##call, \
.fields = LIST_HEAD_INIT(event_class_##call.fields),\ .fields = LIST_HEAD_INIT(event_class_##call.fields),\
.raw_init = trace_event_raw_init, \ .raw_init = trace_event_raw_init, \
.probe = trace_event_raw_event_##call, \ .probe = trace_event_raw_event_##call, \
......
...@@ -407,7 +407,7 @@ static struct trace_event_functions trace_event_type_funcs_##call = { \ ...@@ -407,7 +407,7 @@ static struct trace_event_functions trace_event_type_funcs_##call = { \
#undef DECLARE_EVENT_CLASS #undef DECLARE_EVENT_CLASS
#define DECLARE_EVENT_CLASS(call, proto, args, tstruct, func, print) \ #define DECLARE_EVENT_CLASS(call, proto, args, tstruct, func, print) \
static int notrace __init \ static int notrace __init \
ftrace_define_fields_##call(struct trace_event_call *event_call) \ trace_event_define_fields_##call(struct trace_event_call *event_call) \
{ \ { \
struct trace_event_raw_##call field; \ struct trace_event_raw_##call field; \
int ret; \ int ret; \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment