Test failures on ARM64 as probe can't be attached
pgowda-cve opened this issue · 0 comments
Hi,
I am running the bcc on QEMUARM64 from Yocto:-
Linux qemuarm64 6.1.38-yocto-standard #1 SMP PREEMPT Thu Jul 6 18:52:54 UTC 2023 aarch64 GNU/Linux
However, I am facing issues while running some tests on the qemu as:-
root@qemuarm64:/usr/lib/bcc/ptest# /usr/lib/bcc/ptest/tests/cc/test_libbcc_no_libbpf "test hash of maps"
sha1 socket not available Address family not supported by protocol
WARNING: cannot get prog tag, ignore saving source with program tag
cannot attach kprobe, probe entry may not exist
I have the following configurations set for Kernel build
CONFIG_BPF=y
CONFIG_BPF_SYSCALL=y
CONFIG_IKHEADERS=y
CONFIG_DEBUG_INFO_BTF=y
CONFIG_KPROBE_EVENTS=y
CONFIG_KPROBES=y
CONFIG_HAVE_KPROBES=y
CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y
CONFIG_KPROBES_ON_FTRACE=y
I have checked that presence of arm64 in syscall prefixes that should have fixed the error.
syscall_prefixes = [
b"sys",
b"_x64_sys",
b"_x32_compat_sys",
b"_ia32_compat_sys",
b"_arm64_sys",
b"_s390x_sys",
b"_s390_sys",
]
Please let me know if anything else is required for to fix these test failures?
Thanks