On 26/09/2023 06:59, Daniel Borkmann wrote: > Add support to dump BPF programs on meta via bpftool. This includes both > the BPF link and attach ops programs. Dumped information contain the attach > location, function entry name, program ID and link ID when applicable. > > Example with tc BPF link: > > # ./bpftool net > xdp: > > tc: > meta1(22) meta/peer tc1 prog_id 43 link_id 12 > > [...] > > Example with json dump: > > # ./bpftool net --json | jq > [ > { > "xdp": [], > "tc": [ > { > "devname": "meta1", > "ifindex": 18, > "kind": "meta/primary", > "name": "tc1", > "prog_id": 29, > "prog_flags": [], > "link_id": 8, > "link_flags": [] > } > ], > "flow_dissector": [], > "netfilter": [] > } > ] > > Signed-off-by: Daniel Borkmann <daniel@xxxxxxxxxxxxx> Reviewed-by: Quentin Monnet <quentin@xxxxxxxxxxxxx> Thanks!