[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250430131516.24287-4-yangtiezhu@loongson.cn>
Date: Wed, 30 Apr 2025 21:15:14 +0800
From: Tiezhu Yang <yangtiezhu@...ngson.cn>
To: Huacai Chen <chenhuacai@...nel.org>
Cc: loongarch@...ts.linux.dev,
linux-kernel@...r.kernel.org
Subject: [PATCH 3/5] LoongArch: Enable tracing syscalls in defconfig
There exist the following errors when building bpf selftest:
$ cd tools/testing/selftests/bpf/
$ make
...
CLNG-BPF [test_progs] profiler1.bpf.o
In file included from progs/profiler1.c:5:
progs/profiler.inc.h:599:49: error: declaration of 'struct syscall_trace_enter' will not be visible outside of this function [-Werror,-Wvisibility]
...
progs/profiler.inc.h:604:15: error: incomplete definition of type 'struct syscall_trace_enter'
...
progs/profiler.inc.h:605:15: error: incomplete definition of type 'struct syscall_trace_enter'
...
3 errors generated.
This is because there is no basic tracer to catch the syscall entry
and exit events, it is better to enable the kernel tracing syscalls
with CONFIG_FTRACE_SYSCALLS in defconfig to avoid the building errors.
Signed-off-by: Tiezhu Yang <yangtiezhu@...ngson.cn>
---
arch/loongarch/configs/loongson3_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/loongarch/configs/loongson3_defconfig b/arch/loongarch/configs/loongson3_defconfig
index eaaf3419555c..4289e3abf8c7 100644
--- a/arch/loongarch/configs/loongson3_defconfig
+++ b/arch/loongarch/configs/loongson3_defconfig
@@ -1006,4 +1006,5 @@ CONFIG_STRIP_ASM_SYMS=y
CONFIG_MAGIC_SYSRQ=y
CONFIG_DEBUG_FS=y
CONFIG_SCHEDSTATS=y
+CONFIG_FTRACE_SYSCALLS=y
CONFIG_UNWINDER_ORC=y
--
2.42.0
Powered by blists - more mailing lists