summaryrefslogtreecommitdiff
path: root/src/malloc_hook_mmap_linux.h
diff options
context:
space:
mode:
authorJingyun Hua <huajingyun@loongson.cn>2022-02-08 20:47:10 +0800
committerJingyun Hua <huajingyun@loongson.cn>2022-02-08 20:47:10 +0800
commitfe85bbdf4cb891a67a8e2109c1c22a33aa958c7e (patch)
tree25492f97dc329ae14739afde80795d3a8f32fcf4 /src/malloc_hook_mmap_linux.h
parente80652b6279a22bd4a4264e4403cd1981293e82f (diff)
downloadgperftools-fe85bbdf4cb891a67a8e2109c1c22a33aa958c7e.tar.gz
Add support for LoongArch.
Only 64-bit is supported at the moment. Signed-off-by: Jingyun Hua <huajingyun@loongson.cn>
Diffstat (limited to 'src/malloc_hook_mmap_linux.h')
-rw-r--r--src/malloc_hook_mmap_linux.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/malloc_hook_mmap_linux.h b/src/malloc_hook_mmap_linux.h
index cbf3782..4362fe0 100644
--- a/src/malloc_hook_mmap_linux.h
+++ b/src/malloc_hook_mmap_linux.h
@@ -54,6 +54,7 @@
#if defined(__x86_64__) \
|| defined(__PPC64__) \
|| defined(__aarch64__) \
+ || defined(__loongarch64) \
|| (defined(_MIPS_SIM) && (_MIPS_SIM == _ABI64 || _MIPS_SIM == _ABIN32)) \
|| defined(__s390__) || (defined(__riscv) && __riscv_xlen == 64) \
|| defined(__e2k__)