msm: Add Low Power Management test framework

Test Framework read the available low power modes and
measures various stats and latencies for the low power mode
when enabled.

Test framework looks for notifications when a low power
mode is entered and exit and process the time between the
entry and exit to measure stats like number of times
a low power mode is entered, early wake up if any, Minimum
time/Max time/Avg time in the low power mode.

Test framework also measures latency of the low power mode
exercised. It gets the kernel sleep time decided by the power
calculation algorithm before entering the low power mode.
It also processes the amount of actual sleep time from the
notifications which will present the latency of the low power
mode exercised.

Test framework scripts can be used to measure the stats and
latency for the low power modes.

Change-Id: Ifec00927cb708613308cab62f09171cdfaf9fcf6
Signed-off-by: Priyanka Mathur <pmathur@codeaurora.org>
3 files changed