On 4/16/2019 6:22 PM, Quentin Monnet wrote:
2019-04-16 17:59 UTC+0900 ~ Prashant Bhole
Let's print btf id of map similar to the way we are printing it
for programs.
Sample output:
user@test# bpftool map -f
61: lpm_trie flags 0x1
key 20B value 8B max_entries 1 memlock 4096B
133: arra
On Tue, 16 Apr 2019 10:22:15 +0100, Quentin Monnet wrote:
> > diff --git a/tools/bpf/bpftool/map.c b/tools/bpf/bpftool/map.c
> > index cda0f27fa895..de3e4cb32d21 100644
> > --- a/tools/bpf/bpftool/map.c
> > +++ b/tools/bpf/bpftool/map.c
> > @@ -550,6 +550,9 @@ static int show_map_close_json(int fd,
> On Apr 16, 2019, at 2:22 AM, Quentin Monnet
> wrote:
>
> 2019-04-16 17:59 UTC+0900 ~ Prashant Bhole
>> Let's print btf id of map similar to the way we are printing it
>> for programs.
>> Sample output:
>> user@test# bpftool map -f
>> 61: lpm_trie flags 0x1
>> key 20B value 8B max_e
2019-04-16 17:59 UTC+0900 ~ Prashant Bhole
Let's print btf id of map similar to the way we are printing it
for programs.
Sample output:
user@test# bpftool map -f
61: lpm_trie flags 0x1
key 20B value 8B max_entries 1 memlock 4096B
133: array name test_btf_id flags 0x0
key 4
Let's print btf id of map similar to the way we are printing it
for programs.
Sample output:
user@test# bpftool map -f
61: lpm_trie flags 0x1
key 20B value 8B max_entries 1 memlock 4096B
133: array name test_btf_id flags 0x0
key 4B value 4B max_entries 4 memlock 4096B