diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2021-10-12 19:19:20 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2021-10-13 08:49:25 +0200 |
| commit | 169113bb626eb213f34ad27dcc5988928998cbf4 (patch) | |
| tree | 1fd7457eccf1c70644c4bed06379a912b7be86d7 /sys/linux | |
| parent | 9ccfa6cfcceb6981f543e295c1429817ad836a6b (diff) | |
sys/linux: add prctl(PR_SCHED_CORE)
Diffstat (limited to 'sys/linux')
| -rw-r--r-- | sys/linux/prctl.txt | 5 | ||||
| -rw-r--r-- | sys/linux/prctl.txt.const | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/sys/linux/prctl.txt b/sys/linux/prctl.txt index bbae46c62..c5dbee017 100644 --- a/sys/linux/prctl.txt +++ b/sys/linux/prctl.txt @@ -2,6 +2,7 @@ # Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. include <linux/errno.h> +include <linux/pid.h> include <linux/sched/coredump.h> include <uapi/linux/prctl.h> include <uapi/linux/seccomp.h> @@ -158,6 +159,10 @@ prctl$PR_GET_IO_FLUSHER(option const[PR_GET_IO_FLUSHER]) (breaks_returns, ignore prctl$PR_SET_SYSCALL_USER_DISPATCH_OFF(option const[PR_SET_SYSCALL_USER_DISPATCH], mode const[PR_SYS_DISPATCH_OFF]) (breaks_returns, ignore_return) prctl$PR_SET_SYSCALL_USER_DISPATCH_ON(option const[PR_SET_SYSCALL_USER_DISPATCH], mode const[PR_SYS_DISPATCH_ON], offset intptr, len intptr, selector ptr[in, bool8]) (breaks_returns, ignore_return) +prctl$PR_SCHED_CORE(option const[PR_SCHED_CORE], cmd intptr[0:PR_SCHED_CORE_MAX], pid pid, type flags[pid_type], uaddr ptr[out, int64, opt]) (breaks_returns, ignore_return) + +pid_type = PIDTYPE_PID, PIDTYPE_TGID, PIDTYPE_PGID, PIDTYPE_SID + arch_prctl$ARCH_GET_FS(code const[ARCH_GET_FS], arg ptr[out, intptr]) arch_prctl$ARCH_GET_GS(code const[ARCH_GET_GS], arg ptr[out, intptr]) arch_prctl$ARCH_SET_GS(code const[ARCH_SET_GS], arg ptr[out, intptr]) diff --git a/sys/linux/prctl.txt.const b/sys/linux/prctl.txt.const index b74d05a0a..a939aa1bb 100644 --- a/sys/linux/prctl.txt.const +++ b/sys/linux/prctl.txt.const @@ -10,6 +10,10 @@ ARCH_SET_CPUID = 4114, arm:arm64:mips64le:ppc64le:riscv64:s390x:??? ARCH_SET_FS = 4098, arm:arm64:mips64le:ppc64le:riscv64:s390x:??? ARCH_SET_GS = 4097, arm:arm64:mips64le:ppc64le:riscv64:s390x:??? CAP_LAST_CAP = 40 +PIDTYPE_PGID = 2 +PIDTYPE_PID = 0 +PIDTYPE_SID = 3 +PIDTYPE_TGID = 1 PR_CAPBSET_DROP = 24 PR_CAPBSET_READ = 23 PR_CAP_AMBIENT = 47 @@ -74,6 +78,8 @@ PR_PAC_APGAKEY = 16 PR_PAC_APIAKEY = 1 PR_PAC_APIBKEY = 2 PR_PAC_RESET_KEYS = 54 +PR_SCHED_CORE = 62 +PR_SCHED_CORE_MAX = 4 PR_SET_CHILD_SUBREAPER = 36 PR_SET_DUMPABLE = 4 PR_SET_ENDIAN = 20 |
