Re: [PATCH bpf v3] tools/bpftool: fix a bug in bpftool perf

2018-06-12 Thread Daniel Borkmann
On 06/12/2018 07:35 AM, Yonghong Song wrote: > Commit b04df400c302 ("tools/bpftool: add perf subcommand") > introduced bpftool subcommand perf to query bpf program > kuprobe and tracepoint attachments. > > The perf subcommand will first test whether bpf subcommand > BPF_TASK_FD_QUERY is supported

Re: [PATCH bpf v3] tools/bpftool: fix a bug in bpftool perf

2018-06-12 Thread Jakub Kicinski
On Mon, 11 Jun 2018 22:35:48 -0700, Yonghong Song wrote: > Commit b04df400c302 ("tools/bpftool: add perf subcommand") > introduced bpftool subcommand perf to query bpf program > kuprobe and tracepoint attachments. > > The perf subcommand will first test whether bpf subcommand > BPF_TASK_FD_QUERY i

[PATCH bpf v3] tools/bpftool: fix a bug in bpftool perf

2018-06-11 Thread Yonghong Song
Commit b04df400c302 ("tools/bpftool: add perf subcommand") introduced bpftool subcommand perf to query bpf program kuprobe and tracepoint attachments. The perf subcommand will first test whether bpf subcommand BPF_TASK_FD_QUERY is supported in kernel or not. It does it by opening a file with argv[