jcs's openbsd hax
openbsd
at jcs 26 lines 781 B view raw
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) \ 11static inline void trace_##name(proto) {} \ 12static inline bool trace_##name##_enabled(void) { return false; } 13 14#define DEFINE_EVENT_PRINT(template, name, proto, args, print) \ 15static inline void trace_##name(proto) {} 16 17#define TRACE_EVENT(name, proto, args, tstruct, assign, print) \ 18static inline void trace_##name(proto) {} \ 19static inline bool trace_##name##_enabled(void) { return false; } 20 21#define TRACE_EVENT_CONDITION(name, proto, args, cond, tstruct, assign, print) \ 22static inline void trace_##name(proto) {} 23 24#define DECLARE_EVENT_CLASS(name, proto, args, tstruct, assign, print) 25 26#endif