Em 18 de julho de 2024 08:07:16 BRT, Srivats P <pstavirs@xxxxxxxxx> escreveu: >Hi, > >I'm updating my AF_XDP app from using a very old libbpf v0.1.1 to >libxdp v1.2.0 (the last libxdp version that supported clang/llvm 10 >included in Ubuntu 20.04). > >I've changed my XDP program .c code to use BTF maps as required. >However, it looks like to generate them I need to add '-g' to clang >which includes generic DWARF debug info as well. > >Is there a way to generate just the BTF info without dwarf while >compiling the XDP ebpf program .c code? > >Thanks in advance, >Srivats > > After compiling your binary with 'clang -g' try running the .o through llvm-strip -g llvm-strip -g your-bpf-file.o