diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-07-26 14:41:09 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-07-29 08:03:43 -0400 |
commit | c093de6bd3c50d3dd597ff9fa5cf7a30acbb3eb7 (patch) | |
tree | b6f6d5b08c0f12e99e22d13cec30ae70791d2b6b /tools | |
parent | 0f58163c9d5702efbc242d144fd038e54b4c6ad0 (diff) |
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/include/uapi/linux/sched.h | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/tools/include/uapi/linux/sched.h b/tools/include/uapi/linux/sched.h index ed4ee170bee2..b3105ac1381a 100644 --- a/tools/include/uapi/linux/sched.h +++ b/tools/include/uapi/linux/sched.h | |||
@@ -2,6 +2,8 @@ | |||
2 | #ifndef _UAPI_LINUX_SCHED_H | 2 | #ifndef _UAPI_LINUX_SCHED_H |
3 | #define _UAPI_LINUX_SCHED_H | 3 | #define _UAPI_LINUX_SCHED_H |
4 | 4 | ||
5 | #include <linux/types.h> | ||
6 | |||
5 | /* | 7 | /* |
6 | * cloning flags: | 8 | * cloning flags: |
7 | */ | 9 | */ |
@@ -32,6 +34,20 @@ | |||
32 | #define CLONE_IO 0x80000000 /* Clone io context */ | 34 | #define CLONE_IO 0x80000000 /* Clone io context */ |
33 | 35 | ||
34 | /* | 36 | /* |
37 | * Arguments for the clone3 syscall | ||
38 | */ | ||
39 | struct clone_args { | ||
40 | __aligned_u64 flags; | ||
41 | __aligned_u64 pidfd; | ||
42 | __aligned_u64 child_tid; | ||
43 | __aligned_u64 parent_tid; | ||
44 | __aligned_u64 exit_signal; | ||
45 | __aligned_u64 stack; | ||
46 | __aligned_u64 stack_size; | ||
47 | __aligned_u64 tls; | ||
48 | }; | ||
49 | |||
50 | /* | ||
35 | * Scheduling policies | 51 | * Scheduling policies |
36 | */ | 52 | */ |
37 | #define SCHED_NORMAL 0 | 53 | #define SCHED_NORMAL 0 |
@@ -51,9 +67,21 @@ | |||
51 | #define SCHED_FLAG_RESET_ON_FORK 0x01 | 67 | #define SCHED_FLAG_RESET_ON_FORK 0x01 |
52 | #define SCHED_FLAG_RECLAIM 0x02 | 68 | #define SCHED_FLAG_RECLAIM 0x02 |
53 | #define SCHED_FLAG_DL_OVERRUN 0x04 | 69 | #define SCHED_FLAG_DL_OVERRUN 0x04 |
70 | #define SCHED_FLAG_KEEP_POLICY 0x08 | ||
71 | #define SCHED_FLAG_KEEP_PARAMS 0x10 | ||
72 | #define SCHED_FLAG_UTIL_CLAMP_MIN 0x20 | ||
73 | #define SCHED_FLAG_UTIL_CLAMP_MAX 0x40 | ||
74 | |||
75 | #define SCHED_FLAG_KEEP_ALL (SCHED_FLAG_KEEP_POLICY | \ | ||
76 | SCHED_FLAG_KEEP_PARAMS) | ||
77 | |||
78 | #define SCHED_FLAG_UTIL_CLAMP (SCHED_FLAG_UTIL_CLAMP_MIN | \ | ||
79 | SCHED_FLAG_UTIL_CLAMP_MAX) | ||
54 | 80 | ||
55 | #define SCHED_FLAG_ALL (SCHED_FLAG_RESET_ON_FORK | \ | 81 | #define SCHED_FLAG_ALL (SCHED_FLAG_RESET_ON_FORK | \ |
56 | SCHED_FLAG_RECLAIM | \ | 82 | SCHED_FLAG_RECLAIM | \ |
57 | SCHED_FLAG_DL_OVERRUN) | 83 | SCHED_FLAG_DL_OVERRUN | \ |
84 | SCHED_FLAG_KEEP_ALL | \ | ||
85 | SCHED_FLAG_UTIL_CLAMP) | ||
58 | 86 | ||
59 | #endif /* _UAPI_LINUX_SCHED_H */ | 87 | #endif /* _UAPI_LINUX_SCHED_H */ |