mirror of
https://gitee.com/openharmony/developtools_profiler
synced 2024-11-23 06:50:12 +00:00
修复蓝区编译错误
Signed-off-by: jiangyuan0000 <jiangyuan29@huawei.com>
This commit is contained in:
parent
cb08c6176d
commit
72b817bf13
@ -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",
|
||||
]
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
||||
#include <dlfcn.h>
|
||||
#include <unistd.h>
|
||||
#include <string>
|
||||
#include <signal.h>
|
||||
#include <csignal>
|
||||
|
||||
#include <parameter.h>
|
||||
#include <sysparam_errno.h>
|
||||
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user