Re: [PATCH bpf-next v3 18/21] tools/bpftool: add bpf_iter support for bptool

2020-05-08 Thread Yonghong Song
On 5/8/20 12:51 PM, Andrii Nakryiko wrote: On Wed, May 6, 2020 at 10:40 PM Yonghong Song wrote: Currently, only one command is supported bpftool iter pin It will pin the trace/iter bpf program in the object file to the where should be on a bpffs mount. For example, $ bpftool it

Re: [PATCH bpf-next v3 18/21] tools/bpftool: add bpf_iter support for bptool

2020-05-08 Thread Andrii Nakryiko
On Wed, May 6, 2020 at 10:40 PM Yonghong Song wrote: > > Currently, only one command is supported > bpftool iter pin > > It will pin the trace/iter bpf program in > the object file to the > where should be on a bpffs mount. > > For example, > $ bpftool iter pin ./bpf_iter_ipv6_route.o \ >

[PATCH bpf-next v3 18/21] tools/bpftool: add bpf_iter support for bptool

2020-05-06 Thread Yonghong Song
Currently, only one command is supported bpftool iter pin It will pin the trace/iter bpf program in the object file to the where should be on a bpffs mount. For example, $ bpftool iter pin ./bpf_iter_ipv6_route.o \ /sys/fs/bpf/my_route User can then do a `cat` to print out the result