#!/bin/sh export_top_env() { export suite='suspend-stress' export testcase='suspend-stress' export category='functional' export kernel_cmdline='initcall_debug log_buf_len=4M no_console_suspend ignore_loglevel' export iterations=10 export runtime=3600 export rtcwake=5 export idle_time= export job_origin='/home/rzhang1/jobs/ss-10x10-freeze.yaml' export queue_cmdline_keys= export schedule_notify_address= export queue='vip' export testbox='lkp-bxtm-lenovo1' export tbox_group='lkp-bxtm-lenovo1' export branch='linus/master' export commit='b2a02fc43a1f40ef4eb2fb2b06357382608d4d84' export submit_id='5ee0486f0b9a93a8050daf70' export job_file='/lkp/jobs/scheduled/lkp-bxtm-lenovo1/suspend-stress-10-freeze-debian-x86_64-20180403.cgz-b2a02fc43a1f40ef4eb2fb2b06357382608d4d84-20200610-43013-y6kbze-0.yaml' export id='b4c2fb83fc7dc7804a906fd4ec81f263f0f53e6f' export queuer_version='/lkp/rzhang1/.src-20200608-135048' export model='Broxton' export nr_cpu=2 export memory='4G' export swap_partitions='ata-ST500LT012-1DG142_SBY6QFKZ-part6' export bios_version='1MCN29WW' export ksc_version='1MEC24WW' export hw_version='Lenovo V110-14IAP' export belongs_to='power' export avoid_nfs=1 export need_kconfig='CONFIG_SUSPEND=y CONFIG_HIBERNATION=y CONFIG_PM_DEBUG=y' export rootfs='debian-x86_64-20180403.cgz' export kconfig='x86_64-rhel-7.6' export compiler='gcc-9' export enqueue_time='2020-06-10 10:42:48 +0800' export _id='5ee048a90b9a93a8050daf74' export _rt='/result/suspend-stress/10-freeze/lkp-bxtm-lenovo1/debian-x86_64-20180403.cgz/x86_64-rhel-7.6/gcc-9/b2a02fc43a1f40ef4eb2fb2b06357382608d4d84' export user='lkp' export kernel='/pkg/linux/x86_64-rhel-7.6/gcc-9/b2a02fc43a1f40ef4eb2fb2b06357382608d4d84/vmlinuz-5.7.0-rc6-00143-gb2a02fc43a1f4' export result_root='/result/suspend-stress/10-freeze/lkp-bxtm-lenovo1/debian-x86_64-20180403.cgz/x86_64-rhel-7.6/gcc-9/b2a02fc43a1f40ef4eb2fb2b06357382608d4d84/8' export dequeue_time='2020-06-10 13:03:12 +0800' export scheduler_version='/lkp/lkp/.src-20200609-235012' export LKP_SERVER='inn' export arch='x86_64' export max_uptime=11400 export initrd='/osimage/debian/debian-x86_64-20180403.cgz' export bootloader_append='root=/dev/ram0 user=lkp job=/lkp/jobs/scheduled/lkp-bxtm-lenovo1/suspend-stress-10-freeze-debian-x86_64-20180403.cgz-b2a02fc43a1f40ef4eb2fb2b06357382608d4d84-20200610-43013-y6kbze-0.yaml ARCH=x86_64 kconfig=x86_64-rhel-7.6 branch=linus/master commit=b2a02fc43a1f40ef4eb2fb2b06357382608d4d84 BOOT_IMAGE=/pkg/linux/x86_64-rhel-7.6/gcc-9/b2a02fc43a1f40ef4eb2fb2b06357382608d4d84/vmlinuz-5.7.0-rc6-00143-gb2a02fc43a1f4 initcall_debug log_buf_len=4M no_console_suspend ignore_loglevel max_uptime=11400 RESULT_ROOT=/result/suspend-stress/10-freeze/lkp-bxtm-lenovo1/debian-x86_64-20180403.cgz/x86_64-rhel-7.6/gcc-9/b2a02fc43a1f40ef4eb2fb2b06357382608d4d84/8 LKP_SERVER=inn 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-7.6/gcc-9/b2a02fc43a1f40ef4eb2fb2b06357382608d4d84/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/hw_2020-01-02.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-bxtm-lenovo1/suspend-stress-10-freeze-debian-x86_64-20180403.cgz-b2a02fc43a1f40ef4eb2fb2b06357382608d4d84-20200610-43013-y6kbze-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 meminfo run_monitor $LKP_SRC/monitors/wrapper oom-killer run_monitor $LKP_SRC/monitors/plain/watchdog run_test mode='freeze' $LKP_SRC/tests/wrapper suspend-stress } extract_stats() { export stats_part_begin= export stats_part_end= $LKP_SRC/stats/wrapper suspend-stress $LKP_SRC/stats/wrapper kmsg $LKP_SRC/stats/wrapper meminfo $LKP_SRC/stats/wrapper time suspend-stress.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 } "$@"