From: hcj <1224667075@qq.com> Date: Thu, 19 Dec 2024 10:21:00 +0000 (+0800) Subject: 增加休眠日志 X-Git-Tag: v1.3.113-repair_tp~18^2~38 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F1533%2F5;p=mirrors%2FFD230.git 增加休眠日志 --- diff --git a/code/sdk/drivers/peripheral/utils/custom_save_runtime.h b/code/sdk/drivers/peripheral/utils/custom_save_runtime.h index 3176bda50..b0bdb91eb 100644 --- a/code/sdk/drivers/peripheral/utils/custom_save_runtime.h +++ b/code/sdk/drivers/peripheral/utils/custom_save_runtime.h @@ -189,8 +189,8 @@ typedef enum { RUNTIME_LOG_RING_PLAY_STOP_FINDWATCH, // 0x0F06 查找手表铃声播放停止 //低功耗记录 - RUNTIME_LOG_lOW_POWER_MIN = 0x1000, - + RUNTIME_LOG_lOW_POWER_MIN = 0x1000, + RUNTIME_LOG_lOW_POWER_M_SLEEP=0x10ff, //录音 RUNTIME_LOG_RECORD_MIN = 0x1100, RUNTIME_LOG_RECORD_START, // 0x1101 录音开始 diff --git a/code/sdk/test/platform/testsuite/test_pm/test_pm.c b/code/sdk/test/platform/testsuite/test_pm/test_pm.c index abfaab78a..8b314ebac 100755 --- a/code/sdk/test/platform/testsuite/test_pm/test_pm.c +++ b/code/sdk/test/platform/testsuite/test_pm/test_pm.c @@ -23,6 +23,7 @@ #include "los_status.h" #include "oal_interface.h" #include "rtc.h" +#include "custom_save_runtime.h" static void print_app_system_sleep_info(void) { @@ -44,6 +45,16 @@ static void print_app_system_sleep_info(void) PRINT("M core deepsleep cnt:%d, light cnt:%d\r\n", deepsleep_cnt, lightsleep_cnt); PRINT("M core last veto id:%d, last veto count:%d\r\n", sleep_info->sleep_veto.last_veto_id, sleep_info->sleep_veto.last_veto_count); + if(m_core_sleep) + uapi_save_runtime_log(RUNTIME_LOG_lOW_POWER_M_SLEEP); + else + uapi_save_runtime_log(RUNTIME_LOG_lOW_POWER_MIN); + + uapi_save_runtime_log(RUNTIME_LOG_lOW_POWER_MIN|sleep_info->sleep_veto.last_veto_id); + + + + } static int tesetsuit_m_sys_enter_lightsleep(int argc, char *argv[])