#!/bin/sh export_top_env() { export suite='nvml' export testcase='nvml' export category='functional' export group='obj' export test='pmem' export job_origin='/lkp/lkp/src/allot/rand/vm-lkp-hsw01-1G/nvml.yaml' export testbox='vm-lkp-hsw01-1G-10' export tbox_group='vm-lkp-hsw01-1G' export mount_option='dax' export kconfig='x86_64-lkp' export compiler='gcc-7' export queue='bisect' export branch='linus/master' export commit='3072e413e305e353cd4654f8a57d953b66e85bf3' export submit_id='5a31efca0b9a936e3b37f7b1' export job_file='/lkp/scheduled/vm-lkp-hsw01-1G-10/nvml-obj-pmem-1-ext4-dax-debian-x86_64-2017-02-07.cgz-3072e413e305e353cd4654f8a57d953b66e85bf3-20171214-28219-g1oopv-0.yaml' export id='5859b79af3c5b177b33a43d1c9f45d4ade5c58be' export model='qemu-system-x86_64 -enable-kvm -cpu host' export nr_vm=10 export nr_cpu=2 export memory='1G' export rootfs='debian-x86_64-2017-02-07.cgz' export need_kconfig='CONFIG_NVDIMM_PFN=y CONFIG_FS_DAX=y CONFIG_KVM_GUEST=y CONFIG_LIBNVDIMM CONFIG_BTT CONFIG_BLK_DEV_PMEM CONFIG_X86_PMEM_LEGACY CONFIG_EXT4_FS' export enqueue_time='2017-12-14 11:28:11 +0800' export _id='5a31efca0b9a936e3b37f7b1' export _rt='/result/nvml/obj-pmem-1-ext4-dax/vm-lkp-hsw01-1G/debian-x86_64-2017-02-07.cgz/x86_64-lkp/gcc-7/3072e413e305e353cd4654f8a57d953b66e85bf3' export user='lkp' export result_root='/result/nvml/obj-pmem-1-ext4-dax/vm-lkp-hsw01-1G/debian-x86_64-2017-02-07.cgz/x86_64-lkp/gcc-7/3072e413e305e353cd4654f8a57d953b66e85bf3/0' export LKP_SERVER='inn' export max_uptime=3600 export initrd='/osimage/debian/debian-x86_64-2017-02-07.cgz' export bootloader_append='root=/dev/ram0 user=lkp job=/lkp/scheduled/vm-lkp-hsw01-1G-10/nvml-obj-pmem-1-ext4-dax-debian-x86_64-2017-02-07.cgz-3072e413e305e353cd4654f8a57d953b66e85bf3-20171214-28219-g1oopv-0.yaml ARCH=x86_64 kconfig=x86_64-lkp branch=linus/master commit=3072e413e305e353cd4654f8a57d953b66e85bf3 BOOT_IMAGE=/pkg/linux/x86_64-lkp/gcc-7/3072e413e305e353cd4654f8a57d953b66e85bf3/vmlinuz-4.13.0-09235-g3072e41 memmap=32G!4G max_uptime=3600 RESULT_ROOT=/result/nvml/obj-pmem-1-ext4-dax/vm-lkp-hsw01-1G/debian-x86_64-2017-02-07.cgz/x86_64-lkp/gcc-7/3072e413e305e353cd4654f8a57d953b66e85bf3/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-lkp/gcc-7/3072e413e305e353cd4654f8a57d953b66e85bf3/modules.cgz' export bm_initrd='/osimage/pkg/debian-x86_64-2017-02-07.cgz/nvml-x86_64-73981c71_2017-09-22.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-lkp/gcc-7/3072e413e305e353cd4654f8a57d953b66e85bf3/vmlinuz-4.13.0-09235-g3072e41' export dequeue_time='2017-12-14 11:34:44 +0800' export job_initrd='/lkp/scheduled/vm-lkp-hsw01-1G-10/nvml-obj-pmem-1-ext4-dax-debian-x86_64-2017-02-07.cgz-3072e413e305e353cd4654f8a57d953b66e85bf3-20171214-28219-g1oopv-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_pmem=1 $LKP_SRC/setup/disk run_setup fs='ext4' $LKP_SRC/setup/fs run_setup bp_memmap='32G!4G' $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 nvml } extract_stats() { $LKP_SRC/stats/wrapper nvml $LKP_SRC/stats/wrapper kmsg $LKP_SRC/stats/wrapper time nvml.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 } "$@"