#!/bin/sh export_top_env() { export suite='kernel_selftests' export testcase='kernel_selftests' export category='functional' export need_cpu=2 export kernel_cmdline='erst_disable' export job_origin='/lkp/lkp/.src-20181122-230202/allot/cyclic:vm:linux-devel:devel-hourly/vm-lkp-hsw-4ep1-8G/kernel_selftests.yaml' export queue='bisect' export testbox='vm-lkp-hsw-4ep1-8G-21' export tbox_group='vm-lkp-hsw-4ep1-8G' export submit_id='5bf9bab00b9a9336f1ed3dd0' export job_file='/lkp/jobs/scheduled/vm-lkp-hsw-4ep1-8G-21/kernel_selftests-kselftests-02-debian-x86_64-2018-04-03.cgz-3327a9c46352f111697d93d6134e7bf37c6bffca-20181125-14065-1lwvqom-3.yaml' export id='206e4557d15ff574bb2bbcc66baa39fbc042a6b2' export model='qemu-system-x86_64 -enable-kvm -cpu host' export nr_vm=64 export nr_cpu=2 export memory='8G' export hdd_partitions='/dev/vda /dev/vdb /dev/vdc /dev/vdd /dev/vde /dev/vdf' export swap_partitions='/dev/vdg' export ssh_base_port=23300 export need_kernel_headers=true export need_kernel_selftests=true export need_kconfig='CONFIG_RUNTIME_TESTING_MENU=y CONFIG_TEST_FIRMWARE CONFIG_TEST_USER_COPY CONFIG_MEMORY_NOTIFIER_ERROR_INJECT CONFIG_MEMORY_HOTPLUG_SPARSE=y CONFIG_NOTIFIER_ERROR_INJECTION CONFIG_FTRACE=y CONFIG_TEST_BITMAP CONFIG_TEST_PRINTF CONFIG_TEST_STATIC_KEYS CONFIG_BPF_SYSCALL=y CONFIG_NET_CLS_BPF=m CONFIG_BPF_EVENTS=y CONFIG_TEST_BPF=m CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG=y CONFIG_HIST_TRIGGERS=y CONFIG_EMBEDDED=y CONFIG_GPIO_MOCKUP=y CONFIG_USERFAULTFD=y CONFIG_SYNC_FILE=y CONFIG_SW_SYNC=y CONFIG_MISC_FILESYSTEMS=y CONFIG_PSTORE=y CONFIG_PSTORE_PMSG=y CONFIG_PSTORE_CONSOLE=y CONFIG_PSTORE_RAM=m CONFIG_FW_LOADER_USER_HELPER_FALLBACK=y CONFIG_EXPERT=y CONFIG_CHECKPOINT_RESTORE=y CONFIG_EFIVAR_FS CONFIG_TEST_KMOD=m CONFIG_TEST_LKM=m CONFIG_XFS_FS=m CONFIG_TUN=m CONFIG_BTRFS_FS=m CONFIG_TEST_SYSCTL=m CONFIG_BPF_STREAM_PARSER=y CONFIG_CGROUP_BPF=y CONFIG_IPV6_MULTIPLE_TABLES=y CONFIG_NET_L3_MASTER_DEV=y CONFIG_NET_VRF=y CONFIG_NET_FOU=m CONFIG_NET_FOU_IP_TUNNELS=y CONFIG_MACSEC=y CONFIG_X86_INTEL_MPX=y CONFIG_RC_LOOPBACK CONFIG_IPV6_SEG6_LWTUNNEL=y CONFIG_LWTUNNEL=y CONFIG_WW_MUTEX_SELFTEST=m CONFIG_DRM_DEBUG_SELFTEST=m CONFIG_KVM_GUEST=y' export commit='3327a9c46352f111697d93d6134e7bf37c6bffca' export kconfig='x86_64-rhel-7.2' export compiler='gcc-7' export rootfs='debian-x86_64-2018-04-03.cgz' export enqueue_time='2018-11-25 04:55:12 +0800' export _id='5bf9bdc60b9a9336f1ed3dd3' export _rt='/result/kernel_selftests/kselftests-02/vm-lkp-hsw-4ep1-8G/debian-x86_64-2018-04-03.cgz/x86_64-rhel-7.2/gcc-7/3327a9c46352f111697d93d6134e7bf37c6bffca' export user='lkp' export head_commit='1a5904eb47a96840b8a8108af1fed78b7cc9e186' export base_commit='9ff01193a20d391e8dbce4403dd5ef87c7eaaca6' export branch='linux-devel/devel-hourly-2018112308' export result_root='/result/kernel_selftests/kselftests-02/vm-lkp-hsw-4ep1-8G/debian-x86_64-2018-04-03.cgz/x86_64-rhel-7.2/gcc-7/3327a9c46352f111697d93d6134e7bf37c6bffca/3' 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/jobs/scheduled/vm-lkp-hsw-4ep1-8G-21/kernel_selftests-kselftests-02-debian-x86_64-2018-04-03.cgz-3327a9c46352f111697d93d6134e7bf37c6bffca-20181125-14065-1lwvqom-3.yaml ARCH=x86_64 kconfig=x86_64-rhel-7.2 branch=linux-devel/devel-hourly-2018112308 commit=3327a9c46352f111697d93d6134e7bf37c6bffca BOOT_IMAGE=/pkg/linux/x86_64-rhel-7.2/gcc-7/3327a9c46352f111697d93d6134e7bf37c6bffca/vmlinuz-4.20.0-rc1-00121-g3327a9c erst_disable max_uptime=3600 RESULT_ROOT=/result/kernel_selftests/kselftests-02/vm-lkp-hsw-4ep1-8G/debian-x86_64-2018-04-03.cgz/x86_64-rhel-7.2/gcc-7/3327a9c46352f111697d93d6134e7bf37c6bffca/3 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/3327a9c46352f111697d93d6134e7bf37c6bffca/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/kernel_selftests_2018-11-25.cgz,/osimage/pkg/debian-x86_64-2018-04-03.cgz/kernel_selftests-x86_64-7c98a4261827_2018-11-25.cgz' export linux_headers_initrd='/pkg/linux/x86_64-rhel-7.2/gcc-7/3327a9c46352f111697d93d6134e7bf37c6bffca/linux-headers.cgz' export linux_selftests_initrd='/pkg/linux/x86_64-rhel-7.2/gcc-7/3327a9c46352f111697d93d6134e7bf37c6bffca/linux-selftests.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/3327a9c46352f111697d93d6134e7bf37c6bffca/vmlinuz-4.20.0-rc1-00121-g3327a9c' export dequeue_time='2018-11-25 06:05:52 +0800' export job_initrd='/lkp/jobs/scheduled/vm-lkp-hsw-4ep1-8G-21/kernel_selftests-kselftests-02-debian-x86_64-2018-04-03.cgz-3327a9c46352f111697d93d6134e7bf37c6bffca-20181125-14065-1lwvqom-3.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_test group='kselftests-02' $LKP_SRC/tests/wrapper kernel_selftests } extract_stats() { $LKP_SRC/stats/wrapper kernel_selftests $LKP_SRC/stats/wrapper kmsg $LKP_SRC/stats/wrapper time kernel_selftests.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 } "$@"