mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
img: Extend task image with state and exit code
Introduce 3 states we will have to work with: * alive for tasks sleeping or running * dead for zombies * stopped for stopped tasks. We cannot distinguish tasks in this state now, but with freezer cgroup this will become possible Signed-off-by: Pavel Emelyanov <xemul@parallels.com> Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
This commit is contained in:
committed by
Cyrill Gorcunov
parent
21bbfee919
commit
18aaad6164
@@ -223,6 +223,9 @@ struct ckpt_arch_entry {
|
||||
#define CKPT_CORE_SIZE (2 * 4096)
|
||||
|
||||
struct task_core_entry {
|
||||
u8 task_state;
|
||||
u8 pad[3];
|
||||
u32 exit_code;
|
||||
|
||||
u32 personality;
|
||||
u8 comm[TASK_COMM_LEN];
|
||||
@@ -248,6 +251,10 @@ struct core_entry {
|
||||
};
|
||||
} __packed;
|
||||
|
||||
#define TASK_ALIVE 0x1
|
||||
#define TASK_DEAD 0x2
|
||||
#define TASK_STOPPED 0x3 /* FIXME - implement */
|
||||
|
||||
#endif /* CONFIG_X86_64 */
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user