mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
images: Add NSpids pstree descriptions
Add new fields to store NSpid, NSsid, NSpgid for task and NStid for threads. Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
parent
9018ff911d
commit
a04d413000
2 changed files with 18 additions and 6 deletions
|
|
@ -339,6 +339,9 @@ int dump_pstree(struct pstree_item *root_item)
|
|||
e.pgid = vpgid(item);
|
||||
e.sid = vsid(item);
|
||||
e.n_threads = item->nr_threads;
|
||||
e.has_pid = true;
|
||||
e.has_pgid = true;
|
||||
e.has_sid = true;
|
||||
|
||||
e.threads = xmalloc(sizeof(e.threads[0]) * e.n_threads);
|
||||
if (!e.threads)
|
||||
|
|
|
|||
|
|
@ -1,9 +1,18 @@
|
|||
syntax = "proto2";
|
||||
|
||||
message pstree_entry {
|
||||
required uint32 pid = 1;
|
||||
required uint32 ppid = 2;
|
||||
required uint32 pgid = 3;
|
||||
required uint32 sid = 4;
|
||||
repeated uint32 threads = 5;
|
||||
message ns_tid {
|
||||
repeated uint32 tid = 1;
|
||||
}
|
||||
|
||||
message pstree_entry {
|
||||
optional uint32 pid = 1;
|
||||
required uint32 ppid = 2; /* Pid of parent in pid_ns NS_ROOT */
|
||||
optional uint32 pgid = 3;
|
||||
optional uint32 sid = 4;
|
||||
repeated uint32 threads = 5;
|
||||
|
||||
repeated uint32 ns_pid = 6;
|
||||
repeated uint32 ns_pgid = 7;
|
||||
repeated uint32 ns_sid = 8;
|
||||
repeated ns_tid tids = 9;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue