Re: [[PATCH V9] 6/7] Enable BTF generation in the BPF backend

2021-06-21 Thread Richard Biener via Gcc-patches
On Mon, May 31, 2021 at 7:18 PM Jose E. Marchesi via Gcc-patches wrote: > > This patch changes the BPF GCC backend in order to use the DWARF debug > hooks and therefore enables the user to generate BTF debugging > information with -gbtf. Generating BTF is crucial when compiling BPF > programs, si

[[PATCH V9] 6/7] Enable BTF generation in the BPF backend

2021-05-31 Thread Jose E. Marchesi via Gcc-patches
This patch changes the BPF GCC backend in order to use the DWARF debug hooks and therefore enables the user to generate BTF debugging information with -gbtf. Generating BTF is crucial when compiling BPF programs, since the CO-RE (compile-once, run-everwhere) mechanism used by the kernel BPF loader