diff options
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 3d2ad5f83e94..f060716b02ae 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
@@ -12,7 +12,7 @@ | |||
12 | #include <linux/ftrace.h> | 12 | #include <linux/ftrace.h> |
13 | #include <linux/hw_breakpoint.h> | 13 | #include <linux/hw_breakpoint.h> |
14 | #include <linux/trace_seq.h> | 14 | #include <linux/trace_seq.h> |
15 | #include <linux/ftrace_event.h> | 15 | #include <linux/trace_events.h> |
16 | #include <linux/compiler.h> | 16 | #include <linux/compiler.h> |
17 | #include <linux/trace_seq.h> | 17 | #include <linux/trace_seq.h> |
18 | 18 | ||
@@ -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; |
@@ -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 | ||
861 | int ftrace_event_is_function(struct ftrace_event_call *call); | 861 | int 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 |
@@ -992,7 +992,7 @@ struct event_subsystem { | |||
992 | int ref_count; | 992 | int ref_count; |
993 | }; | 993 | }; |
994 | 994 | ||
995 | struct ftrace_subsystem_dir { | 995 | struct trace_subsystem_dir { |
996 | struct list_head list; | 996 | struct list_head list; |
997 | struct event_subsystem *subsystem; | 997 | struct event_subsystem *subsystem; |
998 | struct trace_array *tr; | 998 | struct trace_array *tr; |
@@ -1052,30 +1052,30 @@ struct filter_pred { | |||
1052 | 1052 | ||
1053 | extern enum regex_type | 1053 | extern enum regex_type |
1054 | filter_parse_regex(char *buff, int len, char **search, int *not); | 1054 | filter_parse_regex(char *buff, int len, char **search, int *not); |
1055 | extern void print_event_filter(struct ftrace_event_file *file, | 1055 | extern void print_event_filter(struct trace_event_file *file, |
1056 | struct trace_seq *s); | 1056 | struct trace_seq *s); |
1057 | extern int apply_event_filter(struct ftrace_event_file *file, | 1057 | extern int apply_event_filter(struct trace_event_file *file, |
1058 | char *filter_string); | 1058 | char *filter_string); |
1059 | extern int apply_subsystem_event_filter(struct ftrace_subsystem_dir *dir, | 1059 | extern int apply_subsystem_event_filter(struct trace_subsystem_dir *dir, |
1060 | char *filter_string); | 1060 | char *filter_string); |
1061 | extern void print_subsystem_event_filter(struct event_subsystem *system, | 1061 | extern void print_subsystem_event_filter(struct event_subsystem *system, |
1062 | struct trace_seq *s); | 1062 | struct trace_seq *s); |
1063 | extern int filter_assign_type(const char *type); | 1063 | extern int filter_assign_type(const char *type); |
1064 | extern int create_event_filter(struct ftrace_event_call *call, | 1064 | extern 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); |
1067 | extern void free_event_filter(struct event_filter *filter); | 1067 | extern void free_event_filter(struct event_filter *filter); |
1068 | 1068 | ||
1069 | struct ftrace_event_field * | 1069 | struct ftrace_event_field * |
1070 | trace_find_event_field(struct ftrace_event_call *call, char *name); | 1070 | trace_find_event_field(struct trace_event_call *call, char *name); |
1071 | 1071 | ||
1072 | extern void trace_event_enable_cmd_record(bool enable); | 1072 | extern void trace_event_enable_cmd_record(bool enable); |
1073 | extern int event_trace_add_tracer(struct dentry *parent, struct trace_array *tr); | 1073 | extern int event_trace_add_tracer(struct dentry *parent, struct trace_array *tr); |
1074 | extern int event_trace_del_tracer(struct trace_array *tr); | 1074 | extern int event_trace_del_tracer(struct trace_array *tr); |
1075 | 1075 | ||
1076 | extern struct ftrace_event_file *find_event_file(struct trace_array *tr, | 1076 | extern 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 | ||
1080 | static inline void *event_file_data(struct file *filp) | 1080 | static inline void *event_file_data(struct file *filp) |
1081 | { | 1081 | { |
@@ -1180,7 +1180,7 @@ struct event_trigger_ops { | |||
1180 | * commands need to do this if they themselves log to the trace | 1180 | * commands need to do this if they themselves log to the trace |
1181 | * buffer (see the @post_trigger() member below). @trigger_type | 1181 | * buffer (see the @post_trigger() member below). @trigger_type |
1182 | * values are defined by adding new values to the trigger_type | 1182 | * values are defined by adding new values to the trigger_type |
1183 | * enum in include/linux/ftrace_event.h. | 1183 | * enum in include/linux/trace_events.h. |
1184 | * | 1184 | * |
1185 | * @post_trigger: A flag that says whether or not this command needs | 1185 | * @post_trigger: A flag that says whether or not this command needs |
1186 | * to have its action delayed until after the current event has | 1186 | * to have its action delayed until after the current event has |
@@ -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 | ||
1261 | extern int trace_event_enable_disable(struct ftrace_event_file *file, | 1261 | extern int trace_event_enable_disable(struct trace_event_file *file, |
1262 | int enable, int soft_disable); | 1262 | int enable, int soft_disable); |
1263 | extern int tracing_alloc_snapshot(void); | 1263 | extern int tracing_alloc_snapshot(void); |
1264 | 1264 | ||
@@ -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) |
1298 | int perf_ftrace_event_register(struct ftrace_event_call *call, | 1298 | int 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 |