2 #define TRACE_SYSTEM benchmark
4 #if !defined(_TRACE_BENCHMARK_H) || defined(TRACE_HEADER_MULTI_READ)
5 #define _TRACE_BENCHMARK_H
7 #include <linux/tracepoint.h>
9 extern void trace_benchmark_reg(void);
10 extern void trace_benchmark_unreg(void);
12 #define BENCHMARK_EVENT_STRLEN 128
14 TRACE_EVENT_FN(benchmark_event,
16 TP_PROTO(const char *str),
21 __array( char, str, BENCHMARK_EVENT_STRLEN )
25 memcpy(__entry->str, str, BENCHMARK_EVENT_STRLEN);
28 TP_printk("%s", __entry->str),
30 trace_benchmark_reg, trace_benchmark_unreg
33 #endif /* _TRACE_BENCHMARK_H */
35 #undef TRACE_INCLUDE_FILE
36 #undef TRACE_INCLUDE_PATH
37 #define TRACE_INCLUDE_PATH .
38 #define TRACE_INCLUDE_FILE trace_benchmark
40 /* This part must be outside protection */
41 #include <trace/define_trace.h>