Lorenzo Fontana wrote: > This allows consumers of libbpf to iterate trough the insns > of a program without loading it first directly after the ELF parsing. > > Being able to do that is useful to create tooling that can show > the structure of a BPF program using libbpf without having to > parse the ELF separately. > > Usage: > struct bpf_insn *insn; > insn = bpf_program__insns(prog); > > Signed-off-by: Lorenzo Fontana <fontanalorenz@xxxxxxxxx> > --- Seems reasonable to me. Couple comments on the 2/2 patch. Acked-by: John Fastabend <john.fastabend@xxxxxxxxx>