Skip to content

Commit 94a5c60

Browse files
authored
Merge pull request raspberrypi#41 from dschatzberg/type_rename
scx: Rename "type" -> "exit_type"
2 parents a0943ea + 4c52836 commit 94a5c60

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/sched_ext/user_exit_info.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#define __USER_EXIT_INFO_H
1212

1313
struct user_exit_info {
14-
int type;
14+
int exit_type;
1515
char reason[128];
1616
char msg[1024];
1717
};
@@ -27,15 +27,15 @@ static inline void uei_record(struct user_exit_info *uei,
2727
bpf_probe_read_kernel_str(uei->reason, sizeof(uei->reason), ei->reason);
2828
bpf_probe_read_kernel_str(uei->msg, sizeof(uei->msg), ei->msg);
2929
/* 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);
3131
}
3232

3333
#else /* !__bpf__ */
3434

3535
static inline bool uei_exited(struct user_exit_info *uei)
3636
{
3737
/* 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);
3939
}
4040

4141
static inline void uei_print(const struct user_exit_info *uei)

0 commit comments

Comments
 (0)