From 72b817bf13dc048367cada21f2c446fcdc4bac3a Mon Sep 17 00:00:00 2001 From: jiangyuan0000 Date: Thu, 30 Jun 2022 09:42:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=93=9D=E5=8C=BA=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: jiangyuan0000 --- hidebug/frameworks/native/BUILD.gn | 1 - hidebug/frameworks/native/hidebug_base.cpp | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hidebug/frameworks/native/BUILD.gn b/hidebug/frameworks/native/BUILD.gn index 4d10043ac..b07a8defc 100644 --- a/hidebug/frameworks/native/BUILD.gn +++ b/hidebug/frameworks/native/BUILD.gn @@ -18,7 +18,6 @@ ohos_source_set("libhidebug_source") { part_name = "profiler" include_dirs = [ "//utils/native/base/include", - "//third_party/musl/porting/linux/user/include", "//developtools/profiler/hidebug/interfaces/native/innerkits/include", ] diff --git a/hidebug/frameworks/native/hidebug_base.cpp b/hidebug/frameworks/native/hidebug_base.cpp index 5f1d58347..ad827ff44 100644 --- a/hidebug/frameworks/native/hidebug_base.cpp +++ b/hidebug/frameworks/native/hidebug_base.cpp @@ -24,7 +24,7 @@ #include #include #include -#include +#include #include #include @@ -43,6 +43,7 @@ const int MAX_PARA_LEN = 50; const int MAX_PARA_CNT = 20; const int PARAM_BUF_LEN = 128; const int QUERYNAME_LEN = 80; +const int HOOK_SIGNAL = 36; const char COLON_CHR = ':'; const char SLASH_CHR = '/'; const char * const LIBC_HOOK_PARAM = "libc.hook_mode"; @@ -202,7 +203,7 @@ static int SetupMallocHookAtStartup(const char *thisName) return 0; } HILOG_INFO(LOG_CORE, "malloc send hook signal."); - return raise(MUSL_SIGNAL_HOOK); + return raise(HOOK_SIGNAL); } } // namespace