#!/bin/sh export_top_env() { export suite='mce-test' export testcase='mce-test' export category='functional' export need_memory='2G' export test_case='HWPOISON-HARD' export job_origin='/lkp/jinw/src/jobs/mce-test.yaml' export queue='bisect' export testbox='lkp-sb03' export tbox_group='lkp-sb03' export branch='linus/master' export commit='23a003bfd23ea9ea0b7756b920e51f64b284b468' export submit_id='58f0d9d80b9a931505548ca4' export job_file='/lkp/scheduled/lkp-sb03/mce-test-1HDD-ext4-HWPOISON-HARD-single-debian-x86_64-2016-08-31.cgz-23a003bfd23ea9ea0b7756b920e51f64b284b468-20170414-5381-19g7cwk-0.yaml' export id='80798c47ce48cd2310567e9062cab4aa1715762b' export model='Sandy Bridge-EP' export nr_node=2 export nr_cpu=32 export memory='64G' export hdd_partitions='/dev/disk/by-id/ata-WDC_WD10EARS-00Y5B1_WD-WCAV5F059499-part3' export swap_partitions= export rootfs_partition='/dev/disk/by-id/ata-WDC_WD10EARS-00Y5B1_WD-WCAV5F059499-part4' export brand='Intel(R) Xeon(R) CPU E5-2680 0 @ 2.70GHz' export need_kconfig='CONFIG_X86_MCE=y CONFIG_X86_MCE_INTEL=y CONFIG_X86_MCE_INJECT CONFIG_MEMORY_FAILURE=y CONFIG_MEMCG_SWAP=y CONFIG_MEMCG=y CONFIG_SWAP=y CONFIG_HWPOISON_INJECT CONFIG_DEBUG_KERNEL CONFIG_PROC_FS=y CONFIG_HUGETLBFS=y CONFIG_HUGETLB_PAGE=y CONFIG_BLK_DEV_SD CONFIG_SCSI CONFIG_BLOCK=y CONFIG_SATA_AHCI CONFIG_SATA_AHCI_PLATFORM CONFIG_ATA CONFIG_PCI=y CONFIG_EXT4_FS' export user='jinw' export kconfig='x86_64-rhel-7.2' export compiler='gcc-6' export rootfs='debian-x86_64-2016-08-31.cgz' export enqueue_time='2017-04-14 22:16:57 +0800' export _id='58f0d9d80b9a931505548ca4' export result_root='/result/mce-test/1HDD-ext4-HWPOISON-HARD-single/lkp-sb03/debian-x86_64-2016-08-31.cgz/x86_64-rhel-7.2/gcc-6/23a003bfd23ea9ea0b7756b920e51f64b284b468/0' export LKP_SERVER='inn' export max_uptime=3600 export initrd='/osimage/debian/debian-x86_64-2016-08-31.cgz' export bootloader_append='root=/dev/ram0 user=jinw job=/lkp/scheduled/lkp-sb03/mce-test-1HDD-ext4-HWPOISON-HARD-single-debian-x86_64-2016-08-31.cgz-23a003bfd23ea9ea0b7756b920e51f64b284b468-20170414-5381-19g7cwk-0.yaml ARCH=x86_64 kconfig=x86_64-rhel-7.2 branch=linus/master commit=23a003bfd23ea9ea0b7756b920e51f64b284b468 BOOT_IMAGE=/pkg/linux/x86_64-rhel-7.2/gcc-6/23a003bfd23ea9ea0b7756b920e51f64b284b468/vmlinuz-4.5.0-00557-g23a003b max_uptime=3600 RESULT_ROOT=/result/mce-test/1HDD-ext4-HWPOISON-HARD-single/lkp-sb03/debian-x86_64-2016-08-31.cgz/x86_64-rhel-7.2/gcc-6/23a003bfd23ea9ea0b7756b920e51f64b284b468/0 LKP_SERVER=inn debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 net.ifnames=0 printk.devkmsg=on panic=-1 softlockup_panic=1 nmi_watchdog=panic oops=panic load_ramdisk=2 prompt_ramdisk=0 drbd.minor_count=8 systemd.log_level=err ignore_loglevel earlyprintk=ttyS0,115200 console=ttyS0,115200 console=tty0 vga=normal rw' export lkp_initrd='/lkp/jinw/lkp-x86_64.cgz' export modules_initrd='/pkg/linux/x86_64-rhel-7.2/gcc-6/23a003bfd23ea9ea0b7756b920e51f64b284b468/modules.cgz' export bm_initrd='/osimage/deps/debian-x86_64-2016-08-31.cgz/lkp_2017-04-01.cgz,/osimage/deps/debian-x86_64-2016-08-31.cgz/rsync-rootfs_2016-11-15.cgz,/osimage/deps/debian-x86_64-2016-08-31.cgz/run-ipconfig_2016-11-15.cgz,/osimage/deps/debian-x86_64-2016-08-31.cgz/fs_2016-11-15.cgz,/osimage/deps/debian-x86_64-2016-08-31.cgz/mce-test_2017-04-14.cgz,/osimage/pkg/debian-x86_64-2016-08-31.cgz/mce-test-x86_64_2017-04-14.cgz,/osimage/deps/debian-x86_64-2016-08-31.cgz/hw_2016-11-15.cgz' export site='inn' export LKP_CGI_PORT=80 export LKP_CIFS_PORT=139 export kernel='/pkg/linux/x86_64-rhel-7.2/gcc-6/23a003bfd23ea9ea0b7756b920e51f64b284b468/vmlinuz-4.5.0-00557-g23a003b' export dequeue_time='2017-04-14 22:22:04 +0800' export job_initrd='/lkp/scheduled/lkp-sb03/mce-test-1HDD-ext4-HWPOISON-HARD-single-debian-x86_64-2016-08-31.cgz-23a003bfd23ea9ea0b7756b920e51f64b284b468-20170414-5381-19g7cwk-0.cgz' [ -n "$LKP_SRC" ] || export LKP_SRC=/lkp/${user:-lkp}/src } run_job() { echo $$ > $TMP/run-job.pid . $LKP_SRC/lib/http.sh . $LKP_SRC/lib/job.sh . $LKP_SRC/lib/env.sh export_top_env run_setup nr_hdd=1 $LKP_SRC/setup/disk run_setup fs='ext4' $LKP_SRC/setup/fs run_monitor $LKP_SRC/monitors/wrapper kmsg run_monitor $LKP_SRC/monitors/wrapper heartbeat run_monitor $LKP_SRC/monitors/wrapper oom-killer run_monitor $LKP_SRC/monitors/plain/watchdog run_monitor $LKP_SRC/monitors/wrapper nfs-hang run_test test_mode='single' $LKP_SRC/tests/wrapper mce-test } extract_stats() { $LKP_SRC/stats/wrapper mce-test $LKP_SRC/stats/wrapper kmsg $LKP_SRC/stats/wrapper time mce-test.time $LKP_SRC/stats/wrapper time $LKP_SRC/stats/wrapper dmesg $LKP_SRC/stats/wrapper kmsg $LKP_SRC/stats/wrapper stderr $LKP_SRC/stats/wrapper last_state } "$@"