8 #define SCHED_POLICY_MASK 0xff 10 #ifndef SCHED_DEADLINE 11 #define SCHED_DEADLINE 6 13 #ifndef SCHED_RESET_ON_FORK 14 #define SCHED_RESET_ON_FORK 0x40000000 20 const char *policies[] = {
21 "NORMAL",
"FIFO",
"RR",
"BATCH",
"ISO",
"IDLE",
"DEADLINE",
24 int policy = arg->
val,
29 printed = scnprintf(bf, size,
"%s", policies[policy]);
31 printed = scnprintf(bf, size,
"%#x", policy);
33 #define P_POLICY_FLAG(n) \ 34 if (flags & SCHED_##n) { \ 35 printed += scnprintf(bf + printed, size - printed, "|%s", #n); \ 36 flags &= ~SCHED_##n; \ 43 printed += scnprintf(bf + printed, size - printed,
"|%#x",
flags);
48 #define SCA_SCHED_POLICY syscall_arg__scnprintf_sched_policy
static size_t syscall_arg__scnprintf_sched_policy(char *bf, size_t size, struct syscall_arg *arg)
#define SCHED_POLICY_MASK