Linux 4.1.18
[linux/fpc-iii.git] / kernel / trace / trace_benchmark.h
blob3c1df1df4e29cb74dcd361c75aa54e764adba04e
1 #undef TRACE_SYSTEM
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),
18 TP_ARGS(str),
20 TP_STRUCT__entry(
21 __array( char, str, BENCHMARK_EVENT_STRLEN )
24 TP_fast_assign(
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>