From 59f7f7c241253293c25e001c9340f1deeb138311 Mon Sep 17 00:00:00 2001 From: Alice Frosi Date: Fri, 1 Sep 2023 10:16:36 +0200 Subject: cooker, seitan: add sched_setscheduler The sched_setscheduler requires to set the pid of the process we want to change the priority, this adds a new metadata for getting the target pid at runtime. Add a couple of syscalls for the scheduler in the string parsing. Signed-off-by: Alice Frosi --- operations.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'operations.c') diff --git a/operations.c b/operations.c index 0121023..cfb3a9c 100644 --- a/operations.c +++ b/operations.c @@ -130,6 +130,9 @@ static int get_metadata_value(uint32_t offset, pid_t pid) case GID_TARGET: return proc_state("Gid", pid); break; + case PID_TARGET: + return pid; + break; default: err("unrecognize metadata type"); } -- cgit v1.2.3