Re: [PATCH bpf] tools/bpftool: fix a percpu_array map dump problem

2018-07-29 Thread Yonghong Song
On 7/28/18 12:14 PM, Daniel Borkmann wrote: On 07/28/2018 01:11 AM, Yonghong Song wrote: I hit the following problem when I tried to use bpftool to dump a percpu array. $ sudo ./bpftool map show 61: percpu_array name stub flags 0x0 key 4B value 4B max_entries 1 memlock 4

Re: [PATCH bpf] tools/bpftool: fix a percpu_array map dump problem

2018-07-28 Thread Daniel Borkmann
On 07/28/2018 01:11 AM, Yonghong Song wrote: > I hit the following problem when I tried to use bpftool > to dump a percpu array. > > $ sudo ./bpftool map show > 61: percpu_array name stub flags 0x0 > key 4B value 4B max_entries 1 memlock 4096B > ... > $ sudo ./bpftool map dump

[PATCH bpf] tools/bpftool: fix a percpu_array map dump problem

2018-07-27 Thread Yonghong Song
I hit the following problem when I tried to use bpftool to dump a percpu array. $ sudo ./bpftool map show 61: percpu_array name stub flags 0x0 key 4B value 4B max_entries 1 memlock 4096B ... $ sudo ./bpftool map dump id 61 bpftool: malloc.c:2406: sysmalloc: Assertion `(o