Re: Suggestions on iterating eBPF maps

2018-05-01 Thread Alexei Starovoitov
On Wed, May 02, 2018 at 11:05:19AM +0900, Lorenzo Colitti wrote: > On Sat, Apr 28, 2018 at 10:04 AM, Alexei Starovoitov > wrote: > > Another approach could be to use map-in-map and have almost atomic > > replace of the whole map with new potentially empty map. The prog > > can continue using the n

Re: Suggestions on iterating eBPF maps

2018-05-01 Thread Lorenzo Colitti
On Sat, Apr 28, 2018 at 10:04 AM, Alexei Starovoitov wrote: > Another approach could be to use map-in-map and have almost atomic > replace of the whole map with new potentially empty map. The prog > can continue using the new map, while user space walks no longer > accessed old map. That sounds l

Re: Suggestions on iterating eBPF maps

2018-04-27 Thread Alexei Starovoitov
On Fri, Apr 27, 2018 at 06:33:56PM +, Chenbo Feng wrote: > resend with plain text > > On Fri, Apr 27, 2018 at 11:22 AM Chenbo Feng wrote: > > > Hi net-next, > > > When doing the eBPF tools user-space development I noticed that the map > iterating process in user-space have some little flaw

Re: Suggestions on iterating eBPF maps

2018-04-27 Thread Chenbo Feng
resend with plain text On Fri, Apr 27, 2018 at 11:22 AM Chenbo Feng wrote: > Hi net-next, > When doing the eBPF tools user-space development I noticed that the map iterating process in user-space have some little flaws. If we want to dump the whole map. The only way now I know is to use a null