From: Maynard J. <may...@us...> - 2007-10-18 21:07:48
|
Update of /cvsroot/oprofile/oprofile/utils In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv25678/utils Modified Files: Tag: JIT_SUPPORT opcontrol Log Message: Fix issues with incomplete jit dumpfiles Index: opcontrol =================================================================== RCS file: /cvsroot/oprofile/oprofile/utils/opcontrol,v retrieving revision 1.140.2.3 retrieving revision 1.140.2.4 diff -u -p -d -r1.140.2.3 -r1.140.2.4 --- opcontrol 18 Oct 2007 17:56:59 -0000 1.140.2.3 +++ opcontrol 18 Oct 2007 21:07:36 -0000 1.140.2.4 @@ -1513,8 +1513,11 @@ do_jit2elf() { local user=`stat -c"%U" "$jitdump"`; echo found jitdump "$jitdump", producing ELF "$dirname"/"$pid".jo; su "$user" -c "$OPJITCONV $starttime $endtime $jitdump $JITDIR/$pid.jo"; - chmod 600 "$JITDIR"/"$pid".jo; - mv "$JITDIR"/$pid.jo "$dirname"/"$pid".jo; + # An incomplete jitdump file may result in no .jo file created + if test -f "$JITDIR"/"$pid".jo; then + chmod 600 "$JITDIR"/"$pid".jo; + mv "$JITDIR"/$pid.jo "$dirname"/"$pid".jo; + fi fi done prep_jitdump; |