#!/bin/sh export_top_env() { export testcase='cpu-hotplug' export category='functional' export job_origin='/lkp/lkp/src/allot/rand/vm-vp-1G/cpu-hotplug.yaml' export testbox='vm-vp-1G-4' export tbox_group='vm-vp-1G' export kconfig='x86_64-randconfig-s3-01241845' export compiler='gcc-6' export queue='bisect' export branch='linux-devel/devel-hourly-2017012413' export commit='acb04058de49458010c44bb35b849d45113fd668' export submit_id='58885ec90b9a937309c4b03a' export job_file='/lkp/scheduled/vm-vp-1G-4/cpu-hotplug-defaults-debian-x86_64-2016-08-31.cgz-acb04058de49458010c44bb35b849d45113fd668-20170125-29449-1f6ditc-0.yaml' export id='bed56c84d7bbef2a7e24298ac2e7d6b9094f7eb5' export model='qemu-system-x86_64 -enable-kvm -cpu Nehalem' export nr_vm=8 export nr_cpu=2 export memory='1G' export rootfs='debian-x86_64-2016-08-31.cgz' export hdd_partitions='/dev/vda /dev/vdb /dev/vdc /dev/vdd /dev/vde' export swap_partitions='/dev/vdf' export need_kconfig='CONFIG_KVM_GUEST=y' export ssh_base_port=23100 export pxe_user='wfg' export enqueue_time='2017-01-25 16:16:10 +0800' export _id='58885ec90b9a937309c4b03a' export user='wfg' export result_root='/result/cpu-hotplug/defaults/vm-vp-1G/debian-x86_64-2016-08-31.cgz/x86_64-randconfig-s3-01241845/gcc-6/acb04058de49458010c44bb35b849d45113fd668/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=wfg job=/lkp/scheduled/vm-vp-1G-4/cpu-hotplug-defaults-debian-x86_64-2016-08-31.cgz-acb04058de49458010c44bb35b849d45113fd668-20170125-29449-1f6ditc-0.yaml ARCH=x86_64 kconfig=x86_64-randconfig-s3-01241845 branch=linux-devel/devel-hourly-2017012413 commit=acb04058de49458010c44bb35b849d45113fd668 BOOT_IMAGE=/pkg/linux/x86_64-randconfig-s3-01241845/gcc-6/acb04058de49458010c44bb35b849d45113fd668/vmlinuz-4.10.0-rc3-00271-gacb0405 max_uptime=3600 RESULT_ROOT=/result/cpu-hotplug/defaults/vm-vp-1G/debian-x86_64-2016-08-31.cgz/x86_64-randconfig-s3-01241845/gcc-6/acb04058de49458010c44bb35b849d45113fd668/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 systemd.log_level=err ignore_loglevel earlyprintk=ttyS0,115200 console=ttyS0,115200 console=tty0 vga=normal rw' export lkp_initrd='/lkp/wfg/lkp-x86_64.cgz' export bm_initrd='/osimage/deps/debian-x86_64-2016-08-31.cgz/lkp_2016-11-15.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' export site='inn' export LKP_CGI_PORT=80 export LKP_CIFS_PORT=139 export kernel='/pkg/linux/x86_64-randconfig-s3-01241845/gcc-6/acb04058de49458010c44bb35b849d45113fd668/vmlinuz-4.10.0-rc3-00271-gacb0405' export dequeue_time='2017-01-25 16:38:16 +0800' export job_initrd='/lkp/scheduled/vm-vp-1G-4/cpu-hotplug-defaults-debian-x86_64-2016-08-31.cgz-acb04058de49458010c44bb35b849d45113fd668-20170125-29449-1f6ditc-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_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 $LKP_SRC/tests/wrapper cpu-hotplug } extract_stats() { $LKP_SRC/stats/wrapper kmsg $LKP_SRC/stats/wrapper time cpu-hotplug.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 } "$@"