Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools headers UAPI: Sync sched.h with the kernel

To get the changes in:

a509a7cd7974 ("sched/uclamp: Extend sched_setattr() to support utilization clamping")
1d6362fa0cfc ("sched/core: Allow sched_setattr() to use the current policy")
7f192e3cd316 ("fork: add clone3")

And silence this perf build warning:

Warning: Kernel ABI header at 'tools/include/uapi/linux/sched.h' differs from latest version at 'include/uapi/linux/sched.h'
diff -u tools/include/uapi/linux/sched.h include/uapi/linux/sched.h

No changes in tools/ due to the above.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Christian Brauner <christian@brauner.io>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Luis Cláudio Gonçalves <lclaudio@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Patrick Bellasi <patrick.bellasi@arm.com>
Link: https://lkml.kernel.org/n/tip-mtrpsjrux5hgyr5uf8l1aa46@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

+29 -1
+29 -1
tools/include/uapi/linux/sched.h
··· 2 2 #ifndef _UAPI_LINUX_SCHED_H 3 3 #define _UAPI_LINUX_SCHED_H 4 4 5 + #include <linux/types.h> 6 + 5 7 /* 6 8 * cloning flags: 7 9 */ ··· 34 32 #define CLONE_IO 0x80000000 /* Clone io context */ 35 33 36 34 /* 35 + * Arguments for the clone3 syscall 36 + */ 37 + struct clone_args { 38 + __aligned_u64 flags; 39 + __aligned_u64 pidfd; 40 + __aligned_u64 child_tid; 41 + __aligned_u64 parent_tid; 42 + __aligned_u64 exit_signal; 43 + __aligned_u64 stack; 44 + __aligned_u64 stack_size; 45 + __aligned_u64 tls; 46 + }; 47 + 48 + /* 37 49 * Scheduling policies 38 50 */ 39 51 #define SCHED_NORMAL 0 ··· 67 51 #define SCHED_FLAG_RESET_ON_FORK 0x01 68 52 #define SCHED_FLAG_RECLAIM 0x02 69 53 #define SCHED_FLAG_DL_OVERRUN 0x04 54 + #define SCHED_FLAG_KEEP_POLICY 0x08 55 + #define SCHED_FLAG_KEEP_PARAMS 0x10 56 + #define SCHED_FLAG_UTIL_CLAMP_MIN 0x20 57 + #define SCHED_FLAG_UTIL_CLAMP_MAX 0x40 58 + 59 + #define SCHED_FLAG_KEEP_ALL (SCHED_FLAG_KEEP_POLICY | \ 60 + SCHED_FLAG_KEEP_PARAMS) 61 + 62 + #define SCHED_FLAG_UTIL_CLAMP (SCHED_FLAG_UTIL_CLAMP_MIN | \ 63 + SCHED_FLAG_UTIL_CLAMP_MAX) 70 64 71 65 #define SCHED_FLAG_ALL (SCHED_FLAG_RESET_ON_FORK | \ 72 66 SCHED_FLAG_RECLAIM | \ 73 - SCHED_FLAG_DL_OVERRUN) 67 + SCHED_FLAG_DL_OVERRUN | \ 68 + SCHED_FLAG_KEEP_ALL | \ 69 + SCHED_FLAG_UTIL_CLAMP) 74 70 75 71 #endif /* _UAPI_LINUX_SCHED_H */