#!/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= export rtcwake= export idle_time= export job_origin='/lkp/lkp/.src-20200214-223632/allot/cyclic:power:linux-devel:devel-hourly/lkp-bdw-nuc1/suspend_stress.yaml' export queue_cmdline_keys='branch commit queue_at_least_once' export queue='validate' export testbox='lkp-bdw-nuc1' export tbox_group='lkp-bdw-nuc1' export submit_id='5e596f243813140bb6941ab6' export job_file='/lkp/jobs/scheduled/lkp-bdw-nuc1/suspend_stress-10-mem-debian-x86_64-20180403.cgz-36511637bd8526b63943cc06f40bf612de73080c-20200229-2998-1gu4xzj-3.yaml' export id='2c17ba9028696a012a6dc6d02da461ef43b91219' export queuer_version='/lkp-src' export arch='x86_64' export model='BroadWell' export nr_cpu=4 export memory='8G' export belongs_to='power' export avoid_nfs=1 export need_kconfig='CONFIG_SUSPEND=y CONFIG_HIBERNATION=y CONFIG_PM_DEBUG=y' export commit='36511637bd8526b63943cc06f40bf612de73080c' export rootfs='debian-x86_64-20180403.cgz' export kconfig='x86_64-rhel-7.6' export compiler='gcc-7' export enqueue_time='2020-02-29 03:51:05 +0800' export _id='5e596f243813140bb6941ab6' export _rt='/result/suspend_stress/10-mem/lkp-bdw-nuc1/debian-x86_64-20180403.cgz/x86_64-rhel-7.6/gcc-7/36511637bd8526b63943cc06f40bf612de73080c' export user='lkp' export head_commit='cb2048cd18cf4324a8f3c846de29862c15f811c9' export base_commit='bb6d3fb354c5ee8d6bde2d576eb7220ea09862b9' export branch='linux-devel/devel-hourly-2020021422' export result_root='/result/suspend_stress/10-mem/lkp-bdw-nuc1/debian-x86_64-20180403.cgz/x86_64-rhel-7.6/gcc-7/36511637bd8526b63943cc06f40bf612de73080c/3' export scheduler_version='/lkp/lkp/.src-20200228-192315' export LKP_SERVER='inn' export max_uptime=3600 export initrd='/osimage/debian/debian-x86_64-20180403.cgz' export bootloader_append='root=/dev/ram0 user=lkp job=/lkp/jobs/scheduled/lkp-bdw-nuc1/suspend_stress-10-mem-debian-x86_64-20180403.cgz-36511637bd8526b63943cc06f40bf612de73080c-20200229-2998-1gu4xzj-3.yaml ARCH=x86_64 kconfig=x86_64-rhel-7.6 branch=linux-devel/devel-hourly-2020021422 commit=36511637bd8526b63943cc06f40bf612de73080c BOOT_IMAGE=/pkg/linux/x86_64-rhel-7.6/gcc-7/36511637bd8526b63943cc06f40bf612de73080c/vmlinuz-5.5.0-rc7-02125-g36511637bd8526 initcall_debug log_buf_len=4M no_console_suspend ignore_loglevel max_uptime=3600 RESULT_ROOT=/result/suspend_stress/10-mem/lkp-bdw-nuc1/debian-x86_64-20180403.cgz/x86_64-rhel-7.6/gcc-7/36511637bd8526b63943cc06f40bf612de73080c/3 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-7/36511637bd8526b63943cc06f40bf612de73080c/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 repeat_to=4 export schedule_notify_address= export queue_at_least_once=1 export kernel='/pkg/linux/x86_64-rhel-7.6/gcc-7/36511637bd8526b63943cc06f40bf612de73080c/vmlinuz-5.5.0-rc7-02125-g36511637bd8526' export dequeue_time='2020-02-29 03:53:47 +0800' export job_initrd='/lkp/jobs/scheduled/lkp-bdw-nuc1/suspend_stress-10-mem-debian-x86_64-20180403.cgz-36511637bd8526b63943cc06f40bf612de73080c-20200229-2998-1gu4xzj-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 mode='mem' $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 } "$@"