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, 15 insertions, 4 deletions
diff --git a/include/linux/ftrace_event.h b/include/linux/ftrace_event.h
index 496eea898ee4..e665ed38b4bf 100644
--- a/include/linux/ftrace_event.h
+++ b/include/linux/ftrace_event.h
@@ -113,8 +113,23 @@ void tracing_record_cmdline(struct task_struct *tsk);
113 113
114struct event_filter; 114struct event_filter;
115 115
116enum trace_reg {
117 TRACE_REG_REGISTER,
118 TRACE_REG_UNREGISTER,
119 TRACE_REG_PERF_REGISTER,
120 TRACE_REG_PERF_UNREGISTER,
121};
122
123struct ftrace_event_call;
124
116struct ftrace_event_class { 125struct ftrace_event_class {
117 char *system; 126 char *system;
127 void *probe;
128#ifdef CONFIG_PERF_EVENTS
129 void *perf_probe;
130#endif
131 int (*reg)(struct ftrace_event_call *event,
132 enum trace_reg type);
118}; 133};
119 134
120struct ftrace_event_call { 135struct ftrace_event_call {
@@ -124,8 +139,6 @@ struct ftrace_event_call {
124 struct dentry *dir; 139 struct dentry *dir;
125 struct trace_event *event; 140 struct trace_event *event;
126 int enabled; 141 int enabled;
127 int (*regfunc)(struct ftrace_event_call *);
128 void (*unregfunc)(struct ftrace_event_call *);
129 int id; 142 int id;
130 const char *print_fmt; 143 const char *print_fmt;
131 int (*raw_init)(struct ftrace_event_call *); 144 int (*raw_init)(struct ftrace_event_call *);
@@ -137,8 +150,6 @@ struct ftrace_event_call {
137 void *data; 150 void *data;
138 151
139 int perf_refcount; 152 int perf_refcount;
140 int (*perf_event_enable)(struct ftrace_event_call *);
141 void (*perf_event_disable)(struct ftrace_event_call *);
142}; 153};
143 154
144#define PERF_MAX_TRACE_SIZE 2048 155#define PERF_MAX_TRACE_SIZE 2048