From 169113bb626eb213f34ad27dcc5988928998cbf4 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 12 Oct 2021 19:19:20 +0200 Subject: sys/linux: add prctl(PR_SCHED_CORE) --- sys/linux/prctl.txt | 5 +++++ sys/linux/prctl.txt.const | 6 ++++++ 2 files changed, 11 insertions(+) (limited to 'sys/linux') 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 +include include include include @@ -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 -- cgit mrf-deployment