@@ -200,23 +200,23 @@ enum trace_reg {
200200#endif
201201};
202202
203- struct ftrace_event_call ;
203+ struct trace_event_call ;
204204
205- struct ftrace_event_class {
205+ struct trace_event_class {
206206 const char * system ;
207207 void * probe ;
208208#ifdef CONFIG_PERF_EVENTS
209209 void * perf_probe ;
210210#endif
211- int (* reg )(struct ftrace_event_call * event ,
211+ int (* reg )(struct trace_event_call * event ,
212212 enum trace_reg type , void * data );
213- int (* define_fields )(struct ftrace_event_call * );
214- struct list_head * (* get_fields )(struct ftrace_event_call * );
213+ int (* define_fields )(struct trace_event_call * );
214+ struct list_head * (* get_fields )(struct trace_event_call * );
215215 struct list_head fields ;
216- int (* raw_init )(struct ftrace_event_call * );
216+ int (* raw_init )(struct trace_event_call * );
217217};
218218
219- extern int trace_event_reg (struct ftrace_event_call * event ,
219+ extern int trace_event_reg (struct trace_event_call * event ,
220220 enum trace_reg type , void * data );
221221
222222struct ftrace_event_buffer {
@@ -269,9 +269,9 @@ enum {
269269 TRACE_EVENT_FL_KPROBE = (1 << TRACE_EVENT_FL_KPROBE_BIT ),
270270};
271271
272- struct ftrace_event_call {
272+ struct trace_event_call {
273273 struct list_head list ;
274- struct ftrace_event_class * class ;
274+ struct trace_event_class * class ;
275275 union {
276276 char * name ;
277277 /* Set TRACE_EVENT_FL_TRACEPOINT flag when using "tp" */
@@ -298,13 +298,13 @@ struct ftrace_event_call {
298298 struct hlist_head __percpu * perf_events ;
299299 struct bpf_prog * prog ;
300300
301- int (* perf_perm )(struct ftrace_event_call * ,
301+ int (* perf_perm )(struct trace_event_call * ,
302302 struct perf_event * );
303303#endif
304304};
305305
306306static inline const char *
307- ftrace_event_name (struct ftrace_event_call * call )
307+ ftrace_event_name (struct trace_event_call * call )
308308{
309309 if (call -> flags & TRACE_EVENT_FL_TRACEPOINT )
310310 return call -> tp ? call -> tp -> name : NULL ;
@@ -351,7 +351,7 @@ enum {
351351
352352struct trace_event_file {
353353 struct list_head list ;
354- struct ftrace_event_call * event_call ;
354+ struct trace_event_call * event_call ;
355355 struct event_filter * filter ;
356356 struct dentry * dir ;
357357 struct trace_array * tr ;
@@ -388,7 +388,7 @@ struct trace_event_file {
388388 early_initcall(trace_init_flags_##name);
389389
390390#define __TRACE_EVENT_PERF_PERM (name , expr ...) \
391- static int perf_perm_##name(struct ftrace_event_call *tp_event, \
391+ static int perf_perm_##name(struct trace_event_call *tp_event, \
392392 struct perf_event *p_event) \
393393 { \
394394 return ({ expr; }); \
@@ -417,7 +417,7 @@ extern int filter_match_preds(struct event_filter *filter, void *rec);
417417extern int filter_check_discard (struct trace_event_file * file , void * rec ,
418418 struct ring_buffer * buffer ,
419419 struct ring_buffer_event * event );
420- extern int call_filter_check_discard (struct ftrace_event_call * call , void * rec ,
420+ extern int call_filter_check_discard (struct trace_event_call * call , void * rec ,
421421 struct ring_buffer * buffer ,
422422 struct ring_buffer_event * event );
423423extern enum event_trigger_type event_triggers_call (struct trace_event_file * file ,
@@ -559,12 +559,12 @@ enum {
559559 FILTER_TRACE_FN ,
560560};
561561
562- extern int trace_event_raw_init (struct ftrace_event_call * call );
563- extern int trace_define_field (struct ftrace_event_call * call , const char * type ,
562+ extern int trace_event_raw_init (struct trace_event_call * call );
563+ extern int trace_define_field (struct trace_event_call * call , const char * type ,
564564 const char * name , int offset , int size ,
565565 int is_signed , int filter_type );
566- extern int trace_add_event_call (struct ftrace_event_call * call );
567- extern int trace_remove_event_call (struct ftrace_event_call * call );
566+ extern int trace_add_event_call (struct trace_event_call * call );
567+ extern int trace_remove_event_call (struct trace_event_call * call );
568568
569569#define is_signed_type (type ) (((type)(-1)) < (type)1)
570570
@@ -613,4 +613,4 @@ perf_trace_buf_submit(void *raw_data, int size, int rctx, u64 addr,
613613}
614614#endif
615615
616- #endif /* _LINUX_FTRACE_EVENT_H */
616+ #endif /* _LINUX_TRACE_EVENT_H */
0 commit comments