BTF without DWARF
Srivats P <[email protected]> Thu, 18 Jul 2024 16:37:16 +0530
| Newsgroups | org.kernel.vger.xdp-newbies |
|---|---|
| Message-ID | <CANzUK5-QifcmKg+dZSdKsJXvKCb92DHEeb=BArpfn1o7MCXcEQ@mail.gmail.com> |
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