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_hex_dump
26 #undef __get_buf
27 
28 /*
29  * The below is not executed in the kernel. It is only what is
30  * displayed in the print format for userspace to parse.
31  */
32 #undef __print_ns_to_secs
33 #define __print_ns_to_secs(val) (val) / 1000000000UL
34 
35 #undef __print_ns_without_secs
36 #define __print_ns_without_secs(val) (val) % 1000000000UL
37 
38 #undef TP_printk
39 #define TP_printk(fmt, args...) "\"" fmt "\", "  __stringify(args)
40