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

2018-06-11 Thread Yonghong Song
On 6/11/18 6:49 PM, Jakub Kicinski wrote: On Mon, 11 Jun 2018 18:15:16 -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 whethe

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

2018-06-11 Thread Jakub Kicinski
On Mon, 11 Jun 2018 18:15:16 -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] 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[