#!/bin/sh export_top_env() { export suite='kunit' export testcase='kunit' export category='functional' export kernel_cmdline='kunit.enable=1' export job_origin='kunit.yaml' export arch='x86_64' export need_kconfig='{"RUNTIME_TESTING_MENU"=>"y"} {"KUNIT"=>"y"} {"KUNIT_DEFAULT_ENABLED"=>"n"} {"KUNIT_DEBUGFS"=>"y"} {"KUNIT_ALL_TESTS"=>"m"} {"KUNIT_EXAMPLE_TEST"=>"n"} {"KUNIT_TEST"=>"n"} {"MEMCPY_SLOW_KUNIT_TEST"=>"n"} {"BITFIELD_KUNIT"=>"m"} {"BITS_TEST"=>"m"} {"CMDLINE_KUNIT_TEST"=>"m"} {"HASH_KUNIT_TEST"=>"m"} {"LINEAR_RANGES_TEST"=>"m"} {"LIST_KUNIT_TEST"=>"m"} {"MEMCPY_KUNIT_TEST"=>"m"} {"SND_SOC_TOPOLOGY_KUNIT_TEST"=>"m"} {"NETDEV_ADDR_LIST_TEST"=>"m"} {"RESOURCE_KUNIT_TEST"=>"m"} {"SYSCTL_KUNIT_TEST"=>"m"} {"TIME_KUNIT_TEST"=>"m"} {"TEST_LIST_SORT"=>"m"} {"TEST_SORT"=>"m"} {"CPUMASK_KUNIT_TEST"=>"m"} {"IS_SIGNED_TYPE_KUNIT_TEST"=>"m"} {"OVERFLOW_KUNIT_TEST"=>"m"} {"SIPHASH_KUNIT_TEST"=>"m"} {"STACKINIT_KUNIT_TEST"=>"m"} {"STRSCPY_KUNIT_TEST"=>"m"} DRIVER_PE_KUNIT_TEST {"RTC_LIB_KUNIT_TEST"=>"m"} {"RTC_CLASS"=>"y"} {"FORTIFY_KUNIT_TEST"=>"m"} {"FORTIFY_SOURCE"=>"y"} {"KASAN_KUNIT_TEST"=>"m"} {"KASAN"=>"y"} {"EXT4_KUNIT_TESTS"=>"m"} EXT4_FS {"TRACEPOINTS"=>"y"} {"KFENCE_KUNIT_TEST"=>"m"} {"KFENCE"=>"y"} {"MPTCP_KUNIT_TEST"=>"m"} {"MPTCP"=>"y"} {"RATIONAL_KUNIT_TEST"=>"m"} {"RATIONAL"=>"y"} {"SLUB_KUNIT_TEST"=>"m"} {"SLOB_DEPRECATED"=>"n"} {"SLUB"=>"y"} {"SLUB_DEBUG"=>"y"} {"SLUB_TINY"=>"n"} {"SECURITY_APPARMOR_KUNIT_TEST"=>"m"} {"SECURITY_APPARMOR"=>"y"} {"CLK_GATE_KUNIT_TEST"=>"m"} {"CLK_KUNIT_TEST"=>"m"} {"COMMON_CLK"=>"y"} {"CROS_KUNIT_EC_PROTO_TEST"=>"m"} {"CHROME_PLATFORMS"=>"y"} {"CROS_EC"=>"m"} {"HID_KUNIT_TEST"=>"m"} {"HID_SUPPORT"=>"y"} HID {"HID_BATTERY_STRENGTH"=>"y"} USB USB_HID {"HID_UCLOGIC"=>"m"} {"IIO_FORMAT_KUNIT_TEST"=>"m"} {"IIO"=>"m"} {"IIO_RESCALE_KUNIT_TEST"=>"m"} {"IIO_RESCALE"=>"m"} {"SND_SOC_UTILS_KUNIT_TEST"=>"m"} {"SOUND"=>"m"} {"FAT_KUNIT_TEST"=>"m"} {"FAT_FS"=>"m"} {"STRING_HELPERS_KUNIT_TEST"=>"m"} {"STRING_KUNIT_TEST"=>"m"} {"USERCOPY_KUNIT_TEST"=>"m"} {"DAMON_KUNIT_TEST"=>"y"} {"PM_QOS_KUNIT_TEST"=>"y"} {"BINFMT_ELF_KUNIT_TEST"=>"y"} {"VCAP_KUNIT_TEST"=>"y"} {"VCAP"=>"y"} {"USB4_KUNIT_TEST"=>"y"} {"USB4"=>"y"} {"FPROBE_SANITY_TEST"=>"y"} {"FPROBE"=>"y"} {"HW_BREAKPOINT_KUNIT_TEST"=>"y"} {"PROFILING"=>"y"} {"PERF_EVENTS"=>"y"} {"DAMON_DBGFS_KUNIT_TEST"=>"y"} {"DAMON"=>"y"} {"DAMON_DBGFS"=>"y"} {"DAMON_VADDR"=>"y"} {"DAMON_VADDR_KUNIT_TEST"=>"y"} {"DAMON_PADDR"=>"y"} {"DAMON_SYSFS"=>"y"} {"RUNTIME_TESTING_MENU"=>"y"} {"KUNIT"=>"y"} {"KUNIT_DEFAULT_ENABLED"=>"n"} {"KUNIT_DEBUGFS"=>"y"} {"KUNIT_ALL_TESTS"=>"m"} {"KUNIT_EXAMPLE_TEST"=>"n"} {"KUNIT_TEST"=>"n"} {"MEMCPY_SLOW_KUNIT_TEST"=>"n"} {"BITFIELD_KUNIT"=>"m"} {"BITS_TEST"=>"m"} {"CMDLINE_KUNIT_TEST"=>"m"} {"HASH_KUNIT_TEST"=>"m"} {"LINEAR_RANGES_TEST"=>"m"} {"LIST_KUNIT_TEST"=>"m"} {"MEMCPY_KUNIT_TEST"=>"m"} {"SND_SOC_TOPOLOGY_KUNIT_TEST"=>"m"} {"NETDEV_ADDR_LIST_TEST"=>"m"} {"RESOURCE_KUNIT_TEST"=>"m"} {"SYSCTL_KUNIT_TEST"=>"m"} {"TIME_KUNIT_TEST"=>"m"} {"TEST_LIST_SORT"=>"m"} {"TEST_SORT"=>"m"} {"CPUMASK_KUNIT_TEST"=>"m"} {"IS_SIGNED_TYPE_KUNIT_TEST"=>"m"} {"OVERFLOW_KUNIT_TEST"=>"m"} {"SIPHASH_KUNIT_TEST"=>"m"} {"STACKINIT_KUNIT_TEST"=>"m"} {"STRSCPY_KUNIT_TEST"=>"m"} DRIVER_PE_KUNIT_TEST {"RTC_LIB_KUNIT_TEST"=>"m"} {"RTC_CLASS"=>"y"} {"FORTIFY_KUNIT_TEST"=>"m"} {"FORTIFY_SOURCE"=>"y"} {"KASAN_KUNIT_TEST"=>"m"} {"KASAN"=>"y"} {"EXT4_KUNIT_TESTS"=>"m"} EXT4_FS {"TRACEPOINTS"=>"y"} {"KFENCE_KUNIT_TEST"=>"m"} {"KFENCE"=>"y"} {"MPTCP_KUNIT_TEST"=>"m"} {"MPTCP"=>"y"} {"RATIONAL_KUNIT_TEST"=>"m"} {"RATIONAL"=>"y"} {"SLUB_KUNIT_TEST"=>"m"} {"SLOB_DEPRECATED"=>"n"} {"SLUB"=>"y"} {"SLUB_DEBUG"=>"y"} {"SLUB_TINY"=>"n"} {"SECURITY_APPARMOR_KUNIT_TEST"=>"m"} {"SECURITY_APPARMOR"=>"y"} {"CLK_GATE_KUNIT_TEST"=>"m"} {"CLK_KUNIT_TEST"=>"m"} {"COMMON_CLK"=>"y"} {"CROS_KUNIT_EC_PROTO_TEST"=>"m"} {"CHROME_PLATFORMS"=>"y"} {"CROS_EC"=>"m"} {"HID_KUNIT_TEST"=>"m"} {"HID_SUPPORT"=>"y"} HID {"HID_BATTERY_STRENGTH"=>"y"} USB USB_HID {"HID_UCLOGIC"=>"m"} {"IIO_FORMAT_KUNIT_TEST"=>"m"} {"IIO"=>"m"} {"IIO_RESCALE_KUNIT_TEST"=>"m"} {"IIO_RESCALE"=>"m"} {"SND_SOC_UTILS_KUNIT_TEST"=>"m"} {"SOUND"=>"m"} {"FAT_KUNIT_TEST"=>"m"} {"FAT_FS"=>"m"} {"STRING_HELPERS_KUNIT_TEST"=>"m"} {"STRING_KUNIT_TEST"=>"m"} {"USERCOPY_KUNIT_TEST"=>"m"} {"DAMON_KUNIT_TEST"=>"y"} {"PM_QOS_KUNIT_TEST"=>"y"} {"BINFMT_ELF_KUNIT_TEST"=>"y"} {"VCAP_KUNIT_TEST"=>"y"} {"VCAP"=>"y"} {"USB4_KUNIT_TEST"=>"y"} {"USB4"=>"y"} {"FPROBE_SANITY_TEST"=>"y"} {"FPROBE"=>"y"} {"HW_BREAKPOINT_KUNIT_TEST"=>"y"} {"PROFILING"=>"y"} {"PERF_EVENTS"=>"y"} {"DAMON_DBGFS_KUNIT_TEST"=>"y"} {"DAMON"=>"y"} {"DAMON_DBGFS"=>"y"} {"DAMON_VADDR"=>"y"} {"DAMON_VADDR_KUNIT_TEST"=>"y"} {"DAMON_PADDR"=>"y"} {"DAMON_SYSFS"=>"y"}' export queue_cmdline_keys='branch commit kbuild_queue_analysis force_schedule' export queue='validate' export testbox='lkp-csl-d02' export tbox_group='lkp-csl-d02' export branch='linux-next/master' export commit='2377a7d90f5bb2ccc302b5fb0e6ba4c67cf24ddd' export repeat_to=6 export job_file='/lkp/jobs/queued/validate/lkp-csl-d02/kunit-group-00-debian-12-x86_64-20240206.cgz-2377a7d90f5b-20240823-137313-1l6zztg-3.yaml' export id='b0632d8b6d243a53ab0a72d680ec84cf73c3520d' export queuer_version='/zday/lkp' export model='Cascade Lake' export nr_node=1 export nr_cpu=36 export memory='128G' export nr_hdd_partitions=6 export hdd_partitions='/dev/disk/by-id/ata-ST4000DM004-2U9104_WFN65D7R-part*' export rootfs_partition='/dev/disk/by-id/nvme-INTEL_SSDPEKNW512G8_BTNH124202ZP512A-part4' export kernel_cmdline_hw='acpi_rsdp=0x36983000' export result_service='tmpfs' export LKP_SERVER='10.239.97.5' export avoid_nfs=1 export brand='Intel(R) Core(TM) i9-10980XE CPU @ 3.00GHz' export ucode='0x5003604' export rootfs='debian-12-x86_64-20240206.cgz' export kconfig='x86_64-rhel-8.3-kunit' export enqueue_time='2024-08-23 17:10:04 +0800' export compiler='gcc-12' export _rt='/result/kunit/group-00/lkp-csl-d02/debian-12-x86_64-20240206.cgz/x86_64-rhel-8.3-kunit/gcc-12/2377a7d90f5bb2ccc302b5fb0e6ba4c67cf24ddd' export user='lkp' export scheduler_version='/lkp/lkp/.src-20240808-144501' export max_uptime=6000 export initrd='/osimage/debian/debian-12-x86_64-20240206.cgz' export bootloader_append='root=/dev/ram0 RESULT_ROOT=/result/kunit/group-00/lkp-csl-d02/debian-12-x86_64-20240206.cgz/x86_64-rhel-8.3-kunit/gcc-12/2377a7d90f5bb2ccc302b5fb0e6ba4c67cf24ddd/3 BOOT_IMAGE=/pkg/linux/x86_64-rhel-8.3-kunit/gcc-12/2377a7d90f5bb2ccc302b5fb0e6ba4c67cf24ddd/vmlinuz-6.11.0-rc2-00008-g2377a7d90f5b branch=linux-next/master job=/lkp/jobs/scheduled/lkp-csl-d02/kunit-group-00-debian-12-x86_64-20240206.cgz-2377a7d90f5b-20240823-137313-1l6zztg-3.yaml user=lkp ARCH=x86_64 kconfig=x86_64-rhel-8.3-kunit commit=2377a7d90f5bb2ccc302b5fb0e6ba4c67cf24ddd kunit.enable=1 intremap=posted_msi acpi_rsdp=0x36983000 max_uptime=6000 LKP_SERVER=10.239.97.5 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-kunit/gcc-12/2377a7d90f5bb2ccc302b5fb0e6ba4c67cf24ddd/modules.cgz' export bm_initrd='/osimage/deps/debian-12-x86_64-20240206.cgz/lkp_20240216.cgz,/osimage/deps/debian-12-x86_64-20240206.cgz/rsync-rootfs_20240301.cgz,/osimage/deps/debian-12-x86_64-20240206.cgz/hw_20240216.cgz' export ucode_initrd='/osimage/ucode/intel-ucode-20230906.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 job_initrd='/lkp/jobs/scheduled/lkp-csl-d02/kunit-group-00-debian-12-x86_64-20240206.cgz-2377a7d90f5b-20240823-137313-1l6zztg-3.cgz' export last_kernel='6.11.0-rc2-00009-g63eac6bdcf9f' export acpi_rsdp='0x36983000' export kbuild_queue_analysis=1 export force_schedule=1 export kernel='/pkg/linux/x86_64-rhel-8.3-kunit/gcc-12/2377a7d90f5bb2ccc302b5fb0e6ba4c67cf24ddd/vmlinuz-6.11.0-rc2-00008-g2377a7d90f5b' export result_root='/result/kunit/group-00/lkp-csl-d02/debian-12-x86_64-20240206.cgz/x86_64-rhel-8.3-kunit/gcc-12/2377a7d90f5bb2ccc302b5fb0e6ba4c67cf24ddd/3' [ -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 $LKP_SRC/setup/sanity-check 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='group-00' $LKP_SRC/tests/wrapper kunit } extract_stats() { export stats_part_begin= export stats_part_end= env group='group-00' $LKP_SRC/stats/wrapper kunit $LKP_SRC/stats/wrapper kmsg $LKP_SRC/stats/wrapper meminfo $LKP_SRC/stats/wrapper time kunit.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 } "$@"