From 8c2f1f374a6d6d1a6a50c52b267b4d2cc68d62e9 Mon Sep 17 00:00:00 2001 From: gongguilin Date: Sat, 22 Feb 2025 11:56:12 +0800 Subject: [PATCH 1/2] samgr SA_CRASH tunning Signed-off-by: gongguilin --- services/dfx/source/hisysevent_adapter.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/services/dfx/source/hisysevent_adapter.cpp b/services/dfx/source/hisysevent_adapter.cpp index d237711f..a674a441 100644 --- a/services/dfx/source/hisysevent_adapter.cpp +++ b/services/dfx/source/hisysevent_adapter.cpp @@ -54,16 +54,22 @@ constexpr const char* PID = "PID"; constexpr const char* UID = "UID"; constexpr const char* DURATION = "DURATION"; constexpr const char* KEY_STAGE = "KEY_STAGE"; +constexpr int32_t CRASH_SA_MIN = 0x00010500; //66816 +constexpr int32_t CRASH_SA_MAX = 0x0001055f; //66911 } static bool IsInCrashWhiteList(int32_t saId) { - std::vector whiteList = { 1205 }; + std::vector whiteList = { 10, 1201, 1202, 1203, 1204, 1205, 1213, 1215, 5002, 5100, 5110, 9999, 65537, 65830, + 65850, 66064, 66186, 69930, 131071, 345135 }; for (auto sa : whiteList) { if (saId == sa) { return true; } } + if (saId >= CRASH_SA_MIN && saId <= CRASH_SA_MAX) { + return true; + } return false; } -- Gitee From 557a66ccf1ebb5734e150345d71b7e8e9b4c7db8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BE=9A=E6=A1=82=E6=9E=97?= Date: Sat, 22 Feb 2025 06:34:12 +0000 Subject: [PATCH 2/2] update services/dfx/source/hisysevent_adapter.cpp. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 龚桂林 --- services/dfx/source/hisysevent_adapter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/dfx/source/hisysevent_adapter.cpp b/services/dfx/source/hisysevent_adapter.cpp index a674a441..6bb315b4 100644 --- a/services/dfx/source/hisysevent_adapter.cpp +++ b/services/dfx/source/hisysevent_adapter.cpp @@ -54,8 +54,8 @@ constexpr const char* PID = "PID"; constexpr const char* UID = "UID"; constexpr const char* DURATION = "DURATION"; constexpr const char* KEY_STAGE = "KEY_STAGE"; -constexpr int32_t CRASH_SA_MIN = 0x00010500; //66816 -constexpr int32_t CRASH_SA_MAX = 0x0001055f; //66911 +constexpr int32_t CONTAINER_SA_MIN = 0x00010500; //66816 +constexpr int32_t CONTAINER_SA_MAX = 0x0001055f; //66911 } static bool IsInCrashWhiteList(int32_t saId) @@ -67,7 +67,7 @@ static bool IsInCrashWhiteList(int32_t saId) return true; } } - if (saId >= CRASH_SA_MIN && saId <= CRASH_SA_MAX) { + if (saId >= CONTAINER_SA_MIN && saId <= CONTAINER_SA_MAX) { return true; } return false; -- Gitee