blob: 0804cd5948035d9dd8d59084e946c1d32cad330c [file] [log] [blame]
Steven Rostedtf42c85e2009-04-13 12:25:37 -04001/*
2 * Stage 1 of the trace events.
3 *
4 * Override the macros in <trace/trace_events.h> to include the following:
5 *
6 * struct ftrace_raw_<call> {
7 * struct trace_entry ent;
8 * <type> <item>;
9 * <type2> <item2>[<len>];
10 * [...]
11 * };
12 *
13 * The <type> <item> is created by the __field(type, item) macro or
14 * the __array(type2, item2, len) macro.
15 * We simply do "type item;", and that will create the fields
16 * in the structure.
17 */
18
19#include <linux/ftrace_event.h>
20
Steven Rostedtff038f52009-11-18 20:27:27 -050021/*
Ingo Molnar091ad362009-11-26 09:04:55 +010022 * DECLARE_EVENT_CLASS can be used to add a generic function
Steven Rostedtff038f52009-11-18 20:27:27 -050023 * handlers for events. That is, if all events have the same
24 * parameters and just have distinct trace points.
25 * Each tracepoint can be defined with DEFINE_EVENT and that
Ingo Molnar091ad362009-11-26 09:04:55 +010026 * will map the DECLARE_EVENT_CLASS to the tracepoint.
Steven Rostedtff038f52009-11-18 20:27:27 -050027 *
28 * TRACE_EVENT is a one to one mapping between tracepoint and template.
29 */
30#undef TRACE_EVENT
31#define TRACE_EVENT(name, proto, args, tstruct, assign, print) \
Ingo Molnar091ad362009-11-26 09:04:55 +010032 DECLARE_EVENT_CLASS(name, \
Steven Rostedtff038f52009-11-18 20:27:27 -050033 PARAMS(proto), \
34 PARAMS(args), \
35 PARAMS(tstruct), \
36 PARAMS(assign), \
37 PARAMS(print)); \
38 DEFINE_EVENT(name, name, PARAMS(proto), PARAMS(args));
39
40
Steven Rostedtf42c85e2009-04-13 12:25:37 -040041#undef __field
42#define __field(type, item) type item;
43
Li Zefan43b51ea2009-08-07 10:33:22 +080044#undef __field_ext
45#define __field_ext(type, item, filter_type) type item;
46
Li Zefan7fcb7c42009-06-01 15:35:46 +080047#undef __array
48#define __array(type, item, len) type item[len];
49
50#undef __dynamic_array
Li Zefan7d536cb2009-07-16 10:54:02 +080051#define __dynamic_array(type, item, len) u32 __data_loc_##item;
Li Zefan7fcb7c42009-06-01 15:35:46 +080052
Frederic Weisbecker9cbf1172009-04-19 04:51:29 +020053#undef __string
Li Zefan7fcb7c42009-06-01 15:35:46 +080054#define __string(item, src) __dynamic_array(char, item, -1)
Frederic Weisbecker9cbf1172009-04-19 04:51:29 +020055
Steven Rostedtf42c85e2009-04-13 12:25:37 -040056#undef TP_STRUCT__entry
57#define TP_STRUCT__entry(args...) args
58
Ingo Molnar091ad362009-11-26 09:04:55 +010059#undef DECLARE_EVENT_CLASS
60#define DECLARE_EVENT_CLASS(name, proto, args, tstruct, assign, print) \
Steven Rostedtff038f52009-11-18 20:27:27 -050061 struct ftrace_raw_##name { \
62 struct trace_entry ent; \
63 tstruct \
64 char __data[0]; \
65 };
66#undef DEFINE_EVENT
67#define DEFINE_EVENT(template, name, proto, args) \
Jeff Mahoney86c38a32010-02-24 13:59:23 -050068 static struct ftrace_event_call \
69 __attribute__((__aligned__(4))) event_##name
Steven Rostedtf42c85e2009-04-13 12:25:37 -040070
Steven Rostedte5bc9722009-11-18 20:36:26 -050071#undef DEFINE_EVENT_PRINT
72#define DEFINE_EVENT_PRINT(template, name, proto, args, print) \
73 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
74
Frederic Weisbecker0dd7b742009-08-28 00:50:06 +020075#undef __cpparg
76#define __cpparg(arg...) arg
77
Josh Stone97419872009-08-24 14:43:13 -070078/* Callbacks are meaningless to ftrace. */
79#undef TRACE_EVENT_FN
Frederic Weisbecker0dd7b742009-08-28 00:50:06 +020080#define TRACE_EVENT_FN(name, proto, args, tstruct, \
81 assign, print, reg, unreg) \
82 TRACE_EVENT(name, __cpparg(proto), __cpparg(args), \
83 __cpparg(tstruct), __cpparg(assign), __cpparg(print)) \
Josh Stone97419872009-08-24 14:43:13 -070084
Steven Rostedtf42c85e2009-04-13 12:25:37 -040085#include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
86
Frederic Weisbecker9cbf1172009-04-19 04:51:29 +020087
Steven Rostedtf42c85e2009-04-13 12:25:37 -040088/*
89 * Stage 2 of the trace events.
90 *
Frederic Weisbecker9cbf1172009-04-19 04:51:29 +020091 * Include the following:
92 *
Li Zefan7fcb7c42009-06-01 15:35:46 +080093 * struct ftrace_data_offsets_<call> {
Li Zefan7d536cb2009-07-16 10:54:02 +080094 * u32 <item1>;
95 * u32 <item2>;
Frederic Weisbecker9cbf1172009-04-19 04:51:29 +020096 * [...]
97 * };
98 *
Li Zefan7d536cb2009-07-16 10:54:02 +080099 * The __dynamic_array() macro will create each u32 <item>, this is
Li Zefan7fcb7c42009-06-01 15:35:46 +0800100 * to keep the offset of each array from the beginning of the event.
Li Zefan7d536cb2009-07-16 10:54:02 +0800101 * The size of an array is also encoded, in the higher 16 bits of <item>.
Frederic Weisbecker9cbf1172009-04-19 04:51:29 +0200102 */
103
Frederic Weisbecker9cbf1172009-04-19 04:51:29 +0200104#undef __field
Li Zefan43b51ea2009-08-07 10:33:22 +0800105#define __field(type, item)
106
107#undef __field_ext
108#define __field_ext(type, item, filter_type)
Frederic Weisbecker9cbf1172009-04-19 04:51:29 +0200109
Li Zefan7fcb7c42009-06-01 15:35:46 +0800110#undef __array
111#define __array(type, item, len)
112
113#undef __dynamic_array
Li Zefan7d536cb2009-07-16 10:54:02 +0800114#define __dynamic_array(type, item, len) u32 item;
Li Zefan7fcb7c42009-06-01 15:35:46 +0800115
Frederic Weisbecker9cbf1172009-04-19 04:51:29 +0200116#undef __string
Li Zefan7fcb7c42009-06-01 15:35:46 +0800117#define __string(item, src) __dynamic_array(char, item, -1)
Frederic Weisbecker9cbf1172009-04-19 04:51:29 +0200118
Ingo Molnar091ad362009-11-26 09:04:55 +0100119#undef DECLARE_EVENT_CLASS
120#define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \
Li Zefan7fcb7c42009-06-01 15:35:46 +0800121 struct ftrace_data_offsets_##call { \
Frederic Weisbecker9cbf1172009-04-19 04:51:29 +0200122 tstruct; \
123 };
124
Steven Rostedtff038f52009-11-18 20:27:27 -0500125#undef DEFINE_EVENT
126#define DEFINE_EVENT(template, name, proto, args)
127
Steven Rostedte5bc9722009-11-18 20:36:26 -0500128#undef DEFINE_EVENT_PRINT
129#define DEFINE_EVENT_PRINT(template, name, proto, args, print) \
130 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
131
Frederic Weisbecker9cbf1172009-04-19 04:51:29 +0200132#include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
133
134/*
135 * Stage 3 of the trace events.
136 *
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400137 * Override the macros in <trace/trace_events.h> to include the following:
138 *
139 * enum print_line_t
140 * ftrace_raw_output_<call>(struct trace_iterator *iter, int flags)
141 * {
142 * struct trace_seq *s = &iter->seq;
143 * struct ftrace_raw_<call> *field; <-- defined in stage 1
144 * struct trace_entry *entry;
Steven Rostedtbe74b732009-05-26 20:25:22 +0200145 * struct trace_seq *p;
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400146 * int ret;
147 *
148 * entry = iter->ent;
149 *
150 * if (entry->type != event_<call>.id) {
151 * WARN_ON_ONCE(1);
152 * return TRACE_TYPE_UNHANDLED;
153 * }
154 *
155 * field = (typeof(field))entry;
156 *
Steven Rostedtbe74b732009-05-26 20:25:22 +0200157 * p = get_cpu_var(ftrace_event_seq);
Steven Whitehouse56d8bd32009-06-03 14:52:03 +0100158 * trace_seq_init(p);
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400159 * ret = trace_seq_printf(s, <TP_printk> "\n");
Steven Rostedtbe74b732009-05-26 20:25:22 +0200160 * put_cpu();
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400161 * if (!ret)
162 * return TRACE_TYPE_PARTIAL_LINE;
163 *
164 * return TRACE_TYPE_HANDLED;
165 * }
166 *
167 * This is the method used to print the raw event to the trace
168 * output format. Note, this is not needed if the data is read
169 * in binary.
170 */
171
172#undef __entry
173#define __entry field
174
175#undef TP_printk
176#define TP_printk(fmt, args...) fmt "\n", args
177
Li Zefan7fcb7c42009-06-01 15:35:46 +0800178#undef __get_dynamic_array
179#define __get_dynamic_array(field) \
Li Zefan7d536cb2009-07-16 10:54:02 +0800180 ((void *)__entry + (__entry->__data_loc_##field & 0xffff))
Li Zefan7fcb7c42009-06-01 15:35:46 +0800181
Frederic Weisbecker9cbf1172009-04-19 04:51:29 +0200182#undef __get_str
Li Zefan7fcb7c42009-06-01 15:35:46 +0800183#define __get_str(field) (char *)__get_dynamic_array(field)
Frederic Weisbecker9cbf1172009-04-19 04:51:29 +0200184
Steven Rostedtbe74b732009-05-26 20:25:22 +0200185#undef __print_flags
186#define __print_flags(flag, delim, flag_array...) \
187 ({ \
Steven Rostedta48f4942009-09-14 11:18:02 -0400188 static const struct trace_print_flags __flags[] = \
Steven Rostedtbe74b732009-05-26 20:25:22 +0200189 { flag_array, { -1, NULL }}; \
Steven Rostedta48f4942009-09-14 11:18:02 -0400190 ftrace_print_flags_seq(p, delim, flag, __flags); \
Steven Rostedtbe74b732009-05-26 20:25:22 +0200191 })
192
Steven Rostedt0f4fc292009-05-20 19:21:47 -0400193#undef __print_symbolic
194#define __print_symbolic(value, symbol_array...) \
195 ({ \
196 static const struct trace_print_flags symbols[] = \
197 { symbol_array, { -1, NULL }}; \
198 ftrace_print_symbols_seq(p, value, symbols); \
199 })
200
Ingo Molnar091ad362009-11-26 09:04:55 +0100201#undef DECLARE_EVENT_CLASS
202#define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \
Steven Rostedt83f0d532010-02-16 10:38:47 -0500203static notrace enum print_line_t \
Steven Rostedtff038f52009-11-18 20:27:27 -0500204ftrace_raw_output_id_##call(int event_id, const char *name, \
205 struct trace_iterator *iter, int flags) \
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400206{ \
207 struct trace_seq *s = &iter->seq; \
208 struct ftrace_raw_##call *field; \
209 struct trace_entry *entry; \
Steven Rostedtbe74b732009-05-26 20:25:22 +0200210 struct trace_seq *p; \
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400211 int ret; \
212 \
213 entry = iter->ent; \
214 \
Steven Rostedtff038f52009-11-18 20:27:27 -0500215 if (entry->type != event_id) { \
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400216 WARN_ON_ONCE(1); \
217 return TRACE_TYPE_UNHANDLED; \
218 } \
219 \
220 field = (typeof(field))entry; \
221 \
Steven Rostedtbe74b732009-05-26 20:25:22 +0200222 p = &get_cpu_var(ftrace_event_seq); \
Steven Whitehouse56d8bd32009-06-03 14:52:03 +0100223 trace_seq_init(p); \
Steven Rostedtff038f52009-11-18 20:27:27 -0500224 ret = trace_seq_printf(s, "%s: ", name); \
225 if (ret) \
226 ret = trace_seq_printf(s, print); \
Steven Rostedtbe74b732009-05-26 20:25:22 +0200227 put_cpu(); \
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400228 if (!ret) \
229 return TRACE_TYPE_PARTIAL_LINE; \
230 \
231 return TRACE_TYPE_HANDLED; \
232}
Steven Rostedtff038f52009-11-18 20:27:27 -0500233
234#undef DEFINE_EVENT
235#define DEFINE_EVENT(template, name, proto, args) \
Steven Rostedt83f0d532010-02-16 10:38:47 -0500236static notrace enum print_line_t \
Steven Rostedtff038f52009-11-18 20:27:27 -0500237ftrace_raw_output_##name(struct trace_iterator *iter, int flags) \
238{ \
239 return ftrace_raw_output_id_##template(event_##name.id, \
240 #name, iter, flags); \
241}
242
Steven Rostedte5bc9722009-11-18 20:36:26 -0500243#undef DEFINE_EVENT_PRINT
244#define DEFINE_EVENT_PRINT(template, call, proto, args, print) \
Steven Rostedt83f0d532010-02-16 10:38:47 -0500245static notrace enum print_line_t \
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400246ftrace_raw_output_##call(struct trace_iterator *iter, int flags) \
247{ \
248 struct trace_seq *s = &iter->seq; \
Steven Rostedte5bc9722009-11-18 20:36:26 -0500249 struct ftrace_raw_##template *field; \
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400250 struct trace_entry *entry; \
251 struct trace_seq *p; \
252 int ret; \
253 \
254 entry = iter->ent; \
255 \
256 if (entry->type != event_##call.id) { \
257 WARN_ON_ONCE(1); \
258 return TRACE_TYPE_UNHANDLED; \
259 } \
260 \
261 field = (typeof(field))entry; \
262 \
263 p = &get_cpu_var(ftrace_event_seq); \
264 trace_seq_init(p); \
Steven Rostedte5bc9722009-11-18 20:36:26 -0500265 ret = trace_seq_printf(s, "%s: ", #call); \
266 if (ret) \
267 ret = trace_seq_printf(s, print); \
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400268 put_cpu(); \
269 if (!ret) \
270 return TRACE_TYPE_PARTIAL_LINE; \
271 \
272 return TRACE_TYPE_HANDLED; \
273}
Steven Rostedte5bc9722009-11-18 20:36:26 -0500274
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400275#include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
276
Li Zefan43b51ea2009-08-07 10:33:22 +0800277#undef __field_ext
278#define __field_ext(type, item, filter_type) \
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400279 ret = trace_define_field(event_call, #type, #item, \
280 offsetof(typeof(field), item), \
Li Zefan43b51ea2009-08-07 10:33:22 +0800281 sizeof(field.item), \
282 is_signed_type(type), filter_type); \
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400283 if (ret) \
284 return ret;
285
Li Zefan43b51ea2009-08-07 10:33:22 +0800286#undef __field
287#define __field(type, item) __field_ext(type, item, FILTER_OTHER)
288
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400289#undef __array
290#define __array(type, item, len) \
291 BUILD_BUG_ON(len > MAX_FILTER_STR_VAL); \
292 ret = trace_define_field(event_call, #type "[" #len "]", #item, \
293 offsetof(typeof(field), item), \
Lai Jiangshanfb7ae982009-12-15 15:39:38 +0800294 sizeof(field.item), \
295 is_signed_type(type), FILTER_OTHER); \
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400296 if (ret) \
297 return ret;
298
Li Zefan7fcb7c42009-06-01 15:35:46 +0800299#undef __dynamic_array
300#define __dynamic_array(type, item, len) \
Lai Jiangshan68fd60a2009-07-16 10:53:34 +0800301 ret = trace_define_field(event_call, "__data_loc " #type "[]", #item, \
Li Zefan43b51ea2009-08-07 10:33:22 +0800302 offsetof(typeof(field), __data_loc_##item), \
Lai Jiangshanfb7ae982009-12-15 15:39:38 +0800303 sizeof(field.__data_loc_##item), \
304 is_signed_type(type), FILTER_OTHER);
Li Zefan7fcb7c42009-06-01 15:35:46 +0800305
Frederic Weisbecker9cbf1172009-04-19 04:51:29 +0200306#undef __string
Li Zefan7fcb7c42009-06-01 15:35:46 +0800307#define __string(item, src) __dynamic_array(char, item, -1)
Frederic Weisbecker9cbf1172009-04-19 04:51:29 +0200308
Ingo Molnar091ad362009-11-26 09:04:55 +0100309#undef DECLARE_EVENT_CLASS
310#define DECLARE_EVENT_CLASS(call, proto, args, tstruct, func, print) \
Steven Rostedt83f0d532010-02-16 10:38:47 -0500311static int notrace \
Li Zefan14be96c2009-08-19 15:53:52 +0800312ftrace_define_fields_##call(struct ftrace_event_call *event_call) \
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400313{ \
314 struct ftrace_raw_##call field; \
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400315 int ret; \
316 \
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400317 tstruct; \
318 \
319 return ret; \
320}
321
Steven Rostedtff038f52009-11-18 20:27:27 -0500322#undef DEFINE_EVENT
323#define DEFINE_EVENT(template, name, proto, args)
324
Steven Rostedte5bc9722009-11-18 20:36:26 -0500325#undef DEFINE_EVENT_PRINT
326#define DEFINE_EVENT_PRINT(template, name, proto, args, print) \
327 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
328
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400329#include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
330
331/*
Li Zefan7fcb7c42009-06-01 15:35:46 +0800332 * remember the offset of each array from the beginning of the event.
333 */
334
335#undef __entry
336#define __entry entry
337
338#undef __field
339#define __field(type, item)
340
Li Zefan43b51ea2009-08-07 10:33:22 +0800341#undef __field_ext
342#define __field_ext(type, item, filter_type)
343
Li Zefan7fcb7c42009-06-01 15:35:46 +0800344#undef __array
345#define __array(type, item, len)
346
347#undef __dynamic_array
348#define __dynamic_array(type, item, len) \
349 __data_offsets->item = __data_size + \
350 offsetof(typeof(*entry), __data); \
Li Zefan7d536cb2009-07-16 10:54:02 +0800351 __data_offsets->item |= (len * sizeof(type)) << 16; \
Li Zefan7fcb7c42009-06-01 15:35:46 +0800352 __data_size += (len) * sizeof(type);
353
354#undef __string
Steven Rostedtff038f52009-11-18 20:27:27 -0500355#define __string(item, src) __dynamic_array(char, item, strlen(src) + 1)
Li Zefan7fcb7c42009-06-01 15:35:46 +0800356
Ingo Molnar091ad362009-11-26 09:04:55 +0100357#undef DECLARE_EVENT_CLASS
358#define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \
Steven Rostedt83f0d532010-02-16 10:38:47 -0500359static inline notrace int ftrace_get_offsets_##call( \
Li Zefan7fcb7c42009-06-01 15:35:46 +0800360 struct ftrace_data_offsets_##call *__data_offsets, proto) \
361{ \
362 int __data_size = 0; \
363 struct ftrace_raw_##call __maybe_unused *entry; \
364 \
365 tstruct; \
366 \
367 return __data_size; \
368}
369
Steven Rostedtff038f52009-11-18 20:27:27 -0500370#undef DEFINE_EVENT
371#define DEFINE_EVENT(template, name, proto, args)
372
Steven Rostedte5bc9722009-11-18 20:36:26 -0500373#undef DEFINE_EVENT_PRINT
374#define DEFINE_EVENT_PRINT(template, name, proto, args, print) \
375 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
376
Li Zefan7fcb7c42009-06-01 15:35:46 +0800377#include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
378
Li Zefan07b139c2009-12-21 14:27:35 +0800379#ifdef CONFIG_PERF_EVENTS
Peter Zijlstra3a659302009-07-21 17:34:57 +0200380
381/*
Ingo Molnarcdd6c482009-09-21 12:02:48 +0200382 * Generate the functions needed for tracepoint perf_event support.
Peter Zijlstra3a659302009-07-21 17:34:57 +0200383 *
Frederic Weisbeckerf413cdb2009-08-07 01:25:54 +0200384 * NOTE: The insertion profile callback (ftrace_profile_<call>) is defined later
Peter Zijlstra3a659302009-07-21 17:34:57 +0200385 *
Frederic Weisbeckere5e25cf2009-09-18 00:54:43 +0200386 * static int ftrace_profile_enable_<call>(void)
Peter Zijlstra3a659302009-07-21 17:34:57 +0200387 * {
Frederic Weisbeckere5e25cf2009-09-18 00:54:43 +0200388 * return register_trace_<call>(ftrace_profile_<call>);
Peter Zijlstra3a659302009-07-21 17:34:57 +0200389 * }
390 *
Frederic Weisbeckere5e25cf2009-09-18 00:54:43 +0200391 * static void ftrace_profile_disable_<call>(void)
Peter Zijlstra3a659302009-07-21 17:34:57 +0200392 * {
Frederic Weisbeckere5e25cf2009-09-18 00:54:43 +0200393 * unregister_trace_<call>(ftrace_profile_<call>);
Peter Zijlstra3a659302009-07-21 17:34:57 +0200394 * }
395 *
396 */
397
Ingo Molnar091ad362009-11-26 09:04:55 +0100398#undef DECLARE_EVENT_CLASS
399#define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print)
Steven Rostedtff038f52009-11-18 20:27:27 -0500400
401#undef DEFINE_EVENT
402#define DEFINE_EVENT(template, name, proto, args) \
Peter Zijlstra3a659302009-07-21 17:34:57 +0200403 \
Steven Rostedtff038f52009-11-18 20:27:27 -0500404static void ftrace_profile_##name(proto); \
Peter Zijlstra3a659302009-07-21 17:34:57 +0200405 \
Steven Rostedt83f0d532010-02-16 10:38:47 -0500406static notrace int \
407ftrace_profile_enable_##name(struct ftrace_event_call *unused) \
Peter Zijlstra3a659302009-07-21 17:34:57 +0200408{ \
Steven Rostedtff038f52009-11-18 20:27:27 -0500409 return register_trace_##name(ftrace_profile_##name); \
Peter Zijlstra3a659302009-07-21 17:34:57 +0200410} \
411 \
Steven Rostedt83f0d532010-02-16 10:38:47 -0500412static notrace void \
413ftrace_profile_disable_##name(struct ftrace_event_call *unused) \
Peter Zijlstra3a659302009-07-21 17:34:57 +0200414{ \
Steven Rostedtff038f52009-11-18 20:27:27 -0500415 unregister_trace_##name(ftrace_profile_##name); \
Peter Zijlstra3a659302009-07-21 17:34:57 +0200416}
417
Steven Rostedte5bc9722009-11-18 20:36:26 -0500418#undef DEFINE_EVENT_PRINT
419#define DEFINE_EVENT_PRINT(template, name, proto, args, print) \
420 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
421
Peter Zijlstra3a659302009-07-21 17:34:57 +0200422#include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
423
Li Zefan07b139c2009-12-21 14:27:35 +0800424#endif /* CONFIG_PERF_EVENTS */
Peter Zijlstra3a659302009-07-21 17:34:57 +0200425
Li Zefan7fcb7c42009-06-01 15:35:46 +0800426/*
Frederic Weisbecker9cbf1172009-04-19 04:51:29 +0200427 * Stage 4 of the trace events.
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400428 *
429 * Override the macros in <trace/trace_events.h> to include the following:
430 *
431 * static void ftrace_event_<call>(proto)
432 * {
433 * event_trace_printk(_RET_IP_, "<call>: " <fmt>);
434 * }
435 *
Masami Hiramatsubd1a5c82009-08-13 16:34:53 -0400436 * static int ftrace_reg_event_<call>(struct ftrace_event_call *unused)
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400437 * {
Li Zefan3b8e4272009-12-08 11:14:52 +0800438 * return register_trace_<call>(ftrace_event_<call>);
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400439 * }
440 *
Masami Hiramatsubd1a5c82009-08-13 16:34:53 -0400441 * static void ftrace_unreg_event_<call>(struct ftrace_event_call *unused)
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400442 * {
443 * unregister_trace_<call>(ftrace_event_<call>);
444 * }
445 *
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400446 *
447 * For those macros defined with TRACE_EVENT:
448 *
449 * static struct ftrace_event_call event_<call>;
450 *
451 * static void ftrace_raw_event_<call>(proto)
452 * {
453 * struct ring_buffer_event *event;
454 * struct ftrace_raw_<call> *entry; <-- defined in stage 1
Steven Rostedte77405a2009-09-02 14:17:06 -0400455 * struct ring_buffer *buffer;
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400456 * unsigned long irq_flags;
457 * int pc;
458 *
459 * local_save_flags(irq_flags);
460 * pc = preempt_count();
461 *
Steven Rostedte77405a2009-09-02 14:17:06 -0400462 * event = trace_current_buffer_lock_reserve(&buffer,
463 * event_<call>.id,
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400464 * sizeof(struct ftrace_raw_<call>),
465 * irq_flags, pc);
466 * if (!event)
467 * return;
468 * entry = ring_buffer_event_data(event);
469 *
470 * <assign>; <-- Here we assign the entries by the __field and
471 * __array macros.
472 *
Steven Rostedte77405a2009-09-02 14:17:06 -0400473 * trace_current_buffer_unlock_commit(buffer, event, irq_flags, pc);
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400474 * }
475 *
Masami Hiramatsubd1a5c82009-08-13 16:34:53 -0400476 * static int ftrace_raw_reg_event_<call>(struct ftrace_event_call *unused)
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400477 * {
478 * int ret;
479 *
480 * ret = register_trace_<call>(ftrace_raw_event_<call>);
481 * if (!ret)
482 * pr_info("event trace: Could not activate trace point "
483 * "probe to <call>");
484 * return ret;
485 * }
486 *
Masami Hiramatsubd1a5c82009-08-13 16:34:53 -0400487 * static void ftrace_unreg_event_<call>(struct ftrace_event_call *unused)
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400488 * {
489 * unregister_trace_<call>(ftrace_raw_event_<call>);
490 * }
491 *
492 * static struct trace_event ftrace_event_type_<call> = {
493 * .trace = ftrace_raw_output_<call>, <-- stage 2
494 * };
495 *
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400496 * static struct ftrace_event_call __used
497 * __attribute__((__aligned__(4)))
498 * __attribute__((section("_ftrace_events"))) event_<call> = {
499 * .name = "<call>",
500 * .system = "<system>",
Li Zefan87d9b4e2009-12-08 11:14:20 +0800501 * .raw_init = trace_event_raw_init,
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400502 * .regfunc = ftrace_reg_event_<call>,
503 * .unregfunc = ftrace_unreg_event_<call>,
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400504 * }
505 *
506 */
507
Li Zefan07b139c2009-12-21 14:27:35 +0800508#ifdef CONFIG_PERF_EVENTS
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400509
510#define _TRACE_PROFILE_INIT(call) \
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400511 .profile_enable = ftrace_profile_enable_##call, \
512 .profile_disable = ftrace_profile_disable_##call,
513
514#else
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400515#define _TRACE_PROFILE_INIT(call)
Li Zefan07b139c2009-12-21 14:27:35 +0800516#endif /* CONFIG_PERF_EVENTS */
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400517
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400518#undef __entry
519#define __entry entry
520
Frederic Weisbecker9cbf1172009-04-19 04:51:29 +0200521#undef __field
522#define __field(type, item)
523
524#undef __array
525#define __array(type, item, len)
526
Li Zefan7fcb7c42009-06-01 15:35:46 +0800527#undef __dynamic_array
528#define __dynamic_array(type, item, len) \
529 __entry->__data_loc_##item = __data_offsets.item;
530
Frederic Weisbecker9cbf1172009-04-19 04:51:29 +0200531#undef __string
Li Zefan7fcb7c42009-06-01 15:35:46 +0800532#define __string(item, src) __dynamic_array(char, item, -1) \
Frederic Weisbecker9cbf1172009-04-19 04:51:29 +0200533
534#undef __assign_str
535#define __assign_str(dst, src) \
Frederic Weisbecker9cbf1172009-04-19 04:51:29 +0200536 strcpy(__get_str(dst), src);
537
Lai Jiangshan0fa0eda2009-12-15 15:39:57 +0800538#undef TP_fast_assign
539#define TP_fast_assign(args...) args
540
541#undef TP_perf_assign
542#define TP_perf_assign(args...)
543
Ingo Molnar091ad362009-11-26 09:04:55 +0100544#undef DECLARE_EVENT_CLASS
545#define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400546 \
Steven Rostedt83f0d532010-02-16 10:38:47 -0500547static notrace void \
548ftrace_raw_event_id_##call(struct ftrace_event_call *event_call, \
Steven Rostedtff038f52009-11-18 20:27:27 -0500549 proto) \
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400550{ \
Li Zefan7fcb7c42009-06-01 15:35:46 +0800551 struct ftrace_data_offsets_##call __maybe_unused __data_offsets;\
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400552 struct ring_buffer_event *event; \
553 struct ftrace_raw_##call *entry; \
Steven Rostedte77405a2009-09-02 14:17:06 -0400554 struct ring_buffer *buffer; \
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400555 unsigned long irq_flags; \
Li Zefan7fcb7c42009-06-01 15:35:46 +0800556 int __data_size; \
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400557 int pc; \
558 \
559 local_save_flags(irq_flags); \
560 pc = preempt_count(); \
561 \
Li Zefan7fcb7c42009-06-01 15:35:46 +0800562 __data_size = ftrace_get_offsets_##call(&__data_offsets, args); \
Frederic Weisbecker9cbf1172009-04-19 04:51:29 +0200563 \
Steven Rostedte77405a2009-09-02 14:17:06 -0400564 event = trace_current_buffer_lock_reserve(&buffer, \
Steven Rostedtff038f52009-11-18 20:27:27 -0500565 event_call->id, \
Li Zefan7fcb7c42009-06-01 15:35:46 +0800566 sizeof(*entry) + __data_size, \
Frederic Weisbecker9cbf1172009-04-19 04:51:29 +0200567 irq_flags, pc); \
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400568 if (!event) \
569 return; \
570 entry = ring_buffer_event_data(event); \
571 \
Li Zefan7fcb7c42009-06-01 15:35:46 +0800572 \
573 tstruct \
574 \
Li Zefana9c1c3a2009-06-01 15:35:13 +0800575 { assign; } \
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400576 \
Steven Rostedte77405a2009-09-02 14:17:06 -0400577 if (!filter_current_check_discard(buffer, event_call, entry, event)) \
578 trace_nowake_buffer_unlock_commit(buffer, \
579 event, irq_flags, pc); \
Steven Rostedtff038f52009-11-18 20:27:27 -0500580}
581
582#undef DEFINE_EVENT
583#define DEFINE_EVENT(template, call, proto, args) \
584 \
Steven Rostedt83f0d532010-02-16 10:38:47 -0500585static notrace void ftrace_raw_event_##call(proto) \
Steven Rostedtff038f52009-11-18 20:27:27 -0500586{ \
587 ftrace_raw_event_id_##template(&event_##call, args); \
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400588} \
589 \
Steven Rostedt83f0d532010-02-16 10:38:47 -0500590static notrace int \
591ftrace_raw_reg_event_##call(struct ftrace_event_call *unused) \
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400592{ \
Li Zefan3b8e4272009-12-08 11:14:52 +0800593 return register_trace_##call(ftrace_raw_event_##call); \
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400594} \
595 \
Steven Rostedt83f0d532010-02-16 10:38:47 -0500596static notrace void \
597ftrace_raw_unreg_event_##call(struct ftrace_event_call *unused) \
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400598{ \
599 unregister_trace_##call(ftrace_raw_event_##call); \
600} \
601 \
602static struct trace_event ftrace_event_type_##call = { \
603 .trace = ftrace_raw_output_##call, \
Li Zefan87d9b4e2009-12-08 11:14:20 +0800604};
Steven Rostedte5bc9722009-11-18 20:36:26 -0500605
606#undef DEFINE_EVENT_PRINT
607#define DEFINE_EVENT_PRINT(template, name, proto, args, print) \
608 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
609
610#include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
611
Lai Jiangshan509e7602009-12-15 15:39:42 +0800612#undef __entry
613#define __entry REC
614
615#undef __print_flags
616#undef __print_symbolic
617#undef __get_dynamic_array
618#undef __get_str
619
620#undef TP_printk
621#define TP_printk(fmt, args...) "\"" fmt "\", " __stringify(args)
622
Ingo Molnar091ad362009-11-26 09:04:55 +0100623#undef DECLARE_EVENT_CLASS
Lai Jiangshan509e7602009-12-15 15:39:42 +0800624#define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \
625static const char print_fmt_##call[] = print;
Steven Rostedte5bc9722009-11-18 20:36:26 -0500626
627#undef DEFINE_EVENT
628#define DEFINE_EVENT(template, call, proto, args) \
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400629 \
630static struct ftrace_event_call __used \
631__attribute__((__aligned__(4))) \
632__attribute__((section("_ftrace_events"))) event_##call = { \
633 .name = #call, \
634 .system = __stringify(TRACE_SYSTEM), \
Steven Rostedt6d723732009-04-10 14:53:50 -0400635 .event = &ftrace_event_type_##call, \
Li Zefan87d9b4e2009-12-08 11:14:20 +0800636 .raw_init = trace_event_raw_init, \
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400637 .regfunc = ftrace_raw_reg_event_##call, \
638 .unregfunc = ftrace_raw_unreg_event_##call, \
Lai Jiangshan509e7602009-12-15 15:39:42 +0800639 .print_fmt = print_fmt_##template, \
Steven Rostedtff038f52009-11-18 20:27:27 -0500640 .define_fields = ftrace_define_fields_##template, \
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400641 _TRACE_PROFILE_INIT(call) \
642}
643
Steven Rostedte5bc9722009-11-18 20:36:26 -0500644#undef DEFINE_EVENT_PRINT
645#define DEFINE_EVENT_PRINT(template, call, proto, args, print) \
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400646 \
Lai Jiangshan509e7602009-12-15 15:39:42 +0800647static const char print_fmt_##call[] = print; \
648 \
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400649static struct ftrace_event_call __used \
650__attribute__((__aligned__(4))) \
651__attribute__((section("_ftrace_events"))) event_##call = { \
652 .name = #call, \
653 .system = __stringify(TRACE_SYSTEM), \
654 .event = &ftrace_event_type_##call, \
Li Zefan87d9b4e2009-12-08 11:14:20 +0800655 .raw_init = trace_event_raw_init, \
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400656 .regfunc = ftrace_raw_reg_event_##call, \
657 .unregfunc = ftrace_raw_unreg_event_##call, \
Lai Jiangshan509e7602009-12-15 15:39:42 +0800658 .print_fmt = print_fmt_##call, \
Steven Rostedte5bc9722009-11-18 20:36:26 -0500659 .define_fields = ftrace_define_fields_##template, \
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400660 _TRACE_PROFILE_INIT(call) \
661}
662
663#include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
664
Frederic Weisbeckerf413cdb2009-08-07 01:25:54 +0200665/*
666 * Define the insertion callback to profile events
667 *
668 * The job is very similar to ftrace_raw_event_<call> except that we don't
669 * insert in the ring buffer but in a perf counter.
670 *
671 * static void ftrace_profile_<call>(proto)
672 * {
673 * struct ftrace_data_offsets_<call> __maybe_unused __data_offsets;
674 * struct ftrace_event_call *event_call = &event_<call>;
Ingo Molnarcdd6c482009-09-21 12:02:48 +0200675 * extern void perf_tp_event(int, u64, u64, void *, int);
Frederic Weisbeckerf413cdb2009-08-07 01:25:54 +0200676 * struct ftrace_raw_##call *entry;
Frederic Weisbecker444a2a32009-11-06 04:13:05 +0100677 * struct perf_trace_buf *trace_buf;
Frederic Weisbeckerf413cdb2009-08-07 01:25:54 +0200678 * u64 __addr = 0, __count = 1;
679 * unsigned long irq_flags;
Frederic Weisbecker20ab4422009-09-18 06:10:28 +0200680 * struct trace_entry *ent;
Frederic Weisbeckerf413cdb2009-08-07 01:25:54 +0200681 * int __entry_size;
682 * int __data_size;
Frederic Weisbecker20ab4422009-09-18 06:10:28 +0200683 * int __cpu
Frederic Weisbeckerf413cdb2009-08-07 01:25:54 +0200684 * int pc;
685 *
Frederic Weisbeckerf413cdb2009-08-07 01:25:54 +0200686 * pc = preempt_count();
687 *
688 * __data_size = ftrace_get_offsets_<call>(&__data_offsets, args);
Frederic Weisbecker304703a2009-08-10 16:11:32 +0200689 *
690 * // Below we want to get the aligned size by taking into account
691 * // the u32 field that will later store the buffer size
692 * __entry_size = ALIGN(__data_size + sizeof(*entry) + sizeof(u32),
693 * sizeof(u64));
694 * __entry_size -= sizeof(u32);
Frederic Weisbeckerf413cdb2009-08-07 01:25:54 +0200695 *
Frederic Weisbecker20ab4422009-09-18 06:10:28 +0200696 * // Protect the non nmi buffer
697 * // This also protects the rcu read side
698 * local_irq_save(irq_flags);
699 * __cpu = smp_processor_id();
Frederic Weisbeckerf413cdb2009-08-07 01:25:54 +0200700 *
Frederic Weisbecker20ab4422009-09-18 06:10:28 +0200701 * if (in_nmi())
Frederic Weisbecker444a2a32009-11-06 04:13:05 +0100702 * trace_buf = rcu_dereference(perf_trace_buf_nmi);
Frederic Weisbecker20ab4422009-09-18 06:10:28 +0200703 * else
Frederic Weisbecker444a2a32009-11-06 04:13:05 +0100704 * trace_buf = rcu_dereference(perf_trace_buf);
Frederic Weisbecker1853db02009-08-10 16:38:36 +0200705 *
Frederic Weisbecker444a2a32009-11-06 04:13:05 +0100706 * if (!trace_buf)
Frederic Weisbecker20ab4422009-09-18 06:10:28 +0200707 * goto end;
Frederic Weisbeckerf413cdb2009-08-07 01:25:54 +0200708 *
Frederic Weisbecker444a2a32009-11-06 04:13:05 +0100709 * trace_buf = per_cpu_ptr(trace_buf, __cpu);
710 *
711 * // Avoid recursion from perf that could mess up the buffer
712 * if (trace_buf->recursion++)
713 * goto end_recursion;
714 *
715 * raw_data = trace_buf->buf;
716 *
717 * // Make recursion update visible before entering perf_tp_event
718 * // so that we protect from perf recursions.
719 *
720 * barrier();
Frederic Weisbeckerf413cdb2009-08-07 01:25:54 +0200721 *
Frederic Weisbecker20ab4422009-09-18 06:10:28 +0200722 * //zero dead bytes from alignment to avoid stack leak to userspace:
723 * *(u64 *)(&raw_data[__entry_size - sizeof(u64)]) = 0ULL;
724 * entry = (struct ftrace_raw_<call> *)raw_data;
725 * ent = &entry->ent;
726 * tracing_generic_entry_update(ent, irq_flags, pc);
727 * ent->type = event_call->id;
Frederic Weisbeckerf413cdb2009-08-07 01:25:54 +0200728 *
Frederic Weisbecker20ab4422009-09-18 06:10:28 +0200729 * <tstruct> <- do some jobs with dynamic arrays
730 *
731 * <assign> <- affect our values
732 *
Linus Torvalds43c12662009-09-21 09:15:07 -0700733 * perf_tp_event(event_call->id, __addr, __count, entry,
Frederic Weisbecker20ab4422009-09-18 06:10:28 +0200734 * __entry_size); <- submit them to perf counter
Frederic Weisbeckerf413cdb2009-08-07 01:25:54 +0200735 *
736 * }
737 */
738
Li Zefan07b139c2009-12-21 14:27:35 +0800739#ifdef CONFIG_PERF_EVENTS
Frederic Weisbeckerf413cdb2009-08-07 01:25:54 +0200740
Lai Jiangshan509e7602009-12-15 15:39:42 +0800741#undef __entry
742#define __entry entry
743
744#undef __get_dynamic_array
745#define __get_dynamic_array(field) \
746 ((void *)__entry + (__entry->__data_loc_##field & 0xffff))
747
748#undef __get_str
749#define __get_str(field) (char *)__get_dynamic_array(field)
750
Frederic Weisbeckerf413cdb2009-08-07 01:25:54 +0200751#undef __perf_addr
752#define __perf_addr(a) __addr = (a)
753
754#undef __perf_count
755#define __perf_count(c) __count = (c)
756
Ingo Molnar091ad362009-11-26 09:04:55 +0100757#undef DECLARE_EVENT_CLASS
758#define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \
Steven Rostedt83f0d532010-02-16 10:38:47 -0500759static notrace void \
Steven Rostedtff038f52009-11-18 20:27:27 -0500760ftrace_profile_templ_##call(struct ftrace_event_call *event_call, \
761 proto) \
Frederic Weisbeckerf413cdb2009-08-07 01:25:54 +0200762{ \
763 struct ftrace_data_offsets_##call __maybe_unused __data_offsets;\
Frederic Weisbeckerf413cdb2009-08-07 01:25:54 +0200764 struct ftrace_raw_##call *entry; \
765 u64 __addr = 0, __count = 1; \
766 unsigned long irq_flags; \
767 int __entry_size; \
768 int __data_size; \
Peter Zijlstra4ed7c922009-11-23 11:37:29 +0100769 int rctx; \
Frederic Weisbeckerf413cdb2009-08-07 01:25:54 +0200770 \
771 __data_size = ftrace_get_offsets_##call(&__data_offsets, args); \
Peter Zijlstraa0445602009-08-10 11:16:52 +0200772 __entry_size = ALIGN(__data_size + sizeof(*entry) + sizeof(u32),\
773 sizeof(u64)); \
Frederic Weisbecker304703a2009-08-10 16:11:32 +0200774 __entry_size -= sizeof(u32); \
Frederic Weisbeckerf413cdb2009-08-07 01:25:54 +0200775 \
Frederic Weisbecker20ab4422009-09-18 06:10:28 +0200776 if (WARN_ONCE(__entry_size > FTRACE_MAX_PROFILE_SIZE, \
777 "profile buffer not large enough")) \
778 return; \
Xiao Guangrong430ad5a2010-01-28 09:32:29 +0800779 entry = (struct ftrace_raw_##call *)ftrace_perf_buf_prepare( \
780 __entry_size, event_call->id, &rctx, &irq_flags); \
781 if (!entry) \
782 return; \
Frederic Weisbecker20ab4422009-09-18 06:10:28 +0200783 tstruct \
784 \
785 { assign; } \
786 \
Xiao Guangrong430ad5a2010-01-28 09:32:29 +0800787 ftrace_perf_buf_submit(entry, __entry_size, rctx, __addr, \
788 __count, irq_flags); \
Frederic Weisbeckerf413cdb2009-08-07 01:25:54 +0200789}
790
Steven Rostedtff038f52009-11-18 20:27:27 -0500791#undef DEFINE_EVENT
792#define DEFINE_EVENT(template, call, proto, args) \
Steven Rostedt83f0d532010-02-16 10:38:47 -0500793static notrace void ftrace_profile_##call(proto) \
Steven Rostedtff038f52009-11-18 20:27:27 -0500794{ \
795 struct ftrace_event_call *event_call = &event_##call; \
796 \
797 ftrace_profile_templ_##template(event_call, args); \
798}
799
Steven Rostedte5bc9722009-11-18 20:36:26 -0500800#undef DEFINE_EVENT_PRINT
801#define DEFINE_EVENT_PRINT(template, name, proto, args, print) \
802 DEFINE_EVENT(template, name, PARAMS(proto), PARAMS(args))
803
Frederic Weisbeckerf413cdb2009-08-07 01:25:54 +0200804#include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
Li Zefan07b139c2009-12-21 14:27:35 +0800805#endif /* CONFIG_PERF_EVENTS */
Frederic Weisbeckerf413cdb2009-08-07 01:25:54 +0200806
Steven Rostedtf42c85e2009-04-13 12:25:37 -0400807#undef _TRACE_PROFILE_INIT
808