#!/bin/sh export_top_env() { export suite='kernel-selftests' export testcase='kernel-selftests' export category='functional' export need_memory='2G' export need_cpu=2 export kernel_cmdline='erst_disable' export job_origin='kernel-selftests-resctrl.yaml' export queue='validate' export testbox='lkp-csl-2sp9' export commit='32d4fd5751eadbe1823a37eb38df85ec5c8e6207' export branch='linus/master' export kconfig='x86_64-rhel-8.3-kselftests' export name='/cephfs/tmp/d20220611-81739-1egtr4m/kernel-selftests-resctrl.yaml' export tbox_group='lkp-csl-2sp9' export submit_id='62a50c25319ce72f58eea028' export job_file='/lkp/jobs/scheduled/lkp-csl-2sp9/kernel-selftests-resctrl-ucode=0x500320a-debian-11.1-x86_64-20220510.cgz-32d4fd5751eadbe1823a37eb38df85ec5c8e6207-20220612-12120-jkfy22-11.yaml' export id='655eb9f225948dc6abc822a92095dfc1b17d0c0e' export queuer_version='/zday/lkp' export model='Cascade Lake' export nr_node=2 export nr_cpu=88 export memory='128G' export nr_hdd_partitions=4 export nr_ssd_partitions=1 export hdd_partitions='/dev/disk/by-id/ata-ST4000NM0035-1V4107_ZC13Q1RD-part*' export ssd_partitions='/dev/disk/by-id/ata-INTEL_SSDSC2BB480G7_PHDV723200JX480BGN-part1' export rootfs_partition='/dev/disk/by-id/ata-INTEL_SSDSC2BB480G7_PHDV723200JX480BGN-part2' export brand='Intel(R) Xeon(R) Gold 6238M CPU @ 2.10GHz' export ucode='0x500320a' export need_kconfig_hw='{"I40E"=>"y"} SATA_AHCI' export need_kconfig=\{\"X86_CPU_RESCTRL\"\=\>\"y\"\}' '\{\"PROC_CPU_RESCTRL\"\=\>\"y\"\} export rootfs='debian-11.1-x86_64-20220510.cgz' export initrds='linux_headers linux_selftests' export enqueue_time='2022-06-12 05:41:57 +0800' export compiler='gcc-11' export _id='62a50c26319ce72f58eea02e' export _rt='/result/kernel-selftests/resctrl-ucode=0x500320a/lkp-csl-2sp9/debian-11.1-x86_64-20220510.cgz/x86_64-rhel-8.3-kselftests/gcc-11/32d4fd5751eadbe1823a37eb38df85ec5c8e6207' export user='lkp' export LKP_SERVER='internal-lkp-server' export result_root='/result/kernel-selftests/resctrl-ucode=0x500320a/lkp-csl-2sp9/debian-11.1-x86_64-20220510.cgz/x86_64-rhel-8.3-kselftests/gcc-11/32d4fd5751eadbe1823a37eb38df85ec5c8e6207/8' export scheduler_version='/lkp/lkp/.src-20220609-105305' export arch='x86_64' export max_uptime=2100 export initrd='/osimage/debian/debian-11.1-x86_64-20220510.cgz' export bootloader_append='root=/dev/ram0 RESULT_ROOT=/result/kernel-selftests/resctrl-ucode=0x500320a/lkp-csl-2sp9/debian-11.1-x86_64-20220510.cgz/x86_64-rhel-8.3-kselftests/gcc-11/32d4fd5751eadbe1823a37eb38df85ec5c8e6207/8 BOOT_IMAGE=/pkg/linux/x86_64-rhel-8.3-kselftests/gcc-11/32d4fd5751eadbe1823a37eb38df85ec5c8e6207/vmlinuz-5.19.0-rc1-00001-g32d4fd5751ea branch=linus/master job=/lkp/jobs/scheduled/lkp-csl-2sp9/kernel-selftests-resctrl-ucode=0x500320a-debian-11.1-x86_64-20220510.cgz-32d4fd5751eadbe1823a37eb38df85ec5c8e6207-20220612-12120-jkfy22-11.yaml user=lkp ARCH=x86_64 kconfig=x86_64-rhel-8.3-kselftests commit=32d4fd5751eadbe1823a37eb38df85ec5c8e6207 erst_disable max_uptime=2100 LKP_SERVER=internal-lkp-server nokaslr selinux=0 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-8.3-kselftests/gcc-11/32d4fd5751eadbe1823a37eb38df85ec5c8e6207/modules.cgz' export linux_headers_initrd='/pkg/linux/x86_64-rhel-8.3-kselftests/gcc-11/32d4fd5751eadbe1823a37eb38df85ec5c8e6207/linux-headers.cgz' export linux_selftests_initrd='/pkg/linux/x86_64-rhel-8.3-kselftests/gcc-11/32d4fd5751eadbe1823a37eb38df85ec5c8e6207/linux-selftests.cgz' export bm_initrd='/osimage/deps/debian-11.1-x86_64-20220510.cgz/run-ipconfig_20220515.cgz,/osimage/deps/debian-11.1-x86_64-20220510.cgz/lkp_20220513.cgz,/osimage/deps/debian-11.1-x86_64-20220510.cgz/rsync-rootfs_20220515.cgz,/osimage/deps/debian-11.1-x86_64-20220510.cgz/kernel-selftests_20220609.cgz,/osimage/pkg/debian-11.1-x86_64-20220510.cgz/kernel-selftests-x86_64-cef46213-1_20220609.cgz,/osimage/deps/debian-11.1-x86_64-20220510.cgz/hw_20220526.cgz' export ucode_initrd='/osimage/ucode/intel-ucode-20220216.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='5.19.0-rc1-mm-unstable-damon-wt-ath-05930-gbe7d66b30a77' export repeat_to=14 export queue_cmdline_keys='branch commit kbuild_queue_analysis' export stop_repeat_if_found='dmesg.include/linux/rcupdate.h:#rcu_read_unlock()used_illegally_while_idle' export kbuild_queue_analysis=1 export schedule_notify_address= export kernel='/pkg/linux/x86_64-rhel-8.3-kselftests/gcc-11/32d4fd5751eadbe1823a37eb38df85ec5c8e6207/vmlinuz-5.19.0-rc1-00001-g32d4fd5751ea' export dequeue_time='2022-06-12 05:54:48 +0800' export job_initrd='/lkp/jobs/scheduled/lkp-csl-2sp9/kernel-selftests-resctrl-ucode=0x500320a-debian-11.1-x86_64-20220510.cgz-32d4fd5751eadbe1823a37eb38df85ec5c8e6207-20220612-12120-jkfy22-11.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='resctrl' $LKP_SRC/tests/wrapper kernel-selftests } extract_stats() { export stats_part_begin= export stats_part_end= env group='resctrl' $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 } "$@"