Re: [iovisor-dev] Behavior of bpf_obj_get

2019-05-30 Thread Yonghong Song
On Thu, May 30, 2019 at 11:26 AM Adam Drescher wrote: > > Thank you for your answer, that makes sense. > > This leads me to a follow up question: is there a standard way to see > if a pinned map has been reloaded, without closing and re-opening the > map file every time to check? From your

[iovisor-dev] Behavior of bpf_obj_get

2019-05-30 Thread Adam Drescher
I am seeing unexpected behavior from bpf_obj_get, although this is likely due to my inexperience with BPF. In a loader program, I create a pinned map at "sys/fs/bpf/test/xdp_stats_map". In a separate statistics program, I access the pinned map via file descriptor -- I got the file descriptor from