#!/bin/sh export_top_env() { export suite='ndctl' export testcase='ndctl' export category='functional' export job_origin='/lkp/lkp/.src-20180730-110158/jobs/ndctl.yaml' export testbox='lkp-ivb-d02' export tbox_group='lkp-ivb-d02' export need_kconfig='CONFIG_LIBNVDIMM=m CONFIG_BLK_DEV_PMEM=m CONFIG_BLK_DEV CONFIG_ND_BTT=m CONFIG_ND_PFN=m CONFIG_ND_BLK=m CONFIG_ACPI_NFIT=m CONFIG_DEV_DAX=m CONFIG_DEV_DAX_PMEM=m CONFIG_HAVE_DMA_CONTIGUOUS=y CONFIG_CMA=y CONFIG_DMA_CMA=y CONFIG_CMA_SIZE_MBYTES=200 CONFIG_ZONE_DEVICE=y CONFIG_MEMORY_HOTPLUG=y CONFIG_MEMORY_HOTREMOVE=y CONFIG_SPARSEMEM_VMEMMAP=y CONFIG_BTT=y CONFIG_NVDIMM_PFN=y CONFIG_NVDIMM_DAX CONFIG_TRANSPARENT_HUGEPAGE=y CONFIG_LIBNVDIMM=m CONFIG_BLK_DEV_PMEM=m CONFIG_BLK_DEV CONFIG_ND_BTT=m CONFIG_ND_PFN=m CONFIG_ND_BLK=m CONFIG_ACPI_NFIT=m CONFIG_DEV_DAX=m CONFIG_DEV_DAX_PMEM=m CONFIG_HAVE_DMA_CONTIGUOUS=y CONFIG_CMA=y CONFIG_DMA_CMA=y CONFIG_CMA_SIZE_MBYTES=200 CONFIG_ZONE_DEVICE=y CONFIG_MEMORY_HOTPLUG=y CONFIG_MEMORY_HOTREMOVE=y CONFIG_SPARSEMEM_VMEMMAP=y CONFIG_BTT=y CONFIG_NVDIMM_PFN=y CONFIG_NVDIMM_DAX CONFIG_TRANSPARENT_HUGEPAGE=y' export kconfig='x86_64-rhel-7.2' export compiler='gcc-7' export branch='linus/master' export name='/tmp/d20180730-20337-1ksotwz/ndctl-defaults.yaml' export commit='15d36fecd0bdc7510b70a0e5ec6671140b3fce0c' export user='lkp' export queue='bisect' export kernel_cmdline= export submit_id='5b5fd4b70b9a934f3df5a483' export job_file='/lkp/scheduled/lkp-ivb-d02/ndctl-defaults-debian-x86_64-2018-04-03.cgz-15d36fecd0bdc7510b70a0e5ec6671140b3fce0c-20180731-20285-oj2pqt-0.yaml' export id='811a681543075463f057b01a210e840547170b25' export model='Ivy Bridge' export nr_node=1 export nr_cpu=4 export memory='8G' export nr_hdd_partitions=1 export hdd_partitions='/dev/disk/by-id/ata-ST1000DM003-1CH162_Z1DBQSB0-part1' export swap_partitions='/dev/disk/by-id/ata-ST1000DM003-1CH162_Z1DBQSB0-part3' export rootfs_partition='/dev/disk/by-id/ata-ST1000DM003-1CH162_Z1DBQSB0-part4' export netconsole_port=6673 export brand='Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz' export rootfs='debian-x86_64-2018-04-03.cgz' export enqueue_time='2018-07-31 11:17:11 +0800' export _id='5b5fd4b70b9a934f3df5a483' export _rt='/result/ndctl/defaults/lkp-ivb-d02/debian-x86_64-2018-04-03.cgz/x86_64-rhel-7.2/gcc-7/15d36fecd0bdc7510b70a0e5ec6671140b3fce0c' export result_root='/result/ndctl/defaults/lkp-ivb-d02/debian-x86_64-2018-04-03.cgz/x86_64-rhel-7.2/gcc-7/15d36fecd0bdc7510b70a0e5ec6671140b3fce0c/0' export LKP_SERVER='inn' export max_uptime=3600 export initrd='/osimage/debian/debian-x86_64-2018-04-03.cgz' export bootloader_append='root=/dev/ram0 user=lkp job=/lkp/scheduled/lkp-ivb-d02/ndctl-defaults-debian-x86_64-2018-04-03.cgz-15d36fecd0bdc7510b70a0e5ec6671140b3fce0c-20180731-20285-oj2pqt-0.yaml ARCH=x86_64 kconfig=x86_64-rhel-7.2 branch=linus/master commit=15d36fecd0bdc7510b70a0e5ec6671140b3fce0c BOOT_IMAGE=/pkg/linux/x86_64-rhel-7.2/gcc-7/15d36fecd0bdc7510b70a0e5ec6671140b3fce0c/vmlinuz-4.18.0-rc6-00155-g15d36fe memmap=4G!8G max_uptime=3600 RESULT_ROOT=/result/ndctl/defaults/lkp-ivb-d02/debian-x86_64-2018-04-03.cgz/x86_64-rhel-7.2/gcc-7/15d36fecd0bdc7510b70a0e5ec6671140b3fce0c/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 console=tty0 earlyprintk=ttyS0,115200 console=ttyS0,115200 vga=normal rw' export modules_initrd='/pkg/linux/x86_64-rhel-7.2/gcc-7/15d36fecd0bdc7510b70a0e5ec6671140b3fce0c/modules.cgz' export bm_initrd='/osimage/deps/debian-x86_64-2018-04-03.cgz/run-ipconfig_2018-04-03.cgz,/osimage/deps/debian-x86_64-2018-04-03.cgz/lkp_2018-04-03.cgz,/osimage/deps/debian-x86_64-2018-04-03.cgz/rsync-rootfs_2018-04-03.cgz,/osimage/deps/debian-x86_64-2018-04-03.cgz/ndctl_2018-05-17.cgz,/osimage/pkg/debian-x86_64-2018-04-03.cgz/ndctl-x86_64-2841e76_2018-05-18.cgz,/osimage/deps/debian-x86_64-2018-04-03.cgz/hw_2016-11-15.cgz' export lkp_initrd='/lkp/lkp/lkp-x86_64.cgz' export site='inn' export LKP_CGI_PORT=80 export LKP_CIFS_PORT=139 export kernel='/pkg/linux/x86_64-rhel-7.2/gcc-7/15d36fecd0bdc7510b70a0e5ec6671140b3fce0c/vmlinuz-4.18.0-rc6-00155-g15d36fe' export dequeue_time='2018-07-31 11:41:36 +0800' export job_initrd='/lkp/scheduled/lkp-ivb-d02/ndctl-defaults-debian-x86_64-2018-04-03.cgz-15d36fecd0bdc7510b70a0e5ec6671140b3fce0c-20180731-20285-oj2pqt-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 bp_memmap='4G!8G' $LKP_SRC/setup/boot_params 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_test $LKP_SRC/tests/wrapper ndctl } extract_stats() { $LKP_SRC/stats/wrapper ndctl $LKP_SRC/stats/wrapper kmsg $LKP_SRC/stats/wrapper time ndctl.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 } "$@"