From a9884453e283ed7dd8ec6c32c7385b5d0e626bf0 Mon Sep 17 00:00:00 2001 From: Dominique Martinet Date: Wed, 30 Jan 2019 16:15:40 +0900 Subject: [PATCH] vmcore2mckdump: make arm-compatible, 'fix' timeout Change-Id: Icdb42ff47d9dff5c6a818cb8c9ae94d183b19569 Fujitsu: POSTK_DEBUG_ARCH_DEP_93 Fujitsu: POSTK_DEBUG_ARCH_DEP_102 --- executer/user/vmcore2mckdump.in | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/executer/user/vmcore2mckdump.in b/executer/user/vmcore2mckdump.in index 1e41b0e9..5bafbae7 100644 --- a/executer/user/vmcore2mckdump.in +++ b/executer/user/vmcore2mckdump.in @@ -14,12 +14,22 @@ if [ ! -f "$INFILE" ]; then exit 1 fi +ARCH_NAME=@ARCH@ +if [ "X$ARCH_NAME" = "X" ]; then + echo "ARCH_NAME is empty." + exit 1 +fi + +if [ "$ARCH_NAME" = "x86_64" ]; then + ARCH_NAME=x86 +fi + /usr/bin/expect -c " -set timeout 60 +set timeout 300 spawn /usr/bin/crash $VMLINUX $INFILE expect \"crash>\" -send \"mod -s ihk_smp_x86 $INSTALLDIR/kmod/ihk-smp-x86.ko\n\" +send \"mod -s ihk_smp_${ARCH_NAME} $INSTALLDIR/kmod/ihk-smp-${ARCH_NAME}.ko\n\" expect \"crash>\" send \"extend $INSTALLDIR/lib/ldump2mcdump.so\n\"