diff options
| author | Huacai Chen <chenhuacai@loongson.cn> | 2023-05-01 17:19:59 +0800 |
|---|---|---|
| committer | Huacai Chen <chenhuacai@loongson.cn> | 2023-05-01 17:19:59 +0800 |
| commit | 2fa5ebe3bc4e31e07a99196455498472417842f2 (patch) | |
| tree | 671c8b1d5b5c3e9f54b61b2bfb62e7f4ed26a7f9 /tools/perf/util/syscalltbl.c | |
| parent | LoongArch: ftrace: Add direct call trampoline samples support (diff) | |
| download | linux-2fa5ebe3bc4e31e07a99196455498472417842f2.tar.gz linux-2fa5ebe3bc4e31e07a99196455498472417842f2.zip | |
tools/perf: Add basic support for LoongArch
Add basic support for LoongArch, which is very similar to the MIPS
version.
Signed-off-by: Ming Wang <wangming01@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'tools/perf/util/syscalltbl.c')
| -rw-r--r-- | tools/perf/util/syscalltbl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/util/syscalltbl.c b/tools/perf/util/syscalltbl.c index a2e906858891..313eccef6cb4 100644 --- a/tools/perf/util/syscalltbl.c +++ b/tools/perf/util/syscalltbl.c @@ -38,6 +38,10 @@ static const char **syscalltbl_native = syscalltbl_arm64; #include <asm/syscalls_n64.c> const int syscalltbl_native_max_id = SYSCALLTBL_MIPS_N64_MAX_ID; static const char **syscalltbl_native = syscalltbl_mips_n64; +#elif defined(__loongarch__) +#include <asm/syscalls.c> +const int syscalltbl_native_max_id = SYSCALLTBL_LOONGARCH_MAX_ID; +static const char **syscalltbl_native = syscalltbl_loongarch; #endif struct syscall { |
