Skip to content

Commit de0e30b

Browse files
Chenguang Zhaochenhuacai
authored andcommitted
LoongArch: BPF: Enable bpf_probe_read{, str}() on LoongArch
Currently nettrace does not work on LoongArch due to missing bpf_probe_read{,str}() support, with the error message: ERROR: failed to load kprobe-based eBPF ERROR: failed to load kprobe-based bpf According to commit 0ebeea8 ("bpf: Restrict bpf_probe_read{, str}() only to archs where they work"), we only need to select CONFIG_ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE to add said support, because LoongArch does have non-overlapping address ranges for kernel and userspace. Cc: [email protected] # 6.1 Signed-off-by: Chenguang Zhao <[email protected]> Signed-off-by: Huacai Chen <[email protected]>
1 parent e66d511 commit de0e30b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/loongarch/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ config LOONGARCH
1414
select ARCH_HAS_CPU_FINALIZE_INIT
1515
select ARCH_HAS_FORTIFY_SOURCE
1616
select ARCH_HAS_NMI_SAFE_THIS_CPU_OPS
17+
select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE
1718
select ARCH_HAS_PTE_SPECIAL
1819
select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
1920
select ARCH_INLINE_READ_LOCK if !PREEMPTION

0 commit comments

Comments
 (0)