blob: 08150e2657614a9bcd191144f54a27e4aa7d16bc [file] [log] [blame]
Mathieu Desnoyers97e1c182008-07-18 12:16:16 -04001#ifndef _LINUX_TRACEPOINT_H
2#define _LINUX_TRACEPOINT_H
3
4/*
5 * Kernel Tracepoint API.
6 *
Li Hong8cd09a52009-09-22 18:00:44 +08007 * See Documentation/trace/tracepoints.txt.
Mathieu Desnoyers97e1c182008-07-18 12:16:16 -04008 *
Mathieu Desnoyersde7b2972014-04-08 17:26:21 -04009 * Copyright (C) 2008-2014 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mathieu Desnoyers97e1c182008-07-18 12:16:16 -040010 *
11 * Heavily inspired from the Linux Kernel Markers.
12 *
13 * This file is released under the GPLv2.
14 * See the file COPYING for more details.
15 */
16
Wu Zhangjinb70e4f02010-06-21 19:09:09 +080017#include <linux/errno.h>
Mathieu Desnoyers97e1c182008-07-18 12:16:16 -040018#include <linux/types.h>
19#include <linux/rcupdate.h>
Ingo Molnarc5905af2012-02-24 08:31:31 +010020#include <linux/static_key.h>
Mathieu Desnoyers97e1c182008-07-18 12:16:16 -040021
22struct module;
23struct tracepoint;
Mathieu Desnoyersde7b2972014-04-08 17:26:21 -040024struct notifier_block;
Mathieu Desnoyers97e1c182008-07-18 12:16:16 -040025
Steven Rostedt38516ab2010-04-20 17:04:50 -040026struct tracepoint_func {
27 void *func;
28 void *data;
29};
30
Mathieu Desnoyers97e1c182008-07-18 12:16:16 -040031struct tracepoint {
32 const char *name; /* Tracepoint name */
Ingo Molnarc5905af2012-02-24 08:31:31 +010033 struct static_key key;
Josh Stone97419872009-08-24 14:43:13 -070034 void (*regfunc)(void);
35 void (*unregfunc)(void);
Lai Jiangshanbd1c8b22011-01-04 16:06:09 +080036 struct tracepoint_func __rcu *funcs;
Mathieu Desnoyers65498642011-01-26 17:26:22 -050037};
Mathieu Desnoyers97e1c182008-07-18 12:16:16 -040038
Steven Rostedt38516ab2010-04-20 17:04:50 -040039extern int
Mathieu Desnoyersde7b2972014-04-08 17:26:21 -040040tracepoint_probe_register(struct tracepoint *tp, void *probe, void *data);
41extern int
42tracepoint_probe_unregister(struct tracepoint *tp, void *probe, void *data);
43extern void
44for_each_kernel_tracepoint(void (*fct)(struct tracepoint *tp, void *priv),
45 void *priv);
Steven Rostedt2e26ca72010-05-05 10:52:31 -040046
Mathieu Desnoyersb75ef8b2011-08-10 15:18:39 -040047#ifdef CONFIG_MODULES
48struct tp_module {
49 struct list_head list;
50 unsigned int num_tracepoints;
51 struct tracepoint * const *tracepoints_ptrs;
52};
Mathieu Desnoyersde7b2972014-04-08 17:26:21 -040053
Steven Rostedt (Red Hat)45ab2812014-02-26 13:37:38 -050054bool trace_module_has_bad_taint(struct module *mod);
Mathieu Desnoyersde7b2972014-04-08 17:26:21 -040055extern int register_tracepoint_module_notifier(struct notifier_block *nb);
56extern int unregister_tracepoint_module_notifier(struct notifier_block *nb);
Steven Rostedt (Red Hat)45ab2812014-02-26 13:37:38 -050057#else
58static inline bool trace_module_has_bad_taint(struct module *mod)
59{
60 return false;
61}
Mathieu Desnoyersde7b2972014-04-08 17:26:21 -040062static inline
63int register_tracepoint_module_notifier(struct notifier_block *nb)
64{
65 return 0;
66}
67static inline
68int unregister_tracepoint_module_notifier(struct notifier_block *nb)
69{
70 return 0;
71}
Mathieu Desnoyersb75ef8b2011-08-10 15:18:39 -040072#endif /* CONFIG_MODULES */
73
Steven Rostedt2e26ca72010-05-05 10:52:31 -040074/*
75 * tracepoint_synchronize_unregister must be called between the last tracepoint
76 * probe unregistration and the end of module exit to make sure there is no
77 * caller executing a probe when it is freed.
78 */
79static inline void tracepoint_synchronize_unregister(void)
80{
81 synchronize_sched();
82}
83
84#define PARAMS(args...) args
85
Steven Rostedt2e26ca72010-05-05 10:52:31 -040086#endif /* _LINUX_TRACEPOINT_H */
87
88/*
89 * Note: we keep the TRACE_EVENT and DECLARE_TRACE outside the include
90 * file ifdef protection.
91 * This is due to the way trace events work. If a file includes two
92 * trace event headers under one "CREATE_TRACE_POINTS" the first include
93 * will override the TRACE_EVENT and break the second include.
94 */
95
Steven Rostedtea20d922009-04-10 08:54:16 -040096#ifndef DECLARE_TRACE
97
Steven Rostedt2939b042009-03-09 15:47:18 -040098#define TP_PROTO(args...) args
Li Hong8cd09a52009-09-22 18:00:44 +080099#define TP_ARGS(args...) args
Steven Rostedt287050d2010-12-02 16:46:18 -0500100#define TP_CONDITION(args...) args
Mathieu Desnoyers97e1c182008-07-18 12:16:16 -0400101
102#ifdef CONFIG_TRACEPOINTS
103
104/*
105 * it_func[0] is never NULL because there is at least one element in the array
106 * when the array itself is non NULL.
Steven Rostedt38516ab2010-04-20 17:04:50 -0400107 *
108 * Note, the proto and args passed in includes "__data" as the first parameter.
109 * The reason for this is to handle the "void" prototype. If a tracepoint
110 * has a "void" prototype, then it is invalid to declare a function
111 * as "(void *, void)". The DECLARE_TRACE_NOARGS() will pass in just
112 * "void *data", where as the DECLARE_TRACE() will pass in "void *data, proto".
Mathieu Desnoyers97e1c182008-07-18 12:16:16 -0400113 */
Steven Rostedt2fbb90d2012-02-07 09:32:43 -0500114#define __DO_TRACE(tp, proto, args, cond, prercu, postrcu) \
Mathieu Desnoyers97e1c182008-07-18 12:16:16 -0400115 do { \
Steven Rostedt38516ab2010-04-20 17:04:50 -0400116 struct tracepoint_func *it_func_ptr; \
117 void *it_func; \
118 void *__data; \
Mathieu Desnoyers97e1c182008-07-18 12:16:16 -0400119 \
Steven Rostedt287050d2010-12-02 16:46:18 -0500120 if (!(cond)) \
121 return; \
Steven Rostedt2fbb90d2012-02-07 09:32:43 -0500122 prercu; \
Mathieu Desnoyersda7b3ea2008-11-14 17:47:43 -0500123 rcu_read_lock_sched_notrace(); \
Steven Rostedt38516ab2010-04-20 17:04:50 -0400124 it_func_ptr = rcu_dereference_sched((tp)->funcs); \
125 if (it_func_ptr) { \
Mathieu Desnoyers97e1c182008-07-18 12:16:16 -0400126 do { \
Steven Rostedt38516ab2010-04-20 17:04:50 -0400127 it_func = (it_func_ptr)->func; \
128 __data = (it_func_ptr)->data; \
129 ((void(*)(proto))(it_func))(args); \
130 } while ((++it_func_ptr)->func); \
Mathieu Desnoyers97e1c182008-07-18 12:16:16 -0400131 } \
Mathieu Desnoyersda7b3ea2008-11-14 17:47:43 -0500132 rcu_read_unlock_sched_notrace(); \
Steven Rostedt2fbb90d2012-02-07 09:32:43 -0500133 postrcu; \
Mathieu Desnoyers97e1c182008-07-18 12:16:16 -0400134 } while (0)
135
Josh Triplett7ece55a2012-09-04 23:23:06 -0700136#ifndef MODULE
137#define __DECLARE_TRACE_RCU(name, proto, args, cond, data_proto, data_args) \
138 static inline void trace_##name##_rcuidle(proto) \
139 { \
140 if (static_key_false(&__tracepoint_##name.key)) \
141 __DO_TRACE(&__tracepoint_##name, \
142 TP_PROTO(data_proto), \
143 TP_ARGS(data_args), \
144 TP_CONDITION(cond), \
Paul E. McKenneyd6284092013-05-22 02:41:36 -0700145 rcu_irq_enter(), \
146 rcu_irq_exit()); \
Josh Triplett7ece55a2012-09-04 23:23:06 -0700147 }
148#else
149#define __DECLARE_TRACE_RCU(name, proto, args, cond, data_proto, data_args)
150#endif
151
Mathieu Desnoyers97e1c182008-07-18 12:16:16 -0400152/*
153 * Make sure the alignment of the structure in the __tracepoints section will
154 * not add unwanted padding between the beginning of the section and the
155 * structure. Force alignment to the same alignment as the section start.
156 */
Steven Rostedt2fbb90d2012-02-07 09:32:43 -0500157#define __DECLARE_TRACE(name, proto, args, cond, data_proto, data_args) \
Mathieu Desnoyers7e066fb2008-11-14 17:47:47 -0500158 extern struct tracepoint __tracepoint_##name; \
Mathieu Desnoyers97e1c182008-07-18 12:16:16 -0400159 static inline void trace_##name(proto) \
160 { \
Ingo Molnarc5905af2012-02-24 08:31:31 +0100161 if (static_key_false(&__tracepoint_##name.key)) \
Mathieu Desnoyers97e1c182008-07-18 12:16:16 -0400162 __DO_TRACE(&__tracepoint_##name, \
Steven Rostedt38516ab2010-04-20 17:04:50 -0400163 TP_PROTO(data_proto), \
Steven Rostedt287050d2010-12-02 16:46:18 -0500164 TP_ARGS(data_args), \
Steven Rostedt2fbb90d2012-02-07 09:32:43 -0500165 TP_CONDITION(cond),,); \
166 } \
Josh Triplett7ece55a2012-09-04 23:23:06 -0700167 __DECLARE_TRACE_RCU(name, PARAMS(proto), PARAMS(args), \
168 PARAMS(cond), PARAMS(data_proto), PARAMS(data_args)) \
Steven Rostedt38516ab2010-04-20 17:04:50 -0400169 static inline int \
170 register_trace_##name(void (*probe)(data_proto), void *data) \
Mathieu Desnoyers97e1c182008-07-18 12:16:16 -0400171 { \
Mathieu Desnoyersde7b2972014-04-08 17:26:21 -0400172 return tracepoint_probe_register(&__tracepoint_##name, \
173 (void *)probe, data); \
Mathieu Desnoyers97e1c182008-07-18 12:16:16 -0400174 } \
Steven Rostedt38516ab2010-04-20 17:04:50 -0400175 static inline int \
176 unregister_trace_##name(void (*probe)(data_proto), void *data) \
Mathieu Desnoyers97e1c182008-07-18 12:16:16 -0400177 { \
Mathieu Desnoyersde7b2972014-04-08 17:26:21 -0400178 return tracepoint_probe_unregister(&__tracepoint_##name,\
179 (void *)probe, data); \
Mathieu Desnoyers53da59a2010-04-30 12:59:59 -0400180 } \
Steven Rostedt38516ab2010-04-20 17:04:50 -0400181 static inline void \
182 check_trace_callback_type_##name(void (*cb)(data_proto)) \
Mathieu Desnoyers53da59a2010-04-30 12:59:59 -0400183 { \
Mathieu Desnoyers97e1c182008-07-18 12:16:16 -0400184 }
185
Mathieu Desnoyers65498642011-01-26 17:26:22 -0500186/*
187 * We have no guarantee that gcc and the linker won't up-align the tracepoint
188 * structures, so we create an array of pointers that will be used for iteration
189 * on the tracepoints.
190 */
Jason Barond430d3d2011-03-16 17:29:47 -0400191#define DEFINE_TRACE_FN(name, reg, unreg) \
192 static const char __tpstrtab_##name[] \
193 __attribute__((section("__tracepoints_strings"))) = #name; \
194 struct tracepoint __tracepoint_##name \
195 __attribute__((section("__tracepoints"))) = \
Ingo Molnarc5905af2012-02-24 08:31:31 +0100196 { __tpstrtab_##name, STATIC_KEY_INIT_FALSE, reg, unreg, NULL };\
Jason Barond430d3d2011-03-16 17:29:47 -0400197 static struct tracepoint * const __tracepoint_ptr_##name __used \
198 __attribute__((section("__tracepoints_ptrs"))) = \
Mathieu Desnoyers65498642011-01-26 17:26:22 -0500199 &__tracepoint_##name;
Josh Stone97419872009-08-24 14:43:13 -0700200
201#define DEFINE_TRACE(name) \
202 DEFINE_TRACE_FN(name, NULL, NULL);
Mathieu Desnoyers7e066fb2008-11-14 17:47:47 -0500203
204#define EXPORT_TRACEPOINT_SYMBOL_GPL(name) \
205 EXPORT_SYMBOL_GPL(__tracepoint_##name)
206#define EXPORT_TRACEPOINT_SYMBOL(name) \
207 EXPORT_SYMBOL(__tracepoint_##name)
208
Mathieu Desnoyers97e1c182008-07-18 12:16:16 -0400209#else /* !CONFIG_TRACEPOINTS */
Steven Rostedt2fbb90d2012-02-07 09:32:43 -0500210#define __DECLARE_TRACE(name, proto, args, cond, data_proto, data_args) \
Mathieu Desnoyers97e1c182008-07-18 12:16:16 -0400211 static inline void trace_##name(proto) \
212 { } \
Steven Rostedt2fbb90d2012-02-07 09:32:43 -0500213 static inline void trace_##name##_rcuidle(proto) \
214 { } \
Steven Rostedt38516ab2010-04-20 17:04:50 -0400215 static inline int \
216 register_trace_##name(void (*probe)(data_proto), \
217 void *data) \
Mathieu Desnoyers97e1c182008-07-18 12:16:16 -0400218 { \
219 return -ENOSYS; \
220 } \
Steven Rostedt38516ab2010-04-20 17:04:50 -0400221 static inline int \
222 unregister_trace_##name(void (*probe)(data_proto), \
223 void *data) \
Mathieu Desnoyersc4209702008-11-14 17:47:44 -0500224 { \
225 return -ENOSYS; \
Mathieu Desnoyers53da59a2010-04-30 12:59:59 -0400226 } \
Steven Rostedt38516ab2010-04-20 17:04:50 -0400227 static inline void check_trace_callback_type_##name(void (*cb)(data_proto)) \
Mathieu Desnoyers53da59a2010-04-30 12:59:59 -0400228 { \
Mathieu Desnoyersc4209702008-11-14 17:47:44 -0500229 }
Mathieu Desnoyers97e1c182008-07-18 12:16:16 -0400230
Josh Stone97419872009-08-24 14:43:13 -0700231#define DEFINE_TRACE_FN(name, reg, unreg)
Mathieu Desnoyers7e066fb2008-11-14 17:47:47 -0500232#define DEFINE_TRACE(name)
233#define EXPORT_TRACEPOINT_SYMBOL_GPL(name)
234#define EXPORT_TRACEPOINT_SYMBOL(name)
235
Mathieu Desnoyers97e1c182008-07-18 12:16:16 -0400236#endif /* CONFIG_TRACEPOINTS */
Steven Rostedt38516ab2010-04-20 17:04:50 -0400237
238/*
239 * The need for the DECLARE_TRACE_NOARGS() is to handle the prototype
240 * (void). "void" is a special value in a function prototype and can
241 * not be combined with other arguments. Since the DECLARE_TRACE()
242 * macro adds a data element at the beginning of the prototype,
243 * we need a way to differentiate "(void *data, proto)" from
244 * "(void *data, void)". The second prototype is invalid.
245 *
246 * DECLARE_TRACE_NOARGS() passes "void" as the tracepoint prototype
247 * and "void *__data" as the callback prototype.
248 *
249 * DECLARE_TRACE() passes "proto" as the tracepoint protoype and
250 * "void *__data, proto" as the callback prototype.
251 */
252#define DECLARE_TRACE_NOARGS(name) \
Steven Rostedt287050d2010-12-02 16:46:18 -0500253 __DECLARE_TRACE(name, void, , 1, void *__data, __data)
Steven Rostedt38516ab2010-04-20 17:04:50 -0400254
255#define DECLARE_TRACE(name, proto, args) \
Steven Rostedt287050d2010-12-02 16:46:18 -0500256 __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), 1, \
Steven Rostedt38516ab2010-04-20 17:04:50 -0400257 PARAMS(void *__data, proto), \
258 PARAMS(__data, args))
259
Steven Rostedt287050d2010-12-02 16:46:18 -0500260#define DECLARE_TRACE_CONDITION(name, proto, args, cond) \
261 __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), PARAMS(cond), \
262 PARAMS(void *__data, proto), \
263 PARAMS(__data, args))
264
Frederic Weisbecker1ed0c592010-11-18 01:46:57 +0100265#define TRACE_EVENT_FLAGS(event, flag)
266
Peter Zijlstrad5b5f392013-11-14 16:23:04 +0100267#define TRACE_EVENT_PERF_PERM(event, expr...)
268
Steven Rostedtea20d922009-04-10 08:54:16 -0400269#endif /* DECLARE_TRACE */
Mathieu Desnoyers97e1c182008-07-18 12:16:16 -0400270
Steven Rostedtea20d922009-04-10 08:54:16 -0400271#ifndef TRACE_EVENT
Steven Rostedt823f9122009-03-10 12:58:51 -0400272/*
273 * For use with the TRACE_EVENT macro:
274 *
275 * We define a tracepoint, its arguments, its printk format
Viresh Kumar2621bca2013-12-02 15:15:37 +0530276 * and its 'fast binary record' layout.
Steven Rostedt823f9122009-03-10 12:58:51 -0400277 *
278 * Firstly, name your tracepoint via TRACE_EVENT(name : the
279 * 'subsystem_event' notation is fine.
280 *
281 * Think about this whole construct as the
282 * 'trace_sched_switch() function' from now on.
283 *
284 *
285 * TRACE_EVENT(sched_switch,
286 *
287 * *
288 * * A function has a regular function arguments
289 * * prototype, declare it via TP_PROTO():
290 * *
291 *
Steven Rostedtef180122009-03-10 14:10:56 -0400292 * TP_PROTO(struct rq *rq, struct task_struct *prev,
293 * struct task_struct *next),
Steven Rostedt823f9122009-03-10 12:58:51 -0400294 *
295 * *
296 * * Define the call signature of the 'function'.
297 * * (Design sidenote: we use this instead of a
298 * * TP_PROTO1/TP_PROTO2/TP_PROTO3 ugliness.)
299 * *
300 *
Steven Rostedtef180122009-03-10 14:10:56 -0400301 * TP_ARGS(rq, prev, next),
Steven Rostedt823f9122009-03-10 12:58:51 -0400302 *
303 * *
304 * * Fast binary tracing: define the trace record via
305 * * TP_STRUCT__entry(). You can think about it like a
306 * * regular C structure local variable definition.
307 * *
308 * * This is how the trace record is structured and will
309 * * be saved into the ring buffer. These are the fields
310 * * that will be exposed to user-space in
GeunSik Lim156f5a72009-06-02 15:01:37 +0900311 * * /sys/kernel/debug/tracing/events/<*>/format.
Steven Rostedt823f9122009-03-10 12:58:51 -0400312 * *
313 * * The declared 'local variable' is called '__entry'
314 * *
315 * * __field(pid_t, prev_prid) is equivalent to a standard declariton:
316 * *
317 * * pid_t prev_pid;
318 * *
319 * * __array(char, prev_comm, TASK_COMM_LEN) is equivalent to:
320 * *
321 * * char prev_comm[TASK_COMM_LEN];
322 * *
323 *
324 * TP_STRUCT__entry(
325 * __array( char, prev_comm, TASK_COMM_LEN )
326 * __field( pid_t, prev_pid )
327 * __field( int, prev_prio )
328 * __array( char, next_comm, TASK_COMM_LEN )
329 * __field( pid_t, next_pid )
330 * __field( int, next_prio )
331 * ),
332 *
333 * *
334 * * Assign the entry into the trace record, by embedding
335 * * a full C statement block into TP_fast_assign(). You
336 * * can refer to the trace record as '__entry' -
337 * * otherwise you can put arbitrary C code in here.
338 * *
339 * * Note: this C code will execute every time a trace event
340 * * happens, on an active tracepoint.
341 * *
342 *
Steven Rostedtef180122009-03-10 14:10:56 -0400343 * TP_fast_assign(
344 * memcpy(__entry->next_comm, next->comm, TASK_COMM_LEN);
345 * __entry->prev_pid = prev->pid;
346 * __entry->prev_prio = prev->prio;
Steven Rostedt823f9122009-03-10 12:58:51 -0400347 * memcpy(__entry->prev_comm, prev->comm, TASK_COMM_LEN);
348 * __entry->next_pid = next->pid;
Steven Rostedtef180122009-03-10 14:10:56 -0400349 * __entry->next_prio = next->prio;
Mathieu Desnoyersec6e7c32011-01-06 13:45:32 -0500350 * ),
Steven Rostedt823f9122009-03-10 12:58:51 -0400351 *
352 * *
353 * * Formatted output of a trace record via TP_printk().
354 * * This is how the tracepoint will appear under ftrace
355 * * plugins that make use of this tracepoint.
356 * *
357 * * (raw-binary tracing wont actually perform this step.)
358 * *
359 *
360 * TP_printk("task %s:%d [%d] ==> %s:%d [%d]",
361 * __entry->prev_comm, __entry->prev_pid, __entry->prev_prio,
362 * __entry->next_comm, __entry->next_pid, __entry->next_prio),
363 *
364 * );
365 *
366 * This macro construct is thus used for the regular printk format
367 * tracing setup, it is used to construct a function pointer based
368 * tracepoint callback (this is used by programmatic plugins and
369 * can also by used by generic instrumentation like SystemTap), and
370 * it is also used to expose a structured trace record in
GeunSik Lim156f5a72009-06-02 15:01:37 +0900371 * /sys/kernel/debug/tracing/events/.
Josh Stone97419872009-08-24 14:43:13 -0700372 *
373 * A set of (un)registration functions can be passed to the variant
374 * TRACE_EVENT_FN to perform any (un)registration work.
Steven Rostedt823f9122009-03-10 12:58:51 -0400375 */
376
Ingo Molnar091ad362009-11-26 09:04:55 +0100377#define DECLARE_EVENT_CLASS(name, proto, args, tstruct, assign, print)
Steven Rostedtff038f52009-11-18 20:27:27 -0500378#define DEFINE_EVENT(template, name, proto, args) \
379 DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
Steven Rostedtf5abaa12013-06-20 11:44:44 -0400380#define DEFINE_EVENT_FN(template, name, proto, args, reg, unreg)\
381 DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
Steven Rostedte5bc9722009-11-18 20:36:26 -0500382#define DEFINE_EVENT_PRINT(template, name, proto, args, print) \
383 DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
Steven Rostedt287050d2010-12-02 16:46:18 -0500384#define DEFINE_EVENT_CONDITION(template, name, proto, \
385 args, cond) \
386 DECLARE_TRACE_CONDITION(name, PARAMS(proto), \
387 PARAMS(args), PARAMS(cond))
Steven Rostedtff038f52009-11-18 20:27:27 -0500388
Steven Rostedt30a8fec2009-03-10 12:41:38 -0400389#define TRACE_EVENT(name, proto, args, struct, assign, print) \
Steven Rostedtda4d0302009-03-09 17:14:30 -0400390 DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
Josh Stone97419872009-08-24 14:43:13 -0700391#define TRACE_EVENT_FN(name, proto, args, struct, \
392 assign, print, reg, unreg) \
393 DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
Steven Rostedt287050d2010-12-02 16:46:18 -0500394#define TRACE_EVENT_CONDITION(name, proto, args, cond, \
395 struct, assign, print) \
396 DECLARE_TRACE_CONDITION(name, PARAMS(proto), \
397 PARAMS(args), PARAMS(cond))
Steven Rostedt7cb2e3e2009-08-26 00:32:37 -0400398
Frederic Weisbecker1ed0c592010-11-18 01:46:57 +0100399#define TRACE_EVENT_FLAGS(event, flag)
400
Peter Zijlstrad5b5f392013-11-14 16:23:04 +0100401#define TRACE_EVENT_PERF_PERM(event, expr...)
402
Steven Rostedt7cb2e3e2009-08-26 00:32:37 -0400403#endif /* ifdef TRACE_EVENT (see note above) */