1 /* SPDX-License-Identifier: GPL-2.0 */
2 
3 /* Stage 7 definitions for creating trace events */
4 
5 #undef __entry
6 #define __entry REC
7 
8 #undef __print_flags
9 #undef __print_symbolic
10 #undef __print_hex
11 #undef __print_hex_str
12 #undef __get_dynamic_array
13 #undef __get_dynamic_array_len
14 #undef __get_str
15 #undef __get_bitmask
16 #undef __get_cpumask
17 #undef __get_sockaddr
18 #undef __get_rel_dynamic_array
19 #undef __get_rel_dynamic_array_len
20 #undef __get_rel_str
21 #undef __get_rel_bitmask
22 #undef __get_rel_cpumask
23 #undef __get_rel_sockaddr
24 #undef __print_array
25 #undef __print_dynamic_array
26 #undef __print_hex_dump
27 #undef __get_buf
28 
29 /*
30  * The below is not executed in the kernel. It is only what is
31  * displayed in the print format for userspace to parse.
32  */
33 #undef __print_ns_to_secs
34 #define __print_ns_to_secs(val) (val) / 1000000000UL
35 
36 #undef __print_ns_without_secs
37 #define __print_ns_without_secs(val) (val) % 1000000000UL
38 
39 #undef TP_printk
40 #define TP_printk(fmt, args...) "\"" fmt "\", "  __stringify(args)
41