1 /* SPDX-License-Identifier: GPL-2.0 */
2 
3 /* Stage 1 definitions for creating trace events */
4 
5 #undef __field
6 #define __field(type, item)		type	item;
7 
8 #undef __field_ext
9 #define __field_ext(type, item, filter_type)	type	item;
10 
11 #undef __field_struct
12 #define __field_struct(type, item)	type	item;
13 
14 #undef __field_struct_ext
15 #define __field_struct_ext(type, item, filter_type)	type	item;
16 
17 #undef __array
18 #define __array(type, item, len)	type	item[len];
19 
20 #undef __dynamic_array
21 #define __dynamic_array(type, item, len) u32 __data_loc_##item;
22 
23 #undef __string
24 #define __string(item, src) __dynamic_array(char, item, -1)
25 
26 #undef __string_len
27 #define __string_len(item, src, len) __dynamic_array(char, item, -1)
28 
29 #undef __vstring
30 #define __vstring(item, fmt, ap) __dynamic_array(char, item, -1)
31 
32 #undef __bitmask
33 #define __bitmask(item, nr_bits) __dynamic_array(char, item, -1)
34 
35 #undef __sockaddr
36 #define __sockaddr(field, len) __dynamic_array(u8, field, len)
37 
38 #undef __rel_dynamic_array
39 #define __rel_dynamic_array(type, item, len) u32 __rel_loc_##item;
40 
41 #undef __rel_string
42 #define __rel_string(item, src) __rel_dynamic_array(char, item, -1)
43 
44 #undef __rel_string_len
45 #define __rel_string_len(item, src, len) __rel_dynamic_array(char, item, -1)
46 
47 #undef __rel_bitmask
48 #define __rel_bitmask(item, nr_bits) __rel_dynamic_array(char, item, -1)
49 
50 #undef __rel_sockaddr
51 #define __rel_sockaddr(field, len) __rel_dynamic_array(u8, field, len)
52 
53 #undef TP_STRUCT__entry
54 #define TP_STRUCT__entry(args...) args
55