[CRIU] [PATCH] cr-dump: show virtual PID-s in a log file
Andrey Vagin
avagin at openvz.org
Fri Nov 23 03:14:21 EST 2012
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
cr-dump.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/cr-dump.c b/cr-dump.c
index a071e3c..141caca 100644
--- a/cr-dump.c
+++ b/cr-dump.c
@@ -1321,8 +1321,8 @@ static int dump_task_thread(struct parasite_ctl *parasite_ctl, struct pid *tid)
}
core->thread_core->has_blk_sigset = true;
- pr_info("%d: tid_address=%p sig_blocked=0x%lx\n", pid, taddr,
- core->thread_core->blk_sigset);
+ pr_info("%d: virt_pid=%d tid_address=%p sig_blocked=0x%lx\n", pid,
+ tid->virt, taddr, core->thread_core->blk_sigset);
core->thread_info->clear_tid_addr = (u64) taddr;
ret = dump_sched_info(pid, core->thread_core);
@@ -1542,6 +1542,9 @@ static int dump_one_task(struct pstree_item *item)
item->sid = misc.sid;
item->pgid = misc.pgid;
+ pr_info("sid=%d pgid=%d pid=%d\n",
+ item->sid, item->pgid, item->pid.virt);
+
ret = -1;
cr_fdset = cr_task_fdset_open(item->pid.virt, O_DUMP);
if (!cr_fdset)
--
1.7.11.7
More information about the CRIU
mailing list