From: William C. <wc...@us...> - 2003-01-31 20:37:39
|
Update of /cvsroot/oprofile/oprofile/utils In directory sc8-pr-cvs1:/tmp/cvs-serv7500/utils Modified Files: opcontrol Log Message: utils/opcontrol(get_kernel_range): Match only .text segment. Index: opcontrol =================================================================== RCS file: /cvsroot/oprofile/oprofile/utils/opcontrol,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- opcontrol 30 Jan 2003 17:25:22 -0000 1.16 +++ opcontrol 31 Jan 2003 20:37:36 -0000 1.17 @@ -326,10 +326,10 @@ if test ! -z "$KERNEL_RANGE"; then return; fi - range_info=`objdump -h $VMLINUX | grep ".text "` + range_info=`objdump -h $VMLINUX | grep " .text "` tmp1=`echo $range_info | awk '{print $4}'` tmp_length=`echo $range_info | awk '{print $3}'` - tmp2=`objdump -h $VMLINUX --adjust-vma=0x$tmp_length | grep ".text " | awk '{print $4}'` + tmp2=`objdump -h $VMLINUX --adjust-vma=0x$tmp_length | grep " .text " | awk '{print $4}'` if test -z "$tmp1" -o -z "$tmp2"; then echo "Couldn't determine kernel start/end" >&2 |