sample: name: Demonstrate usage of the PM policy latency APIs tests: sample.pm.latency: platform_allow: native_posix integration_platforms: - native_posix tags: pm harness: console harness_config: type: multi_line regex: - " app: Sleeping for 1.1 seconds, we should enter RUNTIME_IDLE" - " soc_pm: Entering RUNTIME_IDLE{0}" - " app: Sleeping for 1.2 seconds, we should enter SUSPEND_TO_IDLE" - " soc_pm: Entering SUSPEND_TO_IDLE{0}" - " app: Sleeping for 1.3 seconds, we should enter STANDBY" - " soc_pm: Entering STANDBY{0}" - " app: Setting latency constraint: 30ms" - " app: Sleeping for 1.1 seconds, we should enter RUNTIME_IDLE" - " soc_pm: Entering RUNTIME_IDLE{0}" - " app: Sleeping for 1.2 seconds, we should enter SUSPEND_TO_IDLE" - " soc_pm: Entering SUSPEND_TO_IDLE{0}" - " app: Sleeping for 1.3 seconds, we should enter SUSPEND_TO_IDLE" - " soc_pm: Entering SUSPEND_TO_IDLE{0}" - " app: Opening test device" - " dev_test: Adding latency constraint: 20ms" - " app: Latency constraint changed: 20ms" - " app: Sleeping for 1.1 seconds, we should enter RUNTIME_IDLE" - " soc_pm: Entering RUNTIME_IDLE{0}" - " app: Sleeping for 1.2 seconds, we should enter RUNTIME_IDLE" - " soc_pm: Entering RUNTIME_IDLE{0}" - " app: Sleeping for 1.3 seconds, we should enter RUNTIME_IDLE" - " soc_pm: Entering RUNTIME_IDLE{0}" - " app: Updating latency constraint: 10ms" - " app: Latency constraint changed: 10ms" - " dev_test: Latency constraint changed: 10ms" - " app: Sleeping for 1.1 seconds, we should stay ACTIVE" - " app: Sleeping for 1.2 seconds, we should stay ACTIVE" - " app: Sleeping for 1.3 seconds, we should stay ACTIVE" - " app: Updating latency constraint: 30ms" - " app: Latency constraint changed: 20ms" - " dev_test: Latency constraint changed: 20ms" - " app: Closing test device" - " dev_test: Removing latency constraint" - " app: Latency constraint changed: 30ms" - " dev_test: Latency constraint changed: 30ms" - " app: Sleeping for 1.1 seconds, we should enter RUNTIME_IDLE" - " soc_pm: Entering RUNTIME_IDLE{0}" - " app: Sleeping for 1.2 seconds, we should enter SUSPEND_TO_IDLE" - " soc_pm: Entering SUSPEND_TO_IDLE{0}" - " app: Sleeping for 1.3 seconds, we should enter SUSPEND_TO_IDLE" - " soc_pm: Entering SUSPEND_TO_IDLE{0}" - " app: Removing latency constraint" - " app: Latency constraint changed: none" - " app: Finished, we should now enter STANDBY" - " soc_pm: Entering STANDBY{0}"