xsk: Fix possible crash when multiple sockets are created
[sfrench/cifs-2.6.git] / include / trace / stages / stage7_defines.h
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_sockaddr
17 #undef __get_rel_dynamic_array
18 #undef __get_rel_dynamic_array_len
19 #undef __get_rel_str
20 #undef __get_rel_bitmask
21 #undef __get_rel_sockaddr
22 #undef __print_array
23 #undef __print_hex_dump
24
25 /*
26  * The below is not executed in the kernel. It is only what is
27  * displayed in the print format for userspace to parse.
28  */
29 #undef __print_ns_to_secs
30 #define __print_ns_to_secs(val) (val) / 1000000000UL
31
32 #undef __print_ns_without_secs
33 #define __print_ns_without_secs(val) (val) % 1000000000UL
34
35 #undef TP_printk
36 #define TP_printk(fmt, args...) "\"" fmt "\", "  __stringify(args)