Re: [PATCH 4/7] btf: expose get_btf_id

2021-08-26 Thread Richard Biener via Gcc-patches
On Wed, Aug 4, 2021 at 7:57 PM David Faust via Gcc-patches wrote: > > Expose the function get_btf_id, so that it may be used by the BPF > backend. This enables the BPF CO-RE machinery in the BPF backend to > lookup BTF type IDs, in order to create CO-RE relocation records. > > A prototype is added

[PATCH 4/7] btf: expose get_btf_id

2021-08-04 Thread David Faust via Gcc-patches
Expose the function get_btf_id, so that it may be used by the BPF backend. This enables the BPF CO-RE machinery in the BPF backend to lookup BTF type IDs, in order to create CO-RE relocation records. A prototype is added in ctfc.h gcc/ChangeLog: * btfout.c (get_btf_id): Function is no lo