#!/bin/sh export_top_env() { export suite='kernel_selftests' export testcase='kernel_selftests' export category='functional' export need_memory='3G' export need_cpu=2 export kernel_cmdline='erst_disable' export job_origin='/lkp/lkp/.src-20200122-141733/allot/cyclic:p1:linux-devel:devel-hourly/lkp-skl-d01/kernel_selftests.yaml' export queue_cmdline_keys='branch commit queue_at_least_once' export queue='validate' export testbox='lkp-skl-d01' export tbox_group='lkp-skl-d01' export submit_id='5e36a142f50694e7e4f6da52' export job_file='/lkp/jobs/scheduled/lkp-skl-d01/kernel_selftests-kselftests-02-ucode=0xd6-debian-x86_64-20191114.cgz-c9ac3b69cfdbc46a0504fa353b5126827e4b0bdb-20200202-59364-1mcwwgo-3.yaml' export id='ca235ff49b1e316d84a1f719c104f343e65f2e46' export queuer_version='/lkp-src' export arch='x86_64' export model='Skylake' export nr_cpu=8 export memory='16G' export nr_hdd_partitions=1 export hdd_partitions='/dev/disk/by-id/ata-WDC_WD10EZEX-75WN4A0_WD-WCC6Y2JD9SLU-part1' export swap_partitions='/dev/disk/by-id/ata-WDC_WD10EZEX-75WN4A0_WD-WCC6Y2JD9SLU-part3' export rootfs_partition='/dev/disk/by-id/ata-WDC_WD10EZEX-75WN4A0_WD-WCC6Y2JD9SLU-part2' export brand='Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz' export cpu_info='skylake i7-6700' export bios_version='1.2.8' export commit='c9ac3b69cfdbc46a0504fa353b5126827e4b0bdb' export need_kconfig_hw='CONFIG_E1000E=y CONFIG_SATA_AHCI' export ucode='0xd6' 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_GPIOLIB=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_EXPERT=y CONFIG_CHECKPOINT_RESTORE=y CONFIG_EFI=y CONFIG_EFIVAR_FS CONFIG_TEST_KMOD=m CONFIG_TEST_LKM=m CONFIG_BLOCK=y 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_IP_ADVANCED_ROUTER=y CONFIG_IP_MULTIPLE_TABLES=y CONFIG_NET_VRF=y CONFIG_NET_FOU=m CONFIG_NET_FOU_IP_TUNNELS=y CONFIG_MACSEC=y CONFIG_RC_CORE=m ~ (4\.1[4-9]|4\.20|5\.) CONFIG_RC_DEVICES=y CONFIG_RC_LOOPBACK CONFIG_IPV6_SEG6_LWTUNNEL=y ~ v(4\.1[0-9]|4\.20|5\.) CONFIG_LWTUNNEL=y CONFIG_WW_MUTEX_SELFTEST=m ~ v(4\.1[1-9]|4\.20|5\.) CONFIG_DRM_DEBUG_SELFTEST=m ~ v(4\.1[8-9]|4\.20|5\.) CONFIG_TEST_LIVEPATCH=m ~ v(5\.[1-9]) CONFIG_LIRC=y CONFIG_RC_DECODERS=y CONFIG_IR_SHARP_DECODER=m CONFIG_ANDROID=y ~ v(3\.[3-9]|3\.1[0-9]|4\.|5\.) CONFIG_STAGING=y CONFIG_ION=y ~ v(3\.1[4-9]|4\.|5\.) CONFIG_ION_SYSTEM_HEAP=y ~ v(4\.1[2-9]|4\.20|5\.) CONFIG_MPLS_ROUTING=m ~ v(4\.[1-9]|4\.1[0-9]|4\.20|5\.) CONFIG_MPLS_IPTUNNEL=m ~ v(4\.[3-9]|4\.1[0-9]|4\.20|5\.) CONFIG_TEST_STRSCPY=m ~ v(5\.2$|5\.[3-9]) CONFIG_TEST_BLACKHOLE_DEV=m ~ v(5\.[3-9]) CONFIG_TEST_VMALLOC=m ~ v(5\.[1-9]) CONFIG_IR_IMON_DECODER=m ~ v(4\.1[7-9]|4\.20|5\.) CONFIG_POSIX_TIMERS=y ~ v(4\.1[0-9]|4\.20|5\.)' export kconfig='x86_64-rhel-7.6' export compiler='gcc-7' export rootfs='debian-x86_64-20191114.cgz' export enqueue_time='2020-02-02 18:15:36 +0800' export _id='5e36a14af50694e7e4f6da54' export _rt='/result/kernel_selftests/kselftests-02-ucode=0xd6/lkp-skl-d01/debian-x86_64-20191114.cgz/x86_64-rhel-7.6/gcc-7/c9ac3b69cfdbc46a0504fa353b5126827e4b0bdb' export user='lkp' export head_commit='f6bb0113debf02e4212a5b7bf4fcece24439b662' export base_commit='def9d2780727cec3313ed3522d0123158d87224d' export branch='linux-devel/devel-hourly-2020012210' export result_root='/result/kernel_selftests/kselftests-02-ucode=0xd6/lkp-skl-d01/debian-x86_64-20191114.cgz/x86_64-rhel-7.6/gcc-7/c9ac3b69cfdbc46a0504fa353b5126827e4b0bdb/3' export scheduler_version='/lkp/lkp/.src-20200202-162733' export LKP_SERVER='inn' export max_uptime=3600 export initrd='/osimage/debian/debian-x86_64-20191114.cgz' export bootloader_append='root=/dev/ram0 user=lkp job=/lkp/jobs/scheduled/lkp-skl-d01/kernel_selftests-kselftests-02-ucode=0xd6-debian-x86_64-20191114.cgz-c9ac3b69cfdbc46a0504fa353b5126827e4b0bdb-20200202-59364-1mcwwgo-3.yaml ARCH=x86_64 kconfig=x86_64-rhel-7.6 branch=linux-devel/devel-hourly-2020012210 commit=c9ac3b69cfdbc46a0504fa353b5126827e4b0bdb BOOT_IMAGE=/pkg/linux/x86_64-rhel-7.6/gcc-7/c9ac3b69cfdbc46a0504fa353b5126827e4b0bdb/vmlinuz-5.5.0-rc2-00007-gc9ac3b69cfdbc erst_disable max_uptime=3600 RESULT_ROOT=/result/kernel_selftests/kselftests-02-ucode=0xd6/lkp-skl-d01/debian-x86_64-20191114.cgz/x86_64-rhel-7.6/gcc-7/c9ac3b69cfdbc46a0504fa353b5126827e4b0bdb/3 LKP_SERVER=inn nokaslr 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.6/gcc-7/c9ac3b69cfdbc46a0504fa353b5126827e4b0bdb/modules.cgz' export bm_initrd='/osimage/deps/debian-x86_64-20180403.cgz/run-ipconfig_2018-04-03.cgz,/osimage/deps/debian-x86_64-20180403.cgz/lkp_2019-08-05.cgz,/osimage/deps/debian-x86_64-20180403.cgz/rsync-rootfs_2018-04-03.cgz,/osimage/deps/debian-x86_64-20180403.cgz/kernel_selftests_2020-01-14.cgz,/osimage/pkg/debian-x86_64-20180403.cgz/kernel_selftests-x86_64-c4f58629-1_2020-01-11.cgz,/osimage/deps/debian-x86_64-20180403.cgz/hw_2020-01-02.cgz' export linux_headers_initrd='/pkg/linux/x86_64-rhel-7.6/gcc-7/c9ac3b69cfdbc46a0504fa353b5126827e4b0bdb/linux-headers.cgz' export linux_selftests_initrd='/pkg/linux/x86_64-rhel-7.6/gcc-7/c9ac3b69cfdbc46a0504fa353b5126827e4b0bdb/linux-selftests.cgz' export lkp_initrd='/osimage/user/lkp/lkp-x86_64.cgz' export site='inn' export LKP_CGI_PORT=80 export LKP_CIFS_PORT=139 export last_kernel='4.20.0' export repeat_to=4 export schedule_notify_address= export queue_at_least_once=1 export kernel='/pkg/linux/x86_64-rhel-7.6/gcc-7/c9ac3b69cfdbc46a0504fa353b5126827e4b0bdb/vmlinuz-5.5.0-rc2-00007-gc9ac3b69cfdbc' export dequeue_time='2020-02-02 21:56:17 +0800' export job_initrd='/lkp/jobs/scheduled/lkp-skl-d01/kernel_selftests-kselftests-02-ucode=0xd6-debian-x86_64-20191114.cgz-c9ac3b69cfdbc46a0504fa353b5126827e4b0bdb-20200202-59364-1mcwwgo-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 meminfo 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() { export stats_part_begin= export stats_part_end= $LKP_SRC/stats/wrapper kernel_selftests $LKP_SRC/stats/wrapper kmsg $LKP_SRC/stats/wrapper meminfo $LKP_SRC/stats/wrapper time kernel_selftests.time $LKP_SRC/stats/wrapper dmesg $LKP_SRC/stats/wrapper kmsg $LKP_SRC/stats/wrapper last_state $LKP_SRC/stats/wrapper stderr $LKP_SRC/stats/wrapper time } "$@"