1 // SPDX-License-Identifier: GPL-2.0 2 #undef TRACE_SYSTEM 3 #define TRACE_SYSTEM test 4 5 #if !defined(_TRACE_TEST_H) || defined(TRACE_HEADER_MULTI_READ) 6 #define _TRACE_TEST_H 7 8 #include <linux/tracepoint.h> 9 10 TRACE_EVENT(ftrace_test_filter, 11 12 TP_PROTO(int a, int b, int c, int d, int e, int f, int g, int h), 13 14 TP_ARGS(a, b, c, d, e, f, g, h), 15 16 TP_STRUCT__entry( 17 __field(int, a) 18 __field(int, b) 19 __field(int, c) 20 __field(int, d) 21 __field(int, e) 22 __field(int, f) 23 __field(int, g) 24 __field(int, h) 25 ), 26 27 TP_fast_assign( 28 __entry->a = a; 29 __entry->b = b; 30 __entry->c = c; 31 __entry->d = d; 32 __entry->e = e; 33 __entry->f = f; 34 __entry->g = g; 35 __entry->h = h; 36 ), 37 38 TP_printk("a %d, b %d, c %d, d %d, e %d, f %d, g %d, h %d", 39 __entry->a, __entry->b, __entry->c, __entry->d, 40 __entry->e, __entry->f, __entry->g, __entry->h) 41 ); 42 43 #endif /* _TRACE_TEST_H || TRACE_HEADER_MULTI_READ */ 44 45 #undef TRACE_INCLUDE_PATH 46 #undef TRACE_INCLUDE_FILE 47 #define TRACE_INCLUDE_PATH . 48 #define TRACE_INCLUDE_FILE trace_events_filter_test 49 50 /* This part must be outside protection */ 51 #include <trace/define_trace.h> 52