aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2015-05-05 11:45:27 -0400
committerSteven Rostedt <rostedt@goodmis.org>2015-05-13 14:06:10 -0400
commit2425bcb9240f8c97d793cb31c8e8d8d0a843fa29 (patch)
tree2177ae6e6a1d6abe8fe0caec482f3430332cb02f /kernel/trace
parent7f1d2f8210195c8c309d424a77dbf06a6d2186f4 (diff)
tracing: Rename ftrace_event_{call,class} to trace_event_{call,class}
The name "ftrace" really refers to the function hook infrastructure. It is not about the trace_events. The structures ftrace_event_call and ftrace_event_class have nothing to do with the function hooks, and are really trace_event structures. Rename ftrace_event_* to trace_event_*. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace')
-rw-r--r--kernel/trace/trace.c12
-rw-r--r--kernel/trace/trace.h10
-rw-r--r--kernel/trace/trace_branch.c2
-rw-r--r--kernel/trace/trace_event_perf.c20
-rw-r--r--kernel/trace/trace_events.c80
-rw-r--r--kernel/trace/trace_events_filter.c34
-rw-r--r--kernel/trace/trace_export.c10
-rw-r--r--kernel/trace/trace_functions_graph.c4
-rw-r--r--kernel/trace/trace_kprobe.c18
-rw-r--r--kernel/trace/trace_mmiotrace.c4
-rw-r--r--kernel/trace/trace_output.c4
-rw-r--r--kernel/trace/trace_probe.h4
-rw-r--r--kernel/trace/trace_sched_wakeup.c4
-rw-r--r--kernel/trace/trace_syscalls.c40
-rw-r--r--kernel/trace/trace_uprobe.c12
15 files changed, 129 insertions, 129 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index dd29e9b6b30e..07ff08661167 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -311,7 +311,7 @@ int filter_check_discard(struct trace_event_file *file, void *rec,
311} 311}
312EXPORT_SYMBOL_GPL(filter_check_discard); 312EXPORT_SYMBOL_GPL(filter_check_discard);
313 313
314int call_filter_check_discard(struct ftrace_event_call *call, void *rec, 314int call_filter_check_discard(struct trace_event_call *call, void *rec,
315 struct ring_buffer *buffer, 315 struct ring_buffer *buffer,
316 struct ring_buffer_event *event) 316 struct ring_buffer_event *event)
317{ 317{
@@ -1761,7 +1761,7 @@ trace_function(struct trace_array *tr,
1761 unsigned long ip, unsigned long parent_ip, unsigned long flags, 1761 unsigned long ip, unsigned long parent_ip, unsigned long flags,
1762 int pc) 1762 int pc)
1763{ 1763{
1764 struct ftrace_event_call *call = &event_function; 1764 struct trace_event_call *call = &event_function;
1765 struct ring_buffer *buffer = tr->trace_buffer.buffer; 1765 struct ring_buffer *buffer = tr->trace_buffer.buffer;
1766 struct ring_buffer_event *event; 1766 struct ring_buffer_event *event;
1767 struct ftrace_entry *entry; 1767 struct ftrace_entry *entry;
@@ -1796,7 +1796,7 @@ static void __ftrace_trace_stack(struct ring_buffer *buffer,
1796 unsigned long flags, 1796 unsigned long flags,
1797 int skip, int pc, struct pt_regs *regs) 1797 int skip, int pc, struct pt_regs *regs)
1798{ 1798{
1799 struct ftrace_event_call *call = &event_kernel_stack; 1799 struct trace_event_call *call = &event_kernel_stack;
1800 struct ring_buffer_event *event; 1800 struct ring_buffer_event *event;
1801 struct stack_entry *entry; 1801 struct stack_entry *entry;
1802 struct stack_trace trace; 1802 struct stack_trace trace;
@@ -1924,7 +1924,7 @@ static DEFINE_PER_CPU(int, user_stack_count);
1924void 1924void
1925ftrace_trace_userstack(struct ring_buffer *buffer, unsigned long flags, int pc) 1925ftrace_trace_userstack(struct ring_buffer *buffer, unsigned long flags, int pc)
1926{ 1926{
1927 struct ftrace_event_call *call = &event_user_stack; 1927 struct trace_event_call *call = &event_user_stack;
1928 struct ring_buffer_event *event; 1928 struct ring_buffer_event *event;
1929 struct userstack_entry *entry; 1929 struct userstack_entry *entry;
1930 struct stack_trace trace; 1930 struct stack_trace trace;
@@ -2130,7 +2130,7 @@ static void trace_printk_start_stop_comm(int enabled)
2130 */ 2130 */
2131int trace_vbprintk(unsigned long ip, const char *fmt, va_list args) 2131int trace_vbprintk(unsigned long ip, const char *fmt, va_list args)
2132{ 2132{
2133 struct ftrace_event_call *call = &event_bprint; 2133 struct trace_event_call *call = &event_bprint;
2134 struct ring_buffer_event *event; 2134 struct ring_buffer_event *event;
2135 struct ring_buffer *buffer; 2135 struct ring_buffer *buffer;
2136 struct trace_array *tr = &global_trace; 2136 struct trace_array *tr = &global_trace;
@@ -2188,7 +2188,7 @@ static int
2188__trace_array_vprintk(struct ring_buffer *buffer, 2188__trace_array_vprintk(struct ring_buffer *buffer,
2189 unsigned long ip, const char *fmt, va_list args) 2189 unsigned long ip, const char *fmt, va_list args)
2190{ 2190{
2191 struct ftrace_event_call *call = &event_print; 2191 struct trace_event_call *call = &event_print;
2192 struct ring_buffer_event *event; 2192 struct ring_buffer_event *event;
2193 int len = 0, size, pc; 2193 int len = 0, size, pc;
2194 struct print_entry *entry; 2194 struct print_entry *entry;
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index 4e1715e55b38..64de3837c383 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -858,7 +858,7 @@ void ftrace_destroy_filter_files(struct ftrace_ops *ops);
858#define ftrace_destroy_filter_files(ops) do { } while (0) 858#define ftrace_destroy_filter_files(ops) do { } while (0)
859#endif /* CONFIG_FUNCTION_TRACER && CONFIG_DYNAMIC_FTRACE */ 859#endif /* CONFIG_FUNCTION_TRACER && CONFIG_DYNAMIC_FTRACE */
860 860
861int ftrace_event_is_function(struct ftrace_event_call *call); 861int ftrace_event_is_function(struct trace_event_call *call);
862 862
863/* 863/*
864 * struct trace_parser - servers for reading the user input separated by spaces 864 * struct trace_parser - servers for reading the user input separated by spaces
@@ -1061,13 +1061,13 @@ extern int apply_subsystem_event_filter(struct ftrace_subsystem_dir *dir,
1061extern void print_subsystem_event_filter(struct event_subsystem *system, 1061extern void print_subsystem_event_filter(struct event_subsystem *system,
1062 struct trace_seq *s); 1062 struct trace_seq *s);
1063extern int filter_assign_type(const char *type); 1063extern int filter_assign_type(const char *type);
1064extern int create_event_filter(struct ftrace_event_call *call, 1064extern int create_event_filter(struct trace_event_call *call,
1065 char *filter_str, bool set_str, 1065 char *filter_str, bool set_str,
1066 struct event_filter **filterp); 1066 struct event_filter **filterp);
1067extern void free_event_filter(struct event_filter *filter); 1067extern void free_event_filter(struct event_filter *filter);
1068 1068
1069struct ftrace_event_field * 1069struct ftrace_event_field *
1070trace_find_event_field(struct ftrace_event_call *call, char *name); 1070trace_find_event_field(struct trace_event_call *call, char *name);
1071 1071
1072extern void trace_event_enable_cmd_record(bool enable); 1072extern void trace_event_enable_cmd_record(bool enable);
1073extern int event_trace_add_tracer(struct dentry *parent, struct trace_array *tr); 1073extern int event_trace_add_tracer(struct dentry *parent, struct trace_array *tr);
@@ -1286,7 +1286,7 @@ int set_tracer_flag(struct trace_array *tr, unsigned int mask, int enabled);
1286 1286
1287#undef FTRACE_ENTRY 1287#undef FTRACE_ENTRY
1288#define FTRACE_ENTRY(call, struct_name, id, tstruct, print, filter) \ 1288#define FTRACE_ENTRY(call, struct_name, id, tstruct, print, filter) \
1289 extern struct ftrace_event_call \ 1289 extern struct trace_event_call \
1290 __aligned(4) event_##call; 1290 __aligned(4) event_##call;
1291#undef FTRACE_ENTRY_DUP 1291#undef FTRACE_ENTRY_DUP
1292#define FTRACE_ENTRY_DUP(call, struct_name, id, tstruct, print, filter) \ 1292#define FTRACE_ENTRY_DUP(call, struct_name, id, tstruct, print, filter) \
@@ -1295,7 +1295,7 @@ int set_tracer_flag(struct trace_array *tr, unsigned int mask, int enabled);
1295#include "trace_entries.h" 1295#include "trace_entries.h"
1296 1296
1297#if defined(CONFIG_PERF_EVENTS) && defined(CONFIG_FUNCTION_TRACER) 1297#if defined(CONFIG_PERF_EVENTS) && defined(CONFIG_FUNCTION_TRACER)
1298int perf_ftrace_event_register(struct ftrace_event_call *call, 1298int perf_ftrace_event_register(struct trace_event_call *call,
1299 enum trace_reg type, void *data); 1299 enum trace_reg type, void *data);
1300#else 1300#else
1301#define perf_ftrace_event_register NULL 1301#define perf_ftrace_event_register NULL
diff --git a/kernel/trace/trace_branch.c b/kernel/trace/trace_branch.c
index bdfcb44d5d4a..a87b43f49eb4 100644
--- a/kernel/trace/trace_branch.c
+++ b/kernel/trace/trace_branch.c
@@ -29,7 +29,7 @@ static struct trace_array *branch_tracer;
29static void 29static void
30probe_likely_condition(struct ftrace_branch_data *f, int val, int expect) 30probe_likely_condition(struct ftrace_branch_data *f, int val, int expect)
31{ 31{
32 struct ftrace_event_call *call = &event_branch; 32 struct trace_event_call *call = &event_branch;
33 struct trace_array *tr = branch_tracer; 33 struct trace_array *tr = branch_tracer;
34 struct trace_array_cpu *data; 34 struct trace_array_cpu *data;
35 struct ring_buffer_event *event; 35 struct ring_buffer_event *event;
diff --git a/kernel/trace/trace_event_perf.c b/kernel/trace/trace_event_perf.c
index 6fa484de2ba1..abfc903e741e 100644
--- a/kernel/trace/trace_event_perf.c
+++ b/kernel/trace/trace_event_perf.c
@@ -21,7 +21,7 @@ typedef typeof(unsigned long [PERF_MAX_TRACE_SIZE / sizeof(unsigned long)])
21/* Count the events in use (per event id, not per instance) */ 21/* Count the events in use (per event id, not per instance) */
22static int total_ref_count; 22static int total_ref_count;
23 23
24static int perf_trace_event_perm(struct ftrace_event_call *tp_event, 24static int perf_trace_event_perm(struct trace_event_call *tp_event,
25 struct perf_event *p_event) 25 struct perf_event *p_event)
26{ 26{
27 if (tp_event->perf_perm) { 27 if (tp_event->perf_perm) {
@@ -83,7 +83,7 @@ static int perf_trace_event_perm(struct ftrace_event_call *tp_event,
83 return 0; 83 return 0;
84} 84}
85 85
86static int perf_trace_event_reg(struct ftrace_event_call *tp_event, 86static int perf_trace_event_reg(struct trace_event_call *tp_event,
87 struct perf_event *p_event) 87 struct perf_event *p_event)
88{ 88{
89 struct hlist_head __percpu *list; 89 struct hlist_head __percpu *list;
@@ -143,7 +143,7 @@ fail:
143 143
144static void perf_trace_event_unreg(struct perf_event *p_event) 144static void perf_trace_event_unreg(struct perf_event *p_event)
145{ 145{
146 struct ftrace_event_call *tp_event = p_event->tp_event; 146 struct trace_event_call *tp_event = p_event->tp_event;
147 int i; 147 int i;
148 148
149 if (--tp_event->perf_refcount > 0) 149 if (--tp_event->perf_refcount > 0)
@@ -172,17 +172,17 @@ out:
172 172
173static int perf_trace_event_open(struct perf_event *p_event) 173static int perf_trace_event_open(struct perf_event *p_event)
174{ 174{
175 struct ftrace_event_call *tp_event = p_event->tp_event; 175 struct trace_event_call *tp_event = p_event->tp_event;
176 return tp_event->class->reg(tp_event, TRACE_REG_PERF_OPEN, p_event); 176 return tp_event->class->reg(tp_event, TRACE_REG_PERF_OPEN, p_event);
177} 177}
178 178
179static void perf_trace_event_close(struct perf_event *p_event) 179static void perf_trace_event_close(struct perf_event *p_event)
180{ 180{
181 struct ftrace_event_call *tp_event = p_event->tp_event; 181 struct trace_event_call *tp_event = p_event->tp_event;
182 tp_event->class->reg(tp_event, TRACE_REG_PERF_CLOSE, p_event); 182 tp_event->class->reg(tp_event, TRACE_REG_PERF_CLOSE, p_event);
183} 183}
184 184
185static int perf_trace_event_init(struct ftrace_event_call *tp_event, 185static int perf_trace_event_init(struct trace_event_call *tp_event,
186 struct perf_event *p_event) 186 struct perf_event *p_event)
187{ 187{
188 int ret; 188 int ret;
@@ -206,7 +206,7 @@ static int perf_trace_event_init(struct ftrace_event_call *tp_event,
206 206
207int perf_trace_init(struct perf_event *p_event) 207int perf_trace_init(struct perf_event *p_event)
208{ 208{
209 struct ftrace_event_call *tp_event; 209 struct trace_event_call *tp_event;
210 u64 event_id = p_event->attr.config; 210 u64 event_id = p_event->attr.config;
211 int ret = -EINVAL; 211 int ret = -EINVAL;
212 212
@@ -236,7 +236,7 @@ void perf_trace_destroy(struct perf_event *p_event)
236 236
237int perf_trace_add(struct perf_event *p_event, int flags) 237int perf_trace_add(struct perf_event *p_event, int flags)
238{ 238{
239 struct ftrace_event_call *tp_event = p_event->tp_event; 239 struct trace_event_call *tp_event = p_event->tp_event;
240 struct hlist_head __percpu *pcpu_list; 240 struct hlist_head __percpu *pcpu_list;
241 struct hlist_head *list; 241 struct hlist_head *list;
242 242
@@ -255,7 +255,7 @@ int perf_trace_add(struct perf_event *p_event, int flags)
255 255
256void perf_trace_del(struct perf_event *p_event, int flags) 256void perf_trace_del(struct perf_event *p_event, int flags)
257{ 257{
258 struct ftrace_event_call *tp_event = p_event->tp_event; 258 struct trace_event_call *tp_event = p_event->tp_event;
259 hlist_del_rcu(&p_event->hlist_entry); 259 hlist_del_rcu(&p_event->hlist_entry);
260 tp_event->class->reg(tp_event, TRACE_REG_PERF_DEL, p_event); 260 tp_event->class->reg(tp_event, TRACE_REG_PERF_DEL, p_event);
261} 261}
@@ -357,7 +357,7 @@ static void perf_ftrace_function_disable(struct perf_event *event)
357 ftrace_function_local_disable(&event->ftrace_ops); 357 ftrace_function_local_disable(&event->ftrace_ops);
358} 358}
359 359
360int perf_ftrace_event_register(struct ftrace_event_call *call, 360int perf_ftrace_event_register(struct trace_event_call *call,
361 enum trace_reg type, void *data) 361 enum trace_reg type, void *data)
362{ 362{
363 switch (type) { 363 switch (type) {
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c
index 4a7cc4630ced..8df615ce3dc4 100644
--- a/kernel/trace/trace_events.c
+++ b/kernel/trace/trace_events.c
@@ -68,7 +68,7 @@ static int system_refcount_dec(struct event_subsystem *system)
68 } 68 }
69 69
70static struct list_head * 70static struct list_head *
71trace_get_fields(struct ftrace_event_call *event_call) 71trace_get_fields(struct trace_event_call *event_call)
72{ 72{
73 if (!event_call->class->get_fields) 73 if (!event_call->class->get_fields)
74 return &event_call->class->fields; 74 return &event_call->class->fields;
@@ -89,7 +89,7 @@ __find_event_field(struct list_head *head, char *name)
89} 89}
90 90
91struct ftrace_event_field * 91struct ftrace_event_field *
92trace_find_event_field(struct ftrace_event_call *call, char *name) 92trace_find_event_field(struct trace_event_call *call, char *name)
93{ 93{
94 struct ftrace_event_field *field; 94 struct ftrace_event_field *field;
95 struct list_head *head; 95 struct list_head *head;
@@ -129,7 +129,7 @@ static int __trace_define_field(struct list_head *head, const char *type,
129 return 0; 129 return 0;
130} 130}
131 131
132int trace_define_field(struct ftrace_event_call *call, const char *type, 132int trace_define_field(struct trace_event_call *call, const char *type,
133 const char *name, int offset, int size, int is_signed, 133 const char *name, int offset, int size, int is_signed,
134 int filter_type) 134 int filter_type)
135{ 135{
@@ -166,7 +166,7 @@ static int trace_define_common_fields(void)
166 return ret; 166 return ret;
167} 167}
168 168
169static void trace_destroy_fields(struct ftrace_event_call *call) 169static void trace_destroy_fields(struct trace_event_call *call)
170{ 170{
171 struct ftrace_event_field *field, *next; 171 struct ftrace_event_field *field, *next;
172 struct list_head *head; 172 struct list_head *head;
@@ -178,7 +178,7 @@ static void trace_destroy_fields(struct ftrace_event_call *call)
178 } 178 }
179} 179}
180 180
181int trace_event_raw_init(struct ftrace_event_call *call) 181int trace_event_raw_init(struct trace_event_call *call)
182{ 182{
183 int id; 183 int id;
184 184
@@ -194,7 +194,7 @@ void *ftrace_event_buffer_reserve(struct ftrace_event_buffer *fbuffer,
194 struct trace_event_file *trace_file, 194 struct trace_event_file *trace_file,
195 unsigned long len) 195 unsigned long len)
196{ 196{
197 struct ftrace_event_call *event_call = trace_file->event_call; 197 struct trace_event_call *event_call = trace_file->event_call;
198 198
199 local_save_flags(fbuffer->flags); 199 local_save_flags(fbuffer->flags);
200 fbuffer->pc = preempt_count(); 200 fbuffer->pc = preempt_count();
@@ -216,7 +216,7 @@ static DEFINE_SPINLOCK(tracepoint_iter_lock);
216 216
217static void output_printk(struct ftrace_event_buffer *fbuffer) 217static void output_printk(struct ftrace_event_buffer *fbuffer)
218{ 218{
219 struct ftrace_event_call *event_call; 219 struct trace_event_call *event_call;
220 struct trace_event *event; 220 struct trace_event *event;
221 unsigned long flags; 221 unsigned long flags;
222 struct trace_iterator *iter = tracepoint_print_iter; 222 struct trace_iterator *iter = tracepoint_print_iter;
@@ -252,7 +252,7 @@ void ftrace_event_buffer_commit(struct ftrace_event_buffer *fbuffer)
252} 252}
253EXPORT_SYMBOL_GPL(ftrace_event_buffer_commit); 253EXPORT_SYMBOL_GPL(ftrace_event_buffer_commit);
254 254
255int trace_event_reg(struct ftrace_event_call *call, 255int trace_event_reg(struct trace_event_call *call,
256 enum trace_reg type, void *data) 256 enum trace_reg type, void *data)
257{ 257{
258 struct trace_event_file *file = data; 258 struct trace_event_file *file = data;
@@ -315,7 +315,7 @@ void trace_event_enable_cmd_record(bool enable)
315static int __ftrace_event_enable_disable(struct trace_event_file *file, 315static int __ftrace_event_enable_disable(struct trace_event_file *file,
316 int enable, int soft_disable) 316 int enable, int soft_disable)
317{ 317{
318 struct ftrace_event_call *call = file->event_call; 318 struct trace_event_call *call = file->event_call;
319 int ret = 0; 319 int ret = 0;
320 int disable; 320 int disable;
321 321
@@ -516,7 +516,7 @@ __ftrace_set_clr_event_nolock(struct trace_array *tr, const char *match,
516 const char *sub, const char *event, int set) 516 const char *sub, const char *event, int set)
517{ 517{
518 struct trace_event_file *file; 518 struct trace_event_file *file;
519 struct ftrace_event_call *call; 519 struct trace_event_call *call;
520 const char *name; 520 const char *name;
521 int ret = -EINVAL; 521 int ret = -EINVAL;
522 522
@@ -672,7 +672,7 @@ static void *
672t_next(struct seq_file *m, void *v, loff_t *pos) 672t_next(struct seq_file *m, void *v, loff_t *pos)
673{ 673{
674 struct trace_event_file *file = v; 674 struct trace_event_file *file = v;
675 struct ftrace_event_call *call; 675 struct trace_event_call *call;
676 struct trace_array *tr = m->private; 676 struct trace_array *tr = m->private;
677 677
678 (*pos)++; 678 (*pos)++;
@@ -743,7 +743,7 @@ static void *s_start(struct seq_file *m, loff_t *pos)
743static int t_show(struct seq_file *m, void *v) 743static int t_show(struct seq_file *m, void *v)
744{ 744{
745 struct trace_event_file *file = v; 745 struct trace_event_file *file = v;
746 struct ftrace_event_call *call = file->event_call; 746 struct trace_event_call *call = file->event_call;
747 747
748 if (strcmp(call->class->system, TRACE_SYSTEM) != 0) 748 if (strcmp(call->class->system, TRACE_SYSTEM) != 0)
749 seq_printf(m, "%s:", call->class->system); 749 seq_printf(m, "%s:", call->class->system);
@@ -830,7 +830,7 @@ system_enable_read(struct file *filp, char __user *ubuf, size_t cnt,
830 const char set_to_char[4] = { '?', '0', '1', 'X' }; 830 const char set_to_char[4] = { '?', '0', '1', 'X' };
831 struct ftrace_subsystem_dir *dir = filp->private_data; 831 struct ftrace_subsystem_dir *dir = filp->private_data;
832 struct event_subsystem *system = dir->subsystem; 832 struct event_subsystem *system = dir->subsystem;
833 struct ftrace_event_call *call; 833 struct trace_event_call *call;
834 struct trace_event_file *file; 834 struct trace_event_file *file;
835 struct trace_array *tr = dir->tr; 835 struct trace_array *tr = dir->tr;
836 char buf[2]; 836 char buf[2];
@@ -917,7 +917,7 @@ enum {
917 917
918static void *f_next(struct seq_file *m, void *v, loff_t *pos) 918static void *f_next(struct seq_file *m, void *v, loff_t *pos)
919{ 919{
920 struct ftrace_event_call *call = event_file_data(m->private); 920 struct trace_event_call *call = event_file_data(m->private);
921 struct list_head *common_head = &ftrace_common_fields; 921 struct list_head *common_head = &ftrace_common_fields;
922 struct list_head *head = trace_get_fields(call); 922 struct list_head *head = trace_get_fields(call);
923 struct list_head *node = v; 923 struct list_head *node = v;
@@ -949,7 +949,7 @@ static void *f_next(struct seq_file *m, void *v, loff_t *pos)
949 949
950static int f_show(struct seq_file *m, void *v) 950static int f_show(struct seq_file *m, void *v)
951{ 951{
952 struct ftrace_event_call *call = event_file_data(m->private); 952 struct trace_event_call *call = event_file_data(m->private);
953 struct ftrace_event_field *field; 953 struct ftrace_event_field *field;
954 const char *array_descriptor; 954 const char *array_descriptor;
955 955
@@ -1573,7 +1573,7 @@ event_subsystem_dir(struct trace_array *tr, const char *name,
1573static int 1573static int
1574event_create_dir(struct dentry *parent, struct trace_event_file *file) 1574event_create_dir(struct dentry *parent, struct trace_event_file *file)
1575{ 1575{
1576 struct ftrace_event_call *call = file->event_call; 1576 struct trace_event_call *call = file->event_call;
1577 struct trace_array *tr = file->tr; 1577 struct trace_array *tr = file->tr;
1578 struct list_head *head; 1578 struct list_head *head;
1579 struct dentry *d_events; 1579 struct dentry *d_events;
@@ -1634,7 +1634,7 @@ event_create_dir(struct dentry *parent, struct trace_event_file *file)
1634 return 0; 1634 return 0;
1635} 1635}
1636 1636
1637static void remove_event_from_tracers(struct ftrace_event_call *call) 1637static void remove_event_from_tracers(struct trace_event_call *call)
1638{ 1638{
1639 struct trace_event_file *file; 1639 struct trace_event_file *file;
1640 struct trace_array *tr; 1640 struct trace_array *tr;
@@ -1654,7 +1654,7 @@ static void remove_event_from_tracers(struct ftrace_event_call *call)
1654 } while_for_each_event_file(); 1654 } while_for_each_event_file();
1655} 1655}
1656 1656
1657static void event_remove(struct ftrace_event_call *call) 1657static void event_remove(struct trace_event_call *call)
1658{ 1658{
1659 struct trace_array *tr; 1659 struct trace_array *tr;
1660 struct trace_event_file *file; 1660 struct trace_event_file *file;
@@ -1678,7 +1678,7 @@ static void event_remove(struct ftrace_event_call *call)
1678 list_del(&call->list); 1678 list_del(&call->list);
1679} 1679}
1680 1680
1681static int event_init(struct ftrace_event_call *call) 1681static int event_init(struct trace_event_call *call)
1682{ 1682{
1683 int ret = 0; 1683 int ret = 0;
1684 const char *name; 1684 const char *name;
@@ -1697,7 +1697,7 @@ static int event_init(struct ftrace_event_call *call)
1697} 1697}
1698 1698
1699static int 1699static int
1700__register_event(struct ftrace_event_call *call, struct module *mod) 1700__register_event(struct trace_event_call *call, struct module *mod)
1701{ 1701{
1702 int ret; 1702 int ret;
1703 1703
@@ -1733,7 +1733,7 @@ static char *enum_replace(char *ptr, struct trace_enum_map *map, int len)
1733 return ptr + elen; 1733 return ptr + elen;
1734} 1734}
1735 1735
1736static void update_event_printk(struct ftrace_event_call *call, 1736static void update_event_printk(struct trace_event_call *call,
1737 struct trace_enum_map *map) 1737 struct trace_enum_map *map)
1738{ 1738{
1739 char *ptr; 1739 char *ptr;
@@ -1811,7 +1811,7 @@ static void update_event_printk(struct ftrace_event_call *call,
1811 1811
1812void trace_event_enum_update(struct trace_enum_map **map, int len) 1812void trace_event_enum_update(struct trace_enum_map **map, int len)
1813{ 1813{
1814 struct ftrace_event_call *call, *p; 1814 struct trace_event_call *call, *p;
1815 const char *last_system = NULL; 1815 const char *last_system = NULL;
1816 int last_i; 1816 int last_i;
1817 int i; 1817 int i;
@@ -1837,7 +1837,7 @@ void trace_event_enum_update(struct trace_enum_map **map, int len)
1837} 1837}
1838 1838
1839static struct trace_event_file * 1839static struct trace_event_file *
1840trace_create_new_event(struct ftrace_event_call *call, 1840trace_create_new_event(struct trace_event_call *call,
1841 struct trace_array *tr) 1841 struct trace_array *tr)
1842{ 1842{
1843 struct trace_event_file *file; 1843 struct trace_event_file *file;
@@ -1858,7 +1858,7 @@ trace_create_new_event(struct ftrace_event_call *call,
1858 1858
1859/* Add an event to a trace directory */ 1859/* Add an event to a trace directory */
1860static int 1860static int
1861__trace_add_new_event(struct ftrace_event_call *call, struct trace_array *tr) 1861__trace_add_new_event(struct trace_event_call *call, struct trace_array *tr)
1862{ 1862{
1863 struct trace_event_file *file; 1863 struct trace_event_file *file;
1864 1864
@@ -1875,7 +1875,7 @@ __trace_add_new_event(struct ftrace_event_call *call, struct trace_array *tr)
1875 * the filesystem is initialized. 1875 * the filesystem is initialized.
1876 */ 1876 */
1877static __init int 1877static __init int
1878__trace_early_add_new_event(struct ftrace_event_call *call, 1878__trace_early_add_new_event(struct trace_event_call *call,
1879 struct trace_array *tr) 1879 struct trace_array *tr)
1880{ 1880{
1881 struct trace_event_file *file; 1881 struct trace_event_file *file;
@@ -1888,10 +1888,10 @@ __trace_early_add_new_event(struct ftrace_event_call *call,
1888} 1888}
1889 1889
1890struct ftrace_module_file_ops; 1890struct ftrace_module_file_ops;
1891static void __add_event_to_tracers(struct ftrace_event_call *call); 1891static void __add_event_to_tracers(struct trace_event_call *call);
1892 1892
1893/* Add an additional event_call dynamically */ 1893/* Add an additional event_call dynamically */
1894int trace_add_event_call(struct ftrace_event_call *call) 1894int trace_add_event_call(struct trace_event_call *call)
1895{ 1895{
1896 int ret; 1896 int ret;
1897 mutex_lock(&trace_types_lock); 1897 mutex_lock(&trace_types_lock);
@@ -1910,7 +1910,7 @@ int trace_add_event_call(struct ftrace_event_call *call)
1910 * Must be called under locking of trace_types_lock, event_mutex and 1910 * Must be called under locking of trace_types_lock, event_mutex and
1911 * trace_event_sem. 1911 * trace_event_sem.
1912 */ 1912 */
1913static void __trace_remove_event_call(struct ftrace_event_call *call) 1913static void __trace_remove_event_call(struct trace_event_call *call)
1914{ 1914{
1915 event_remove(call); 1915 event_remove(call);
1916 trace_destroy_fields(call); 1916 trace_destroy_fields(call);
@@ -1918,7 +1918,7 @@ static void __trace_remove_event_call(struct ftrace_event_call *call)
1918 call->filter = NULL; 1918 call->filter = NULL;
1919} 1919}
1920 1920
1921static int probe_remove_event_call(struct ftrace_event_call *call) 1921static int probe_remove_event_call(struct trace_event_call *call)
1922{ 1922{
1923 struct trace_array *tr; 1923 struct trace_array *tr;
1924 struct trace_event_file *file; 1924 struct trace_event_file *file;
@@ -1952,7 +1952,7 @@ static int probe_remove_event_call(struct ftrace_event_call *call)
1952} 1952}
1953 1953
1954/* Remove an event_call */ 1954/* Remove an event_call */
1955int trace_remove_event_call(struct ftrace_event_call *call) 1955int trace_remove_event_call(struct trace_event_call *call)
1956{ 1956{
1957 int ret; 1957 int ret;
1958 1958
@@ -1976,7 +1976,7 @@ int trace_remove_event_call(struct ftrace_event_call *call)
1976 1976
1977static void trace_module_add_events(struct module *mod) 1977static void trace_module_add_events(struct module *mod)
1978{ 1978{
1979 struct ftrace_event_call **call, **start, **end; 1979 struct trace_event_call **call, **start, **end;
1980 1980
1981 if (!mod->num_trace_events) 1981 if (!mod->num_trace_events)
1982 return; 1982 return;
@@ -1999,7 +1999,7 @@ static void trace_module_add_events(struct module *mod)
1999 1999
2000static void trace_module_remove_events(struct module *mod) 2000static void trace_module_remove_events(struct module *mod)
2001{ 2001{
2002 struct ftrace_event_call *call, *p; 2002 struct trace_event_call *call, *p;
2003 bool clear_trace = false; 2003 bool clear_trace = false;
2004 2004
2005 down_write(&trace_event_sem); 2005 down_write(&trace_event_sem);
@@ -2055,7 +2055,7 @@ static struct notifier_block trace_module_nb = {
2055static void 2055static void
2056__trace_add_event_dirs(struct trace_array *tr) 2056__trace_add_event_dirs(struct trace_array *tr)
2057{ 2057{
2058 struct ftrace_event_call *call; 2058 struct trace_event_call *call;
2059 int ret; 2059 int ret;
2060 2060
2061 list_for_each_entry(call, &ftrace_events, list) { 2061 list_for_each_entry(call, &ftrace_events, list) {
@@ -2070,7 +2070,7 @@ struct trace_event_file *
2070find_event_file(struct trace_array *tr, const char *system, const char *event) 2070find_event_file(struct trace_array *tr, const char *system, const char *event)
2071{ 2071{
2072 struct trace_event_file *file; 2072 struct trace_event_file *file;
2073 struct ftrace_event_call *call; 2073 struct trace_event_call *call;
2074 const char *name; 2074 const char *name;
2075 2075
2076 list_for_each_entry(file, &tr->events, list) { 2076 list_for_each_entry(file, &tr->events, list) {
@@ -2388,7 +2388,7 @@ __trace_early_add_event_dirs(struct trace_array *tr)
2388static __init void 2388static __init void
2389__trace_early_add_events(struct trace_array *tr) 2389__trace_early_add_events(struct trace_array *tr)
2390{ 2390{
2391 struct ftrace_event_call *call; 2391 struct trace_event_call *call;
2392 int ret; 2392 int ret;
2393 2393
2394 list_for_each_entry(call, &ftrace_events, list) { 2394 list_for_each_entry(call, &ftrace_events, list) {
@@ -2413,7 +2413,7 @@ __trace_remove_event_dirs(struct trace_array *tr)
2413 remove_event_file_dir(file); 2413 remove_event_file_dir(file);
2414} 2414}
2415 2415
2416static void __add_event_to_tracers(struct ftrace_event_call *call) 2416static void __add_event_to_tracers(struct trace_event_call *call)
2417{ 2417{
2418 struct trace_array *tr; 2418 struct trace_array *tr;
2419 2419
@@ -2421,8 +2421,8 @@ static void __add_event_to_tracers(struct ftrace_event_call *call)
2421 __trace_add_new_event(call, tr); 2421 __trace_add_new_event(call, tr);
2422} 2422}
2423 2423
2424extern struct ftrace_event_call *__start_ftrace_events[]; 2424extern struct trace_event_call *__start_ftrace_events[];
2425extern struct ftrace_event_call *__stop_ftrace_events[]; 2425extern struct trace_event_call *__stop_ftrace_events[];
2426 2426
2427static char bootup_event_buf[COMMAND_LINE_SIZE] __initdata; 2427static char bootup_event_buf[COMMAND_LINE_SIZE] __initdata;
2428 2428
@@ -2593,7 +2593,7 @@ early_enable_events(struct trace_array *tr, bool disable_first)
2593static __init int event_trace_enable(void) 2593static __init int event_trace_enable(void)
2594{ 2594{
2595 struct trace_array *tr = top_trace_array(); 2595 struct trace_array *tr = top_trace_array();
2596 struct ftrace_event_call **iter, *call; 2596 struct trace_event_call **iter, *call;
2597 int ret; 2597 int ret;
2598 2598
2599 if (!tr) 2599 if (!tr)
@@ -2756,7 +2756,7 @@ static __init void event_trace_self_tests(void)
2756{ 2756{
2757 struct ftrace_subsystem_dir *dir; 2757 struct ftrace_subsystem_dir *dir;
2758 struct trace_event_file *file; 2758 struct trace_event_file *file;
2759 struct ftrace_event_call *call; 2759 struct trace_event_call *call;
2760 struct event_subsystem *system; 2760 struct event_subsystem *system;
2761 struct trace_array *tr; 2761 struct trace_array *tr;
2762 int ret; 2762 int ret;
diff --git a/kernel/trace/trace_events_filter.c b/kernel/trace/trace_events_filter.c
index 13ad0a87d31e..d535f3bf2aa2 100644
--- a/kernel/trace/trace_events_filter.c
+++ b/kernel/trace/trace_events_filter.c
@@ -782,7 +782,7 @@ static void __free_preds(struct event_filter *filter)
782 782
783static void filter_disable(struct trace_event_file *file) 783static void filter_disable(struct trace_event_file *file)
784{ 784{
785 struct ftrace_event_call *call = file->event_call; 785 struct trace_event_call *call = file->event_call;
786 786
787 if (call->flags & TRACE_EVENT_FL_USE_CALL_FILTER) 787 if (call->flags & TRACE_EVENT_FL_USE_CALL_FILTER)
788 call->flags &= ~TRACE_EVENT_FL_FILTERED; 788 call->flags &= ~TRACE_EVENT_FL_FILTERED;
@@ -839,7 +839,7 @@ static int __alloc_preds(struct event_filter *filter, int n_preds)
839 839
840static inline void __remove_filter(struct trace_event_file *file) 840static inline void __remove_filter(struct trace_event_file *file)
841{ 841{
842 struct ftrace_event_call *call = file->event_call; 842 struct trace_event_call *call = file->event_call;
843 843
844 filter_disable(file); 844 filter_disable(file);
845 if (call->flags & TRACE_EVENT_FL_USE_CALL_FILTER) 845 if (call->flags & TRACE_EVENT_FL_USE_CALL_FILTER)
@@ -862,7 +862,7 @@ static void filter_free_subsystem_preds(struct ftrace_subsystem_dir *dir,
862 862
863static inline void __free_subsystem_filter(struct trace_event_file *file) 863static inline void __free_subsystem_filter(struct trace_event_file *file)
864{ 864{
865 struct ftrace_event_call *call = file->event_call; 865 struct trace_event_call *call = file->event_call;
866 866
867 if (call->flags & TRACE_EVENT_FL_USE_CALL_FILTER) { 867 if (call->flags & TRACE_EVENT_FL_USE_CALL_FILTER) {
868 __free_filter(call->filter); 868 __free_filter(call->filter);
@@ -1336,7 +1336,7 @@ parse_operand:
1336} 1336}
1337 1337
1338static struct filter_pred *create_pred(struct filter_parse_state *ps, 1338static struct filter_pred *create_pred(struct filter_parse_state *ps,
1339 struct ftrace_event_call *call, 1339 struct trace_event_call *call,
1340 int op, char *operand1, char *operand2) 1340 int op, char *operand1, char *operand2)
1341{ 1341{
1342 struct ftrace_event_field *field; 1342 struct ftrace_event_field *field;
@@ -1549,7 +1549,7 @@ static int fold_pred_tree(struct event_filter *filter,
1549 filter->preds); 1549 filter->preds);
1550} 1550}
1551 1551
1552static int replace_preds(struct ftrace_event_call *call, 1552static int replace_preds(struct trace_event_call *call,
1553 struct event_filter *filter, 1553 struct event_filter *filter,
1554 struct filter_parse_state *ps, 1554 struct filter_parse_state *ps,
1555 bool dry_run) 1555 bool dry_run)
@@ -1664,7 +1664,7 @@ fail:
1664 1664
1665static inline void event_set_filtered_flag(struct trace_event_file *file) 1665static inline void event_set_filtered_flag(struct trace_event_file *file)
1666{ 1666{
1667 struct ftrace_event_call *call = file->event_call; 1667 struct trace_event_call *call = file->event_call;
1668 1668
1669 if (call->flags & TRACE_EVENT_FL_USE_CALL_FILTER) 1669 if (call->flags & TRACE_EVENT_FL_USE_CALL_FILTER)
1670 call->flags |= TRACE_EVENT_FL_FILTERED; 1670 call->flags |= TRACE_EVENT_FL_FILTERED;
@@ -1675,7 +1675,7 @@ static inline void event_set_filtered_flag(struct trace_event_file *file)
1675static inline void event_set_filter(struct trace_event_file *file, 1675static inline void event_set_filter(struct trace_event_file *file,
1676 struct event_filter *filter) 1676 struct event_filter *filter)
1677{ 1677{
1678 struct ftrace_event_call *call = file->event_call; 1678 struct trace_event_call *call = file->event_call;
1679 1679
1680 if (call->flags & TRACE_EVENT_FL_USE_CALL_FILTER) 1680 if (call->flags & TRACE_EVENT_FL_USE_CALL_FILTER)
1681 rcu_assign_pointer(call->filter, filter); 1681 rcu_assign_pointer(call->filter, filter);
@@ -1685,7 +1685,7 @@ static inline void event_set_filter(struct trace_event_file *file,
1685 1685
1686static inline void event_clear_filter(struct trace_event_file *file) 1686static inline void event_clear_filter(struct trace_event_file *file)
1687{ 1687{
1688 struct ftrace_event_call *call = file->event_call; 1688 struct trace_event_call *call = file->event_call;
1689 1689
1690 if (call->flags & TRACE_EVENT_FL_USE_CALL_FILTER) 1690 if (call->flags & TRACE_EVENT_FL_USE_CALL_FILTER)
1691 RCU_INIT_POINTER(call->filter, NULL); 1691 RCU_INIT_POINTER(call->filter, NULL);
@@ -1696,7 +1696,7 @@ static inline void event_clear_filter(struct trace_event_file *file)
1696static inline void 1696static inline void
1697event_set_no_set_filter_flag(struct trace_event_file *file) 1697event_set_no_set_filter_flag(struct trace_event_file *file)
1698{ 1698{
1699 struct ftrace_event_call *call = file->event_call; 1699 struct trace_event_call *call = file->event_call;
1700 1700
1701 if (call->flags & TRACE_EVENT_FL_USE_CALL_FILTER) 1701 if (call->flags & TRACE_EVENT_FL_USE_CALL_FILTER)
1702 call->flags |= TRACE_EVENT_FL_NO_SET_FILTER; 1702 call->flags |= TRACE_EVENT_FL_NO_SET_FILTER;
@@ -1707,7 +1707,7 @@ event_set_no_set_filter_flag(struct trace_event_file *file)
1707static inline void 1707static inline void
1708event_clear_no_set_filter_flag(struct trace_event_file *file) 1708event_clear_no_set_filter_flag(struct trace_event_file *file)
1709{ 1709{
1710 struct ftrace_event_call *call = file->event_call; 1710 struct trace_event_call *call = file->event_call;
1711 1711
1712 if (call->flags & TRACE_EVENT_FL_USE_CALL_FILTER) 1712 if (call->flags & TRACE_EVENT_FL_USE_CALL_FILTER)
1713 call->flags &= ~TRACE_EVENT_FL_NO_SET_FILTER; 1713 call->flags &= ~TRACE_EVENT_FL_NO_SET_FILTER;
@@ -1718,7 +1718,7 @@ event_clear_no_set_filter_flag(struct trace_event_file *file)
1718static inline bool 1718static inline bool
1719event_no_set_filter_flag(struct trace_event_file *file) 1719event_no_set_filter_flag(struct trace_event_file *file)
1720{ 1720{
1721 struct ftrace_event_call *call = file->event_call; 1721 struct trace_event_call *call = file->event_call;
1722 1722
1723 if (file->flags & FTRACE_EVENT_FL_NO_SET_FILTER) 1723 if (file->flags & FTRACE_EVENT_FL_NO_SET_FILTER)
1724 return true; 1724 return true;
@@ -1884,8 +1884,8 @@ static void create_filter_finish(struct filter_parse_state *ps)
1884} 1884}
1885 1885
1886/** 1886/**
1887 * create_filter - create a filter for a ftrace_event_call 1887 * create_filter - create a filter for a trace_event_call
1888 * @call: ftrace_event_call to create a filter for 1888 * @call: trace_event_call to create a filter for
1889 * @filter_str: filter string 1889 * @filter_str: filter string
1890 * @set_str: remember @filter_str and enable detailed error in filter 1890 * @set_str: remember @filter_str and enable detailed error in filter
1891 * @filterp: out param for created filter (always updated on return) 1891 * @filterp: out param for created filter (always updated on return)
@@ -1899,7 +1899,7 @@ static void create_filter_finish(struct filter_parse_state *ps)
1899 * information if @set_str is %true and the caller is responsible for 1899 * information if @set_str is %true and the caller is responsible for
1900 * freeing it. 1900 * freeing it.
1901 */ 1901 */
1902static int create_filter(struct ftrace_event_call *call, 1902static int create_filter(struct trace_event_call *call,
1903 char *filter_str, bool set_str, 1903 char *filter_str, bool set_str,
1904 struct event_filter **filterp) 1904 struct event_filter **filterp)
1905{ 1905{
@@ -1919,7 +1919,7 @@ static int create_filter(struct ftrace_event_call *call,
1919 return err; 1919 return err;
1920} 1920}
1921 1921
1922int create_event_filter(struct ftrace_event_call *call, 1922int create_event_filter(struct trace_event_call *call,
1923 char *filter_str, bool set_str, 1923 char *filter_str, bool set_str,
1924 struct event_filter **filterp) 1924 struct event_filter **filterp)
1925{ 1925{
@@ -1963,7 +1963,7 @@ static int create_system_filter(struct ftrace_subsystem_dir *dir,
1963/* caller must hold event_mutex */ 1963/* caller must hold event_mutex */
1964int apply_event_filter(struct trace_event_file *file, char *filter_string) 1964int apply_event_filter(struct trace_event_file *file, char *filter_string)
1965{ 1965{
1966 struct ftrace_event_call *call = file->event_call; 1966 struct trace_event_call *call = file->event_call;
1967 struct event_filter *filter; 1967 struct event_filter *filter;
1968 int err; 1968 int err;
1969 1969
@@ -2212,7 +2212,7 @@ int ftrace_profile_set_filter(struct perf_event *event, int event_id,
2212{ 2212{
2213 int err; 2213 int err;
2214 struct event_filter *filter; 2214 struct event_filter *filter;
2215 struct ftrace_event_call *call; 2215 struct trace_event_call *call;
2216 2216
2217 mutex_lock(&event_mutex); 2217 mutex_lock(&event_mutex);
2218 2218
diff --git a/kernel/trace/trace_export.c b/kernel/trace/trace_export.c
index 174a6a71146c..adabf7da9113 100644
--- a/kernel/trace/trace_export.c
+++ b/kernel/trace/trace_export.c
@@ -125,7 +125,7 @@ static void __always_unused ____ftrace_check_##name(void) \
125#undef FTRACE_ENTRY 125#undef FTRACE_ENTRY
126#define FTRACE_ENTRY(name, struct_name, id, tstruct, print, filter) \ 126#define FTRACE_ENTRY(name, struct_name, id, tstruct, print, filter) \
127static int __init \ 127static int __init \
128ftrace_define_fields_##name(struct ftrace_event_call *event_call) \ 128ftrace_define_fields_##name(struct trace_event_call *event_call) \
129{ \ 129{ \
130 struct struct_name field; \ 130 struct struct_name field; \
131 int ret; \ 131 int ret; \
@@ -163,14 +163,14 @@ ftrace_define_fields_##name(struct ftrace_event_call *event_call) \
163#define FTRACE_ENTRY_REG(call, struct_name, etype, tstruct, print, filter,\ 163#define FTRACE_ENTRY_REG(call, struct_name, etype, tstruct, print, filter,\
164 regfn) \ 164 regfn) \
165 \ 165 \
166struct ftrace_event_class __refdata event_class_ftrace_##call = { \ 166struct trace_event_class __refdata event_class_ftrace_##call = { \
167 .system = __stringify(TRACE_SYSTEM), \ 167 .system = __stringify(TRACE_SYSTEM), \
168 .define_fields = ftrace_define_fields_##call, \ 168 .define_fields = ftrace_define_fields_##call, \
169 .fields = LIST_HEAD_INIT(event_class_ftrace_##call.fields),\ 169 .fields = LIST_HEAD_INIT(event_class_ftrace_##call.fields),\
170 .reg = regfn, \ 170 .reg = regfn, \
171}; \ 171}; \
172 \ 172 \
173struct ftrace_event_call __used event_##call = { \ 173struct trace_event_call __used event_##call = { \
174 .class = &event_class_ftrace_##call, \ 174 .class = &event_class_ftrace_##call, \
175 { \ 175 { \
176 .name = #call, \ 176 .name = #call, \
@@ -179,7 +179,7 @@ struct ftrace_event_call __used event_##call = { \
179 .print_fmt = print, \ 179 .print_fmt = print, \
180 .flags = TRACE_EVENT_FL_IGNORE_ENABLE, \ 180 .flags = TRACE_EVENT_FL_IGNORE_ENABLE, \
181}; \ 181}; \
182struct ftrace_event_call __used \ 182struct trace_event_call __used \
183__attribute__((section("_ftrace_events"))) *__event_##call = &event_##call; 183__attribute__((section("_ftrace_events"))) *__event_##call = &event_##call;
184 184
185#undef FTRACE_ENTRY 185#undef FTRACE_ENTRY
@@ -187,7 +187,7 @@ __attribute__((section("_ftrace_events"))) *__event_##call = &event_##call;
187 FTRACE_ENTRY_REG(call, struct_name, etype, \ 187 FTRACE_ENTRY_REG(call, struct_name, etype, \
188 PARAMS(tstruct), PARAMS(print), filter, NULL) 188 PARAMS(tstruct), PARAMS(print), filter, NULL)
189 189
190int ftrace_event_is_function(struct ftrace_event_call *call) 190int ftrace_event_is_function(struct trace_event_call *call)
191{ 191{
192 return call == &event_function; 192 return call == &event_function;
193} 193}
diff --git a/kernel/trace/trace_functions_graph.c b/kernel/trace/trace_functions_graph.c
index 32e76a21b8d4..8968bf720c12 100644
--- a/kernel/trace/trace_functions_graph.c
+++ b/kernel/trace/trace_functions_graph.c
@@ -278,7 +278,7 @@ int __trace_graph_entry(struct trace_array *tr,
278 unsigned long flags, 278 unsigned long flags,
279 int pc) 279 int pc)
280{ 280{
281 struct ftrace_event_call *call = &event_funcgraph_entry; 281 struct trace_event_call *call = &event_funcgraph_entry;
282 struct ring_buffer_event *event; 282 struct ring_buffer_event *event;
283 struct ring_buffer *buffer = tr->trace_buffer.buffer; 283 struct ring_buffer *buffer = tr->trace_buffer.buffer;
284 struct ftrace_graph_ent_entry *entry; 284 struct ftrace_graph_ent_entry *entry;
@@ -393,7 +393,7 @@ void __trace_graph_return(struct trace_array *tr,
393 unsigned long flags, 393 unsigned long flags,
394 int pc) 394 int pc)
395{ 395{
396 struct ftrace_event_call *call = &event_funcgraph_exit; 396 struct trace_event_call *call = &event_funcgraph_exit;
397 struct ring_buffer_event *event; 397 struct ring_buffer_event *event;
398 struct ring_buffer *buffer = tr->trace_buffer.buffer; 398 struct ring_buffer *buffer = tr->trace_buffer.buffer;
399 struct ftrace_graph_ret_entry *entry; 399 struct ftrace_graph_ret_entry *entry;
diff --git a/kernel/trace/trace_kprobe.c b/kernel/trace/trace_kprobe.c
index 87c63d039b9d..6ecb1a49af7b 100644
--- a/kernel/trace/trace_kprobe.c
+++ b/kernel/trace/trace_kprobe.c
@@ -924,7 +924,7 @@ __kprobe_trace_func(struct trace_kprobe *tk, struct pt_regs *regs,
924 struct ring_buffer *buffer; 924 struct ring_buffer *buffer;
925 int size, dsize, pc; 925 int size, dsize, pc;
926 unsigned long irq_flags; 926 unsigned long irq_flags;
927 struct ftrace_event_call *call = &tk->tp.call; 927 struct trace_event_call *call = &tk->tp.call;
928 928
929 WARN_ON(call != trace_file->event_call); 929 WARN_ON(call != trace_file->event_call);
930 930
@@ -972,7 +972,7 @@ __kretprobe_trace_func(struct trace_kprobe *tk, struct kretprobe_instance *ri,
972 struct ring_buffer *buffer; 972 struct ring_buffer *buffer;
973 int size, pc, dsize; 973 int size, pc, dsize;
974 unsigned long irq_flags; 974 unsigned long irq_flags;
975 struct ftrace_event_call *call = &tk->tp.call; 975 struct trace_event_call *call = &tk->tp.call;
976 976
977 WARN_ON(call != trace_file->event_call); 977 WARN_ON(call != trace_file->event_call);
978 978
@@ -1081,7 +1081,7 @@ print_kretprobe_event(struct trace_iterator *iter, int flags,
1081} 1081}
1082 1082
1083 1083
1084static int kprobe_event_define_fields(struct ftrace_event_call *event_call) 1084static int kprobe_event_define_fields(struct trace_event_call *event_call)
1085{ 1085{
1086 int ret, i; 1086 int ret, i;
1087 struct kprobe_trace_entry_head field; 1087 struct kprobe_trace_entry_head field;
@@ -1104,7 +1104,7 @@ static int kprobe_event_define_fields(struct ftrace_event_call *event_call)
1104 return 0; 1104 return 0;
1105} 1105}
1106 1106
1107static int kretprobe_event_define_fields(struct ftrace_event_call *event_call) 1107static int kretprobe_event_define_fields(struct trace_event_call *event_call)
1108{ 1108{
1109 int ret, i; 1109 int ret, i;
1110 struct kretprobe_trace_entry_head field; 1110 struct kretprobe_trace_entry_head field;
@@ -1134,7 +1134,7 @@ static int kretprobe_event_define_fields(struct ftrace_event_call *event_call)
1134static void 1134static void
1135kprobe_perf_func(struct trace_kprobe *tk, struct pt_regs *regs) 1135kprobe_perf_func(struct trace_kprobe *tk, struct pt_regs *regs)
1136{ 1136{
1137 struct ftrace_event_call *call = &tk->tp.call; 1137 struct trace_event_call *call = &tk->tp.call;
1138 struct bpf_prog *prog = call->prog; 1138 struct bpf_prog *prog = call->prog;
1139 struct kprobe_trace_entry_head *entry; 1139 struct kprobe_trace_entry_head *entry;
1140 struct hlist_head *head; 1140 struct hlist_head *head;
@@ -1169,7 +1169,7 @@ static void
1169kretprobe_perf_func(struct trace_kprobe *tk, struct kretprobe_instance *ri, 1169kretprobe_perf_func(struct trace_kprobe *tk, struct kretprobe_instance *ri,
1170 struct pt_regs *regs) 1170 struct pt_regs *regs)
1171{ 1171{
1172 struct ftrace_event_call *call = &tk->tp.call; 1172 struct trace_event_call *call = &tk->tp.call;
1173 struct bpf_prog *prog = call->prog; 1173 struct bpf_prog *prog = call->prog;
1174 struct kretprobe_trace_entry_head *entry; 1174 struct kretprobe_trace_entry_head *entry;
1175 struct hlist_head *head; 1175 struct hlist_head *head;
@@ -1206,7 +1206,7 @@ NOKPROBE_SYMBOL(kretprobe_perf_func);
1206 * kprobe_trace_self_tests_init() does enable_trace_probe/disable_trace_probe 1206 * kprobe_trace_self_tests_init() does enable_trace_probe/disable_trace_probe
1207 * lockless, but we can't race with this __init function. 1207 * lockless, but we can't race with this __init function.
1208 */ 1208 */
1209static int kprobe_register(struct ftrace_event_call *event, 1209static int kprobe_register(struct trace_event_call *event,
1210 enum trace_reg type, void *data) 1210 enum trace_reg type, void *data)
1211{ 1211{
1212 struct trace_kprobe *tk = (struct trace_kprobe *)event->data; 1212 struct trace_kprobe *tk = (struct trace_kprobe *)event->data;
@@ -1276,10 +1276,10 @@ static struct trace_event_functions kprobe_funcs = {
1276 1276
1277static int register_kprobe_event(struct trace_kprobe *tk) 1277static int register_kprobe_event(struct trace_kprobe *tk)
1278{ 1278{
1279 struct ftrace_event_call *call = &tk->tp.call; 1279 struct trace_event_call *call = &tk->tp.call;
1280 int ret; 1280 int ret;
1281 1281
1282 /* Initialize ftrace_event_call */ 1282 /* Initialize trace_event_call */
1283 INIT_LIST_HEAD(&call->class->fields); 1283 INIT_LIST_HEAD(&call->class->fields);
1284 if (trace_kprobe_is_return(tk)) { 1284 if (trace_kprobe_is_return(tk)) {
1285 call->event.funcs = &kretprobe_funcs; 1285 call->event.funcs = &kretprobe_funcs;
diff --git a/kernel/trace/trace_mmiotrace.c b/kernel/trace/trace_mmiotrace.c
index 7a9ba62e9fef..638e110c5bfd 100644
--- a/kernel/trace/trace_mmiotrace.c
+++ b/kernel/trace/trace_mmiotrace.c
@@ -298,7 +298,7 @@ static void __trace_mmiotrace_rw(struct trace_array *tr,
298 struct trace_array_cpu *data, 298 struct trace_array_cpu *data,
299 struct mmiotrace_rw *rw) 299 struct mmiotrace_rw *rw)
300{ 300{
301 struct ftrace_event_call *call = &event_mmiotrace_rw; 301 struct trace_event_call *call = &event_mmiotrace_rw;
302 struct ring_buffer *buffer = tr->trace_buffer.buffer; 302 struct ring_buffer *buffer = tr->trace_buffer.buffer;
303 struct ring_buffer_event *event; 303 struct ring_buffer_event *event;
304 struct trace_mmiotrace_rw *entry; 304 struct trace_mmiotrace_rw *entry;
@@ -328,7 +328,7 @@ static void __trace_mmiotrace_map(struct trace_array *tr,
328 struct trace_array_cpu *data, 328 struct trace_array_cpu *data,
329 struct mmiotrace_map *map) 329 struct mmiotrace_map *map)
330{ 330{
331 struct ftrace_event_call *call = &event_mmiotrace_map; 331 struct trace_event_call *call = &event_mmiotrace_map;
332 struct ring_buffer *buffer = tr->trace_buffer.buffer; 332 struct ring_buffer *buffer = tr->trace_buffer.buffer;
333 struct ring_buffer_event *event; 333 struct ring_buffer_event *event;
334 struct trace_mmiotrace_map *entry; 334 struct trace_mmiotrace_map *entry;
diff --git a/kernel/trace/trace_output.c b/kernel/trace/trace_output.c
index 6469906e890d..21c6525efcef 100644
--- a/kernel/trace/trace_output.c
+++ b/kernel/trace/trace_output.c
@@ -225,12 +225,12 @@ EXPORT_SYMBOL(trace_print_array_seq);
225int ftrace_raw_output_prep(struct trace_iterator *iter, 225int ftrace_raw_output_prep(struct trace_iterator *iter,
226 struct trace_event *trace_event) 226 struct trace_event *trace_event)
227{ 227{
228 struct ftrace_event_call *event; 228 struct trace_event_call *event;
229 struct trace_seq *s = &iter->seq; 229 struct trace_seq *s = &iter->seq;
230 struct trace_seq *p = &iter->tmp_seq; 230 struct trace_seq *p = &iter->tmp_seq;
231 struct trace_entry *entry; 231 struct trace_entry *entry;
232 232
233 event = container_of(trace_event, struct ftrace_event_call, event); 233 event = container_of(trace_event, struct trace_event_call, event);
234 entry = iter->ent; 234 entry = iter->ent;
235 235
236 if (entry->type != event->event.type) { 236 if (entry->type != event->event.type) {
diff --git a/kernel/trace/trace_probe.h b/kernel/trace/trace_probe.h
index 9fcdfbbcd8b5..b98dee914542 100644
--- a/kernel/trace/trace_probe.h
+++ b/kernel/trace/trace_probe.h
@@ -272,8 +272,8 @@ struct probe_arg {
272 272
273struct trace_probe { 273struct trace_probe {
274 unsigned int flags; /* For TP_FLAG_* */ 274 unsigned int flags; /* For TP_FLAG_* */
275 struct ftrace_event_class class; 275 struct trace_event_class class;
276 struct ftrace_event_call call; 276 struct trace_event_call call;
277 struct list_head files; 277 struct list_head files;
278 ssize_t size; /* trace entry size */ 278 ssize_t size; /* trace entry size */
279 unsigned int nr_args; 279 unsigned int nr_args;
diff --git a/kernel/trace/trace_sched_wakeup.c b/kernel/trace/trace_sched_wakeup.c
index d6e1003724e9..9b33dd117f3f 100644
--- a/kernel/trace/trace_sched_wakeup.c
+++ b/kernel/trace/trace_sched_wakeup.c
@@ -369,7 +369,7 @@ tracing_sched_switch_trace(struct trace_array *tr,
369 struct task_struct *next, 369 struct task_struct *next,
370 unsigned long flags, int pc) 370 unsigned long flags, int pc)
371{ 371{
372 struct ftrace_event_call *call = &event_context_switch; 372 struct trace_event_call *call = &event_context_switch;
373 struct ring_buffer *buffer = tr->trace_buffer.buffer; 373 struct ring_buffer *buffer = tr->trace_buffer.buffer;
374 struct ring_buffer_event *event; 374 struct ring_buffer_event *event;
375 struct ctx_switch_entry *entry; 375 struct ctx_switch_entry *entry;
@@ -397,7 +397,7 @@ tracing_sched_wakeup_trace(struct trace_array *tr,
397 struct task_struct *curr, 397 struct task_struct *curr,
398 unsigned long flags, int pc) 398 unsigned long flags, int pc)
399{ 399{
400 struct ftrace_event_call *call = &event_wakeup; 400 struct trace_event_call *call = &event_wakeup;
401 struct ring_buffer_event *event; 401 struct ring_buffer_event *event;
402 struct ctx_switch_entry *entry; 402 struct ctx_switch_entry *entry;
403 struct ring_buffer *buffer = tr->trace_buffer.buffer; 403 struct ring_buffer *buffer = tr->trace_buffer.buffer;
diff --git a/kernel/trace/trace_syscalls.c b/kernel/trace/trace_syscalls.c
index ee4525261e82..504f582b15db 100644
--- a/kernel/trace/trace_syscalls.c
+++ b/kernel/trace/trace_syscalls.c
@@ -13,13 +13,13 @@
13 13
14static DEFINE_MUTEX(syscall_trace_lock); 14static DEFINE_MUTEX(syscall_trace_lock);
15 15
16static int syscall_enter_register(struct ftrace_event_call *event, 16static int syscall_enter_register(struct trace_event_call *event,
17 enum trace_reg type, void *data); 17 enum trace_reg type, void *data);
18static int syscall_exit_register(struct ftrace_event_call *event, 18static int syscall_exit_register(struct trace_event_call *event,
19 enum trace_reg type, void *data); 19 enum trace_reg type, void *data);
20 20
21static struct list_head * 21static struct list_head *
22syscall_get_enter_fields(struct ftrace_event_call *call) 22syscall_get_enter_fields(struct trace_event_call *call)
23{ 23{
24 struct syscall_metadata *entry = call->data; 24 struct syscall_metadata *entry = call->data;
25 25
@@ -219,7 +219,7 @@ __set_enter_print_fmt(struct syscall_metadata *entry, char *buf, int len)
219 return pos; 219 return pos;
220} 220}
221 221
222static int __init set_syscall_print_fmt(struct ftrace_event_call *call) 222static int __init set_syscall_print_fmt(struct trace_event_call *call)
223{ 223{
224 char *print_fmt; 224 char *print_fmt;
225 int len; 225 int len;
@@ -244,7 +244,7 @@ static int __init set_syscall_print_fmt(struct ftrace_event_call *call)
244 return 0; 244 return 0;
245} 245}
246 246
247static void __init free_syscall_print_fmt(struct ftrace_event_call *call) 247static void __init free_syscall_print_fmt(struct trace_event_call *call)
248{ 248{
249 struct syscall_metadata *entry = call->data; 249 struct syscall_metadata *entry = call->data;
250 250
@@ -252,7 +252,7 @@ static void __init free_syscall_print_fmt(struct ftrace_event_call *call)
252 kfree(call->print_fmt); 252 kfree(call->print_fmt);
253} 253}
254 254
255static int __init syscall_enter_define_fields(struct ftrace_event_call *call) 255static int __init syscall_enter_define_fields(struct trace_event_call *call)
256{ 256{
257 struct syscall_trace_enter trace; 257 struct syscall_trace_enter trace;
258 struct syscall_metadata *meta = call->data; 258 struct syscall_metadata *meta = call->data;
@@ -275,7 +275,7 @@ static int __init syscall_enter_define_fields(struct ftrace_event_call *call)
275 return ret; 275 return ret;
276} 276}
277 277
278static int __init syscall_exit_define_fields(struct ftrace_event_call *call) 278static int __init syscall_exit_define_fields(struct trace_event_call *call)
279{ 279{
280 struct syscall_trace_exit trace; 280 struct syscall_trace_exit trace;
281 int ret; 281 int ret;
@@ -385,7 +385,7 @@ static void ftrace_syscall_exit(void *data, struct pt_regs *regs, long ret)
385} 385}
386 386
387static int reg_event_syscall_enter(struct trace_event_file *file, 387static int reg_event_syscall_enter(struct trace_event_file *file,
388 struct ftrace_event_call *call) 388 struct trace_event_call *call)
389{ 389{
390 struct trace_array *tr = file->tr; 390 struct trace_array *tr = file->tr;
391 int ret = 0; 391 int ret = 0;
@@ -406,7 +406,7 @@ static int reg_event_syscall_enter(struct trace_event_file *file,
406} 406}
407 407
408static void unreg_event_syscall_enter(struct trace_event_file *file, 408static void unreg_event_syscall_enter(struct trace_event_file *file,
409 struct ftrace_event_call *call) 409 struct trace_event_call *call)
410{ 410{
411 struct trace_array *tr = file->tr; 411 struct trace_array *tr = file->tr;
412 int num; 412 int num;
@@ -423,7 +423,7 @@ static void unreg_event_syscall_enter(struct trace_event_file *file,
423} 423}
424 424
425static int reg_event_syscall_exit(struct trace_event_file *file, 425static int reg_event_syscall_exit(struct trace_event_file *file,
426 struct ftrace_event_call *call) 426 struct trace_event_call *call)
427{ 427{
428 struct trace_array *tr = file->tr; 428 struct trace_array *tr = file->tr;
429 int ret = 0; 429 int ret = 0;
@@ -444,7 +444,7 @@ static int reg_event_syscall_exit(struct trace_event_file *file,
444} 444}
445 445
446static void unreg_event_syscall_exit(struct trace_event_file *file, 446static void unreg_event_syscall_exit(struct trace_event_file *file,
447 struct ftrace_event_call *call) 447 struct trace_event_call *call)
448{ 448{
449 struct trace_array *tr = file->tr; 449 struct trace_array *tr = file->tr;
450 int num; 450 int num;
@@ -460,7 +460,7 @@ static void unreg_event_syscall_exit(struct trace_event_file *file,
460 mutex_unlock(&syscall_trace_lock); 460 mutex_unlock(&syscall_trace_lock);
461} 461}
462 462
463static int __init init_syscall_trace(struct ftrace_event_call *call) 463static int __init init_syscall_trace(struct trace_event_call *call)
464{ 464{
465 int id; 465 int id;
466 int num; 466 int num;
@@ -493,7 +493,7 @@ struct trace_event_functions exit_syscall_print_funcs = {
493 .trace = print_syscall_exit, 493 .trace = print_syscall_exit,
494}; 494};
495 495
496struct ftrace_event_class __refdata event_class_syscall_enter = { 496struct trace_event_class __refdata event_class_syscall_enter = {
497 .system = "syscalls", 497 .system = "syscalls",
498 .reg = syscall_enter_register, 498 .reg = syscall_enter_register,
499 .define_fields = syscall_enter_define_fields, 499 .define_fields = syscall_enter_define_fields,
@@ -501,7 +501,7 @@ struct ftrace_event_class __refdata event_class_syscall_enter = {
501 .raw_init = init_syscall_trace, 501 .raw_init = init_syscall_trace,
502}; 502};
503 503
504struct ftrace_event_class __refdata event_class_syscall_exit = { 504struct trace_event_class __refdata event_class_syscall_exit = {
505 .system = "syscalls", 505 .system = "syscalls",
506 .reg = syscall_exit_register, 506 .reg = syscall_exit_register,
507 .define_fields = syscall_exit_define_fields, 507 .define_fields = syscall_exit_define_fields,
@@ -584,7 +584,7 @@ static void perf_syscall_enter(void *ignore, struct pt_regs *regs, long id)
584 perf_trace_buf_submit(rec, size, rctx, 0, 1, regs, head, NULL); 584 perf_trace_buf_submit(rec, size, rctx, 0, 1, regs, head, NULL);
585} 585}
586 586
587static int perf_sysenter_enable(struct ftrace_event_call *call) 587static int perf_sysenter_enable(struct trace_event_call *call)
588{ 588{
589 int ret = 0; 589 int ret = 0;
590 int num; 590 int num;
@@ -605,7 +605,7 @@ static int perf_sysenter_enable(struct ftrace_event_call *call)
605 return ret; 605 return ret;
606} 606}
607 607
608static void perf_sysenter_disable(struct ftrace_event_call *call) 608static void perf_sysenter_disable(struct trace_event_call *call)
609{ 609{
610 int num; 610 int num;
611 611
@@ -656,7 +656,7 @@ static void perf_syscall_exit(void *ignore, struct pt_regs *regs, long ret)
656 perf_trace_buf_submit(rec, size, rctx, 0, 1, regs, head, NULL); 656 perf_trace_buf_submit(rec, size, rctx, 0, 1, regs, head, NULL);
657} 657}
658 658
659static int perf_sysexit_enable(struct ftrace_event_call *call) 659static int perf_sysexit_enable(struct trace_event_call *call)
660{ 660{
661 int ret = 0; 661 int ret = 0;
662 int num; 662 int num;
@@ -677,7 +677,7 @@ static int perf_sysexit_enable(struct ftrace_event_call *call)
677 return ret; 677 return ret;
678} 678}
679 679
680static void perf_sysexit_disable(struct ftrace_event_call *call) 680static void perf_sysexit_disable(struct trace_event_call *call)
681{ 681{
682 int num; 682 int num;
683 683
@@ -693,7 +693,7 @@ static void perf_sysexit_disable(struct ftrace_event_call *call)
693 693
694#endif /* CONFIG_PERF_EVENTS */ 694#endif /* CONFIG_PERF_EVENTS */
695 695
696static int syscall_enter_register(struct ftrace_event_call *event, 696static int syscall_enter_register(struct trace_event_call *event,
697 enum trace_reg type, void *data) 697 enum trace_reg type, void *data)
698{ 698{
699 struct trace_event_file *file = data; 699 struct trace_event_file *file = data;
@@ -721,7 +721,7 @@ static int syscall_enter_register(struct ftrace_event_call *event,
721 return 0; 721 return 0;
722} 722}
723 723
724static int syscall_exit_register(struct ftrace_event_call *event, 724static int syscall_exit_register(struct trace_event_call *event,
725 enum trace_reg type, void *data) 725 enum trace_reg type, void *data)
726{ 726{
727 struct trace_event_file *file = data; 727 struct trace_event_file *file = data;
diff --git a/kernel/trace/trace_uprobe.c b/kernel/trace/trace_uprobe.c
index 3f61ec4a3164..68ba5da5d9e0 100644
--- a/kernel/trace/trace_uprobe.c
+++ b/kernel/trace/trace_uprobe.c
@@ -777,7 +777,7 @@ static void __uprobe_trace_func(struct trace_uprobe *tu,
777 struct ring_buffer *buffer; 777 struct ring_buffer *buffer;
778 void *data; 778 void *data;
779 int size, esize; 779 int size, esize;
780 struct ftrace_event_call *call = &tu->tp.call; 780 struct trace_event_call *call = &tu->tp.call;
781 781
782 WARN_ON(call != trace_file->event_call); 782 WARN_ON(call != trace_file->event_call);
783 783
@@ -967,7 +967,7 @@ probe_event_disable(struct trace_uprobe *tu, struct trace_event_file *file)
967 uprobe_buffer_disable(); 967 uprobe_buffer_disable();
968} 968}
969 969
970static int uprobe_event_define_fields(struct ftrace_event_call *event_call) 970static int uprobe_event_define_fields(struct trace_event_call *event_call)
971{ 971{
972 int ret, i, size; 972 int ret, i, size;
973 struct uprobe_trace_entry_head field; 973 struct uprobe_trace_entry_head field;
@@ -1093,7 +1093,7 @@ static void __uprobe_perf_func(struct trace_uprobe *tu,
1093 unsigned long func, struct pt_regs *regs, 1093 unsigned long func, struct pt_regs *regs,
1094 struct uprobe_cpu_buffer *ucb, int dsize) 1094 struct uprobe_cpu_buffer *ucb, int dsize)
1095{ 1095{
1096 struct ftrace_event_call *call = &tu->tp.call; 1096 struct trace_event_call *call = &tu->tp.call;
1097 struct uprobe_trace_entry_head *entry; 1097 struct uprobe_trace_entry_head *entry;
1098 struct hlist_head *head; 1098 struct hlist_head *head;
1099 void *data; 1099 void *data;
@@ -1159,7 +1159,7 @@ static void uretprobe_perf_func(struct trace_uprobe *tu, unsigned long func,
1159#endif /* CONFIG_PERF_EVENTS */ 1159#endif /* CONFIG_PERF_EVENTS */
1160 1160
1161static int 1161static int
1162trace_uprobe_register(struct ftrace_event_call *event, enum trace_reg type, 1162trace_uprobe_register(struct trace_event_call *event, enum trace_reg type,
1163 void *data) 1163 void *data)
1164{ 1164{
1165 struct trace_uprobe *tu = event->data; 1165 struct trace_uprobe *tu = event->data;
@@ -1272,10 +1272,10 @@ static struct trace_event_functions uprobe_funcs = {
1272 1272
1273static int register_uprobe_event(struct trace_uprobe *tu) 1273static int register_uprobe_event(struct trace_uprobe *tu)
1274{ 1274{
1275 struct ftrace_event_call *call = &tu->tp.call; 1275 struct trace_event_call *call = &tu->tp.call;
1276 int ret; 1276 int ret;
1277 1277
1278 /* Initialize ftrace_event_call */ 1278 /* Initialize trace_event_call */
1279 INIT_LIST_HEAD(&call->class->fields); 1279 INIT_LIST_HEAD(&call->class->fields);
1280 call->event.funcs = &uprobe_funcs; 1280 call->event.funcs = &uprobe_funcs;
1281 call->class->define_fields = uprobe_event_define_fields; 1281 call->class->define_fields = uprobe_event_define_fields;