File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11
11
#define __USER_EXIT_INFO_H
12
12
13
13
struct user_exit_info {
14
- int type ;
14
+ int exit_type ;
15
15
char reason [128 ];
16
16
char msg [1024 ];
17
17
};
@@ -27,15 +27,15 @@ static inline void uei_record(struct user_exit_info *uei,
27
27
bpf_probe_read_kernel_str (uei -> reason , sizeof (uei -> reason ), ei -> reason );
28
28
bpf_probe_read_kernel_str (uei -> msg , sizeof (uei -> msg ), ei -> msg );
29
29
/* use __sync to force memory barrier */
30
- __sync_val_compare_and_swap (& uei -> type , uei -> type , ei -> type );
30
+ __sync_val_compare_and_swap (& uei -> exit_type , uei -> exit_type , ei -> type );
31
31
}
32
32
33
33
#else /* !__bpf__ */
34
34
35
35
static inline bool uei_exited (struct user_exit_info * uei )
36
36
{
37
37
/* use __sync to force memory barrier */
38
- return __sync_val_compare_and_swap (& uei -> type , -1 , -1 );
38
+ return __sync_val_compare_and_swap (& uei -> exit_type , -1 , -1 );
39
39
}
40
40
41
41
static inline void uei_print (const struct user_exit_info * uei )
You can’t perform that action at this time.
0 commit comments