xref: /openbsd/sys/dev/pci/drm/include/linux/tracepoint.h (revision 76d0caae)
1 /* Public domain. */
2 
3 #ifndef _LINUX_TRACEPOINT_H
4 #define _LINUX_TRACEPOINT_H
5 
6 #include <linux/types.h>
7 
8 #define TP_PROTO(x...) x
9 
10 #define DEFINE_EVENT(template, name, proto, args) \
11 static inline void trace_##name(proto) {} \
12 static inline bool trace_##name##_enabled(void) { return false; }
13 
14 #define DEFINE_EVENT_PRINT(template, name, proto, args, print) \
15 static inline void trace_##name(proto) {}
16 
17 #define TRACE_EVENT(name, proto, args, tstruct, assign, print) \
18 static inline void trace_##name(proto) {} \
19 static inline bool trace_##name##_enabled(void) { return false; }
20 
21 #define TRACE_EVENT_CONDITION(name, proto, args, cond, tstruct, assign, print) \
22 static inline void trace_##name(proto) {}
23 
24 #define DECLARE_EVENT_CLASS(name, proto, args, tstruct, assign, print) \
25 static inline void trace_##name(proto) {}
26 
27 #endif
28