iovisor / bcc

BCC - Tools for BPF-based Linux IO analysis, networking, monitoring, and more
Apache License 2.0
20.59k stars 3.88k forks source link

Running bcc tools failed for loongarch64 #5077

Closed zhangzikang01 closed 3 months ago

zhangzikang01 commented 3 months ago

Running bcc tools failed for loongarch64

/usr/share/bcc/tools/execsnoop

In file included from :4: In file included from /virtual/include/bcc/helpers.h:54: In file included from arch/loongarch/include/asm/page.h:9: In file included from arch/loongarch/include/asm/addrspace.h:16: arch/loongarch/include/asm/loongarch.h:13:10: fatal error: 'larchintrin.h' file not found 13 | #include | ^~~~~~~ 1 error generated. Traceback (most recent call last): File "/usr/share/bcc/tools/execsnoop", line 242, in b = BPF(text=bpf_text) ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/bpfcc/init.py", line 479, in init raise Exception("Failed to compile BPF module %s" % (src_file or "")) Exception: Failed to compile BPF module

/usr/share/bcc/tools/biosnoop

In file included from :4: In file included from /virtual/include/bcc/helpers.h:54: In file included from arch/loongarch/include/asm/page.h:9: In file included from arch/loongarch/include/asm/addrspace.h:16: arch/loongarch/include/asm/loongarch.h:13:10: fatal error: 'larchintrin.h' file not found 13 | #include | ^~~~~~~ 1 error generated. Traceback (most recent call last): File "/usr/share/bcc/tools/biosnoop", line 335, in b = BPF(text=bpf_text) ^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/bpfcc/init.py", line 479, in init raise Exception("Failed to compile BPF module %s" % (src_file or "")) Exception: Failed to compile BPF module

zhangzikang01 commented 3 months ago

This issue appears in the 6.6.0 version loongarch64 kernel