From 4af5ec2a405bc83fa2f96d583ad26c18c680e73b Mon Sep 17 00:00:00 2001 From: ganchuantao Date: Tue, 29 Jul 2025 21:04:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=91=E5=8D=95=E4=B8=BB=E5=B9=B2=EF=BC=9A?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=99=BA=E8=83=BD=E8=A1=A8ccm=E5=AE=9A?= =?UTF-8?q?=E5=88=B6=E5=8C=96=E9=85=8D=E7=BD=AE=20Signed-off-by:ganchuanta?= =?UTF-8?q?o=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ganchuantao --- device/ohos_test.xml | 2 + device/plugins/native_daemon/BUILD.gn | 1 + .../native_daemon/include/hook_manager.h | 1 + .../plugins/native_daemon/include/utilities.h | 2 + .../native_memory_profiler_sa_service.h | 2 + .../src/native_memory_profiler_sa_service.cpp | 6 ++- .../native_memory_profiler_sa/test/BUILD.gn | 1 + .../native_daemon/src/hook_manager.cpp | 8 ++-- .../plugins/native_daemon/src/utilities.cpp | 28 +++++++++++ device/plugins/native_daemon/test/BUILD.gn | 1 + .../unittest/common/native/utilities_test.cpp | 48 +++++++++++++++++++ .../resource/testdata/hiprofiler_cfg.json | 3 ++ .../resource/testdata/hiprofiler_cfg2.json | 4 ++ device/plugins/native_hook/BUILD.gn | 1 + device/plugins/native_hook/test/BUILD.gn | 1 + 15 files changed, 104 insertions(+), 5 deletions(-) create mode 100644 device/plugins/native_daemon/test/unittest/resource/testdata/hiprofiler_cfg.json create mode 100644 device/plugins/native_daemon/test/unittest/resource/testdata/hiprofiler_cfg2.json diff --git a/device/ohos_test.xml b/device/ohos_test.xml index 254d8b20e..c8cca99d3 100644 --- a/device/ohos_test.xml +++ b/device/ohos_test.xml @@ -117,6 +117,8 @@