On Wed, 18 Jul 2018 11:19:42 +0200, Daniel Borkmann wrote: > For a quick overview in 'bpftool map' display 'btf' if it's > available for the dump for a specific map: > > # bpftool map list > 11: array flags 0x0 btf > key 4B value 20B max_entries 40 memlock 4096B > > # bpftool --json --pretty map list > [{ > "id": 11, > "type": "array", > "flags": 0, > "btf_available": true, > "bytes_key": 4, > "bytes_value": 20, > "max_entries": 40, > "bytes_memlock": 4096 > } > ] > > Signed-off-by: Daniel Borkmann <dan...@iogearbox.net>
Hmm.. would it make sense to provide the actual BTF IDs instead of just yes/no? At least in JSON?