* [PATCH][cr-tests] Have ps list all threads in application
@ 2009-12-11 4:08 Sukadev Bhattiprolu
0 siblings, 0 replies; only message in thread
From: Sukadev Bhattiprolu @ 2009-12-11 4:08 UTC (permalink / raw)
To: serue-r/Jw6+rmf7HQT0dZR+AlfA; +Cc: Containers
From: Sukadev Bhattiprolu <sukadev-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
Date: Tue, 8 Dec 2009 23:13:05 +0530
Subject: [PATCH 1/4] Have ps list all threads in application
Have ps list all threads in application
Signed-off-by: Sukadev Bhattiprolu <sukadev-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
---
process-tree/run-pthread1.sh | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/process-tree/run-pthread1.sh b/process-tree/run-pthread1.sh
index 800ff30..e616753 100755
--- a/process-tree/run-pthread1.sh
+++ b/process-tree/run-pthread1.sh
@@ -40,7 +40,7 @@ checkpoint()
ret=$?
if [ $ret -ne 0 ]; then
$ECHO "***** FAIL: Checkpoint of $pid failed"
- ps aux |grep $TEST_CMD >> $SCRIPT_LOG
+ ps -efL |grep $TEST_CMD >> $SCRIPT_LOG
exit 1;
fi
}
@@ -73,7 +73,7 @@ function create_container()
pid=`cat $TEST_PID_FILE`;
if [ "x$pid" == "x" ]; then
$ECHO "***** FAIL: Invalid container-init pid $pid"
- ps aux |grep $TEST_CMD >> $SCRIPT_LOG
+ ps -efL |grep $TEST_CMD >> $SCRIPT_LOG
exit 1
fi
$ECHO "Created container with pid $pid" >> $SCRIPT_LOG
@@ -93,7 +93,7 @@ function restart_container
if [ $ret -ne 0 ]; then
$ECHO "***** FAIL: Restart of $pid failed"
- ps aux |grep $TEST_CMD >> $SCRIPT_LOG
+ ps -efL |grep $TEST_CMD >> $SCRIPT_LOG
exit 1;
fi
}
@@ -160,7 +160,7 @@ while [ $cnt -lt 15 ]; do
$ECHO "\t- Done creating container, cinit-pid $pid"
wait_for_checkpoint_ready
- ps aux |grep $TEST_CMD >> $SCRIPT_LOG
+ ps -efL |grep $TEST_CMD >> $SCRIPT_LOG
# override default freezerdir
if [ -d $freezerdir ]; then
@@ -169,7 +169,7 @@ while [ $cnt -lt 15 ]; do
freezerdir=$freezermountpoint/$pid
freeze_pid $pid
- num_pids1=`ps aux |grep $TEST_CMD | wc -l`
+ num_pids1=`ps -efL |grep $TEST_CMD | wc -l`
create_fs_snapshot
@@ -189,8 +189,8 @@ while [ $cnt -lt 15 ]; do
sleep 3;
- num_pids2=`ps aux |grep $TEST_CMD | wc -l`
- ps aux |grep $TEST_CMD >> $SCRIPT_LOG
+ num_pids2=`ps -efL |grep $TEST_CMD | wc -l`
+ ps -efL |grep $TEST_CMD >> $SCRIPT_LOG
$ECHO "\t- num_pids1 $num_pids1, num_pids2 $num_pids2";
# ns_exec pid is parent-pid of restarted-container-init
--
1.6.0.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-12-11 4:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-11 4:08 [PATCH][cr-tests] Have ps list all threads in application Sukadev Bhattiprolu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.