2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-09-03 15:55:53 +00:00

core: Support task scheduler policies and priorities

No magic here, just fetch info using getpriority and sched_getxxx calls.
Good news is that the mentioned syscalls take pid as argument and do work
with it, i.e. -- no need in parasite help here.

Restore is splitted into prep -- copy sched bits from image on restorer
args -- and the restore itself. It's done to avoid restoring tasks info
with IDLE priority ;) To make restorer not-fail sched bits are validated
for sanity on prep stage.

Minimal sanity test is also there.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2012-10-17 00:23:25 +04:00
parent 33c0add242
commit aa731ee1d7
10 changed files with 251 additions and 0 deletions

View File

@@ -10,6 +10,7 @@
#include <sys/time.h>
#include <arpa/inet.h>
#include <sched.h>
#include "types.h"