Re: [RFC] bpf: Suggestion on bpf syscall interface

2015-03-30 Thread Alexei Starovoitov
On 3/29/15 8:13 PM, He Kuang wrote: By using current bpf syscalls, we should keep the program which attaches bpf programs running background, use it or some other processes communicate with it to adjust maps parameters, like sample rate for sys_write. You can do all of the above by passing fds

Re: [RFC] bpf: Suggestion on bpf syscall interface

2015-03-29 Thread He Kuang
On 2015/3/29 1:21, Alexei Starovoitov wrote: On 3/28/15 4:36 AM, He Kuang wrote: Hi, Alexei In our end-end IO module project, we use bpf maps to record configurations. According to current bpf syscall interface, we should specify map_fd to lookup/update bpf maps, so we are restricted to do con

Re: [RFC] bpf: Suggestion on bpf syscall interface

2015-03-28 Thread Daniel Borkmann
On 03/28/2015 06:21 PM, Alexei Starovoitov wrote: On 3/28/15 4:36 AM, He Kuang wrote: Hi, Alexei In our end-end IO module project, we use bpf maps to record configurations. According to current bpf syscall interface, we should specify map_fd to lookup/update bpf maps, so we are restricted to do

Re: [RFC] bpf: Suggestion on bpf syscall interface

2015-03-28 Thread Alexei Starovoitov
On 3/28/15 4:36 AM, He Kuang wrote: Hi, Alexei In our end-end IO module project, we use bpf maps to record configurations. According to current bpf syscall interface, we should specify map_fd to lookup/update bpf maps, so we are restricted to do config in the same user program. you can pass ma

[RFC] bpf: Suggestion on bpf syscall interface

2015-03-28 Thread He Kuang
Hi, Alexei In our end-end IO module project, we use bpf maps to record configurations. According to current bpf syscall interface, we should specify map_fd to lookup/update bpf maps, so we are restricted to do config in the same user program. My suggestion is to export this kind of operations to