• Pavel Emelyanov's avatar
    core: Support task scheduler policies and priorities · aa731ee1
    Pavel Emelyanov authored
    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: 's avatarPavel Emelyanov <xemul@parallels.com>
    aa731ee1
Name
Last commit
Last update
..
Makefile Loading commit data...
core.proto Loading commit data...
creds.proto Loading commit data...
eventfd.proto Loading commit data...
eventpoll.proto Loading commit data...
fdinfo.proto Loading commit data...
fh.proto Loading commit data...
fifo.proto Loading commit data...
fown.proto Loading commit data...
fs.proto Loading commit data...
ghost-file.proto Loading commit data...
inotify.proto Loading commit data...
inventory.proto Loading commit data...
ipc-desc.proto Loading commit data...
ipc-msg.proto Loading commit data...
ipc-sem.proto Loading commit data...
ipc-shm.proto Loading commit data...
ipc-var.proto Loading commit data...
itimer.proto Loading commit data...
mm.proto Loading commit data...
mnt.proto Loading commit data...
netdev.proto Loading commit data...
packet-sock.proto Loading commit data...
pipe-data.proto Loading commit data...
pipe.proto Loading commit data...
pstree.proto Loading commit data...
regfile.proto Loading commit data...
remap-file-path.proto Loading commit data...
sa.proto Loading commit data...
signalfd.proto Loading commit data...
sk-inet.proto Loading commit data...
sk-opts.proto Loading commit data...
sk-packet.proto Loading commit data...
sk-unix.proto Loading commit data...
tcp-stream.proto Loading commit data...
tty.proto Loading commit data...
utsns.proto Loading commit data...
vma.proto Loading commit data...