aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2015-05-05 10:09:53 -0400
committerSteven Rostedt <rostedt@goodmis.org>2015-05-13 14:05:16 -0400
commit7f1d2f8210195c8c309d424a77dbf06a6d2186f4 (patch)
treebbe67b455947322f4f43d082c23a096a40d18824 /kernel/trace/trace.h
parent9023c930902fbbcf0cebf6110828700f792989a4 (diff)
tracing: Rename ftrace_event_file to trace_event_file
The name "ftrace" really refers to the function hook infrastructure. It is not about the trace_events. The structure ftrace_event_file is really about trace events and not "ftrace". Rename it to trace_event_file. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r--kernel/trace/trace.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index c09ecfed57db..4e1715e55b38 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -211,8 +211,8 @@ struct trace_array {
211#ifdef CONFIG_FTRACE_SYSCALLS 211#ifdef CONFIG_FTRACE_SYSCALLS
212 int sys_refcount_enter; 212 int sys_refcount_enter;
213 int sys_refcount_exit; 213 int sys_refcount_exit;
214 struct ftrace_event_file __rcu *enter_syscall_files[NR_syscalls]; 214 struct trace_event_file __rcu *enter_syscall_files[NR_syscalls];
215 struct ftrace_event_file __rcu *exit_syscall_files[NR_syscalls]; 215 struct trace_event_file __rcu *exit_syscall_files[NR_syscalls];
216#endif 216#endif
217 int stop_count; 217 int stop_count;
218 int clock_id; 218 int clock_id;
@@ -1052,9 +1052,9 @@ struct filter_pred {
1052 1052
1053extern enum regex_type 1053extern enum regex_type
1054filter_parse_regex(char *buff, int len, char **search, int *not); 1054filter_parse_regex(char *buff, int len, char **search, int *not);
1055extern void print_event_filter(struct ftrace_event_file *file, 1055extern void print_event_filter(struct trace_event_file *file,
1056 struct trace_seq *s); 1056 struct trace_seq *s);
1057extern int apply_event_filter(struct ftrace_event_file *file, 1057extern int apply_event_filter(struct trace_event_file *file,
1058 char *filter_string); 1058 char *filter_string);
1059extern int apply_subsystem_event_filter(struct ftrace_subsystem_dir *dir, 1059extern int apply_subsystem_event_filter(struct ftrace_subsystem_dir *dir,
1060 char *filter_string); 1060 char *filter_string);
@@ -1073,9 +1073,9 @@ extern 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);
1074extern int event_trace_del_tracer(struct trace_array *tr); 1074extern int event_trace_del_tracer(struct trace_array *tr);
1075 1075
1076extern struct ftrace_event_file *find_event_file(struct trace_array *tr, 1076extern struct trace_event_file *find_event_file(struct trace_array *tr,
1077 const char *system, 1077 const char *system,
1078 const char *event); 1078 const char *event);
1079 1079
1080static inline void *event_file_data(struct file *filp) 1080static inline void *event_file_data(struct file *filp)
1081{ 1081{
@@ -1242,23 +1242,23 @@ struct event_command {
1242 enum event_trigger_type trigger_type; 1242 enum event_trigger_type trigger_type;
1243 bool post_trigger; 1243 bool post_trigger;
1244 int (*func)(struct event_command *cmd_ops, 1244 int (*func)(struct event_command *cmd_ops,
1245 struct ftrace_event_file *file, 1245 struct trace_event_file *file,
1246 char *glob, char *cmd, char *params); 1246 char *glob, char *cmd, char *params);
1247 int (*reg)(char *glob, 1247 int (*reg)(char *glob,
1248 struct event_trigger_ops *ops, 1248 struct event_trigger_ops *ops,
1249 struct event_trigger_data *data, 1249 struct event_trigger_data *data,
1250 struct ftrace_event_file *file); 1250 struct trace_event_file *file);
1251 void (*unreg)(char *glob, 1251 void (*unreg)(char *glob,
1252 struct event_trigger_ops *ops, 1252 struct event_trigger_ops *ops,
1253 struct event_trigger_data *data, 1253 struct event_trigger_data *data,
1254 struct ftrace_event_file *file); 1254 struct trace_event_file *file);
1255 int (*set_filter)(char *filter_str, 1255 int (*set_filter)(char *filter_str,
1256 struct event_trigger_data *data, 1256 struct event_trigger_data *data,
1257 struct ftrace_event_file *file); 1257 struct trace_event_file *file);
1258 struct event_trigger_ops *(*get_trigger_ops)(char *cmd, char *param); 1258 struct event_trigger_ops *(*get_trigger_ops)(char *cmd, char *param);
1259}; 1259};
1260 1260
1261extern int trace_event_enable_disable(struct ftrace_event_file *file, 1261extern int trace_event_enable_disable(struct trace_event_file *file,
1262 int enable, int soft_disable); 1262 int enable, int soft_disable);
1263extern int tracing_alloc_snapshot(void); 1263extern int tracing_alloc_snapshot(void);
1264 1264