AI 145592: Fixed the tracedmdump() bash function to use the correct path for the vmlinux-qemu file.
BUG=1630077
Automated import of CL 145592
diff --git a/envsetup.sh b/envsetup.sh
index d15abcb..f8f20ab 100644
--- a/envsetup.sh
+++ b/envsetup.sh
@@ -817,7 +817,7 @@
return
fi
local prebuiltdir=$(getprebuilt)
- local KERNEL=$T/prebuilt/android-arm/vmlinux-qemu
+ local KERNEL=$T/prebuilt/android-arm/kernel/vmlinux-qemu
local TRACE=$1
if [ ! "$TRACE" ] ; then
@@ -825,6 +825,11 @@
return
fi
+ if [ ! -r "$KERNEL" ] ; then
+ echo "Error: cannot find kernel: '$KERNEL'"
+ return
+ fi
+
local BASETRACE=$(basename $TRACE)
if [ "$BASETRACE" = "$TRACE" ] ; then
TRACE=$ANDROID_PRODUCT_OUT/traces/$TRACE