aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ftrace_event.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/ftrace_event.h')
-rw-r--r--include/linux/ftrace_event.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/include/linux/ftrace_event.h b/include/linux/ftrace_event.h
index ace2da9e0a0..1ab3089b5c5 100644
--- a/include/linux/ftrace_event.h
+++ b/include/linux/ftrace_event.h
@@ -112,12 +112,12 @@ struct ftrace_event_call {
112 struct dentry *dir; 112 struct dentry *dir;
113 struct trace_event *event; 113 struct trace_event *event;
114 int enabled; 114 int enabled;
115 int (*regfunc)(void *); 115 int (*regfunc)(struct ftrace_event_call *);
116 void (*unregfunc)(void *); 116 void (*unregfunc)(struct ftrace_event_call *);
117 int id; 117 int id;
118 int (*raw_init)(void); 118 int (*raw_init)(struct ftrace_event_call *);
119 int (*show_format)(struct ftrace_event_call *call, 119 int (*show_format)(struct ftrace_event_call *,
120 struct trace_seq *s); 120 struct trace_seq *);
121 int (*define_fields)(struct ftrace_event_call *); 121 int (*define_fields)(struct ftrace_event_call *);
122 struct list_head fields; 122 struct list_head fields;
123 int filter_active; 123 int filter_active;
@@ -147,11 +147,12 @@ enum {
147 FILTER_PTR_STRING, 147 FILTER_PTR_STRING,
148}; 148};
149 149
150extern int trace_define_field(struct ftrace_event_call *call,
151 const char *type, const char *name,
152 int offset, int size, int is_signed,
153 int filter_type);
154extern int trace_define_common_fields(struct ftrace_event_call *call); 150extern int trace_define_common_fields(struct ftrace_event_call *call);
151extern int trace_define_field(struct ftrace_event_call *call, char *type,
152 char *name, int offset, int size, int is_signed,
153 int filter_type);
154extern int trace_add_event_call(struct ftrace_event_call *call);
155extern void trace_remove_event_call(struct ftrace_event_call *call);
155 156
156#define is_signed_type(type) (((type)(-1)) < 0) 157#define is_signed_type(type) (((type)(-1)) < 0)
157 158