[PATCH bpf-next v4] libbpf: Show supported ELF section names on when failed to guess a prog/attach type

2019-01-21 Thread Taeung Song
skb/stream_verdict sk_skb sk_msg lirc_mode2 flow_dissector cgroup/bind4 cgroup/bind6 cgroup/connect4 cgroup/connect6 cgroup/sendmsg4 cgroup/sendmsg6 Cc: Quentin Monnet Cc: Jakub Kicinski Cc: Andrey Ignatov Signed-off-by: Taeung Song --- tools/bpf/bpftool/prog.c | 10 ++-

Re: [PATCH RESEND bpf-next v3] libbpf: Show supported ELF section names on when failed to guess a prog/attach type

2019-01-21 Thread Taeung Song
On 1/21/19 8:45 PM, Quentin Monnet wrote: 2019-01-21 16:25 UTC+0900 ~ Taeung Song We need to let users check their wrong ELF section name with proper ELF section names when failed to get a prog/attach type from it. Because users can't realize libbpf guess prog/attach types from give

[PATCH RESEND bpf-next v3] libbpf: Show supported ELF section names on when failed to guess a prog/attach type

2019-01-20 Thread Taeung Song
skb/stream_verdict sk_skb sk_msg lirc_mode2 flow_dissector cgroup/bind4 cgroup/bind6 cgroup/connect4 cgroup/connect6 cgroup/sendmsg4 cgroup/sendmsg6 Reviewed-by: Jakub Kicinski Reviewed-by: Quentin Monnet Cc: Andrey Ignatov Signed-off-by: Taeung Song --- tools/bpf/bpftool/prog.c

[PATCH bpf-next v3] libbpf: Show supported ELF section names on when failed to guess a prog/attach type

2019-01-20 Thread Taeung Song
skb/stream_verdict sk_skb sk_msg lirc_mode2 flow_dissector cgroup/bind4 cgroup/bind6 cgroup/connect4 cgroup/connect6 cgroup/sendmsg4 cgroup/sendmsg6 Reviewed-by: Jakub Kicinski Reviewed-by: Quentin Monnet Signed-off-by: Taeung Song --- tools/bpf/bpftool/prog.c | 10 ++---

Re: [PATCH bpf-next v2] libbpf: Show supported ELF section names on when failed to guess a prog/attach type

2019-01-20 Thread Taeung Song
On 12/21/18 11:47 PM, Quentin Monnet wrote: 2018-12-21 22:22 UTC+0900 ~ Taeung Song We need to let users check their wrong ELF section name with proper ELF section names when failed to get a prog/attach type from it. Because users can't realize libbpf guess prog/attach types from give

[PATCH bpf-next v2] libbpf: Show supported ELF section names on when failed to guess a prog/attach type

2018-12-21 Thread Taeung Song
ow_dissector cgroup/bind4 cgroup/bind6 cgroup/connect4 cgroup/connect6 cgroup/sendmsg4 cgroup/sendmsg6 In addtion, add pr_out printing without the "libbpf: " prefix. Cc: Jakub Kicinski Cc: Quentin Monnet Cc: Andrey Ignatov Signed-off-by: Taeung Song --- tools/bpf/bpfto

Re: [PATCH bpf-next] libbpf: Show possible section(type) names on when failed to guess a type

2018-12-19 Thread Taeung Song
On 12/20/18 3:52 AM, Jakub Kicinski wrote: On Wed, 19 Dec 2018 17:52:40 +0900, Taeung Song wrote: We need to let users check their wrong section name with proper section names when failed to get proper type from it. Because there is no knowing what kind of section name can be used

Re: [PATCH bpf-next] libbpf: Show possible section(type) names on when failed to guess a type

2018-12-19 Thread Taeung Song
On 12/19/18 8:26 PM, Quentin Monnet wrote: 2018-12-19 17:52 UTC+0900 ~ Taeung Song We need to let users check their wrong section name with proper section names when failed to get proper type from it. Because there is no knowing what kind of section name can be used. For example, when a

[PATCH bpf-next] libbpf: Show possible section(type) names on when failed to guess a type

2018-12-19 Thread Taeung Song
ect4 cgroup/connect6 cgroup/sendmsg4 cgroup/sendmsg6 Cc: Jakub Kicinski Cc: Andrey Ignatov Signed-off-by: Taeung Song --- tools/bpf/bpftool/prog.c | 10 +++--- tools/lib/bpf/libbpf.c | 18 -- .../testing/selftests/bpf/test_

Re: [PATCH] samples/bpf: Add BTF build flags to Makefile

2018-07-26 Thread Taeung Song
On 07/26/2018 10:16 AM, Jakub Kicinski wrote: On Thu, 26 Jul 2018 01:30:39 +0900, Taeung Song wrote: To smoothly test BTF supported binary on samples/bpf, let samples/bpf/Makefile probe llc, pahole and llvm-objcopy for BPF support and use them like tools/testing/selftests/bpf/Makefile

Re: pahole + BTF was: Re: [Question] bpf: about a new 'tools/bpf/bpf_dwarf2btf'

2018-07-25 Thread Taeung Song
On 07/26/2018 03:27 AM, Taeung Song wrote: Hi Arnaldo, On 07/26/2018 02:52 AM, Arnaldo Carvalho de Melo wrote: Em Thu, Jul 26, 2018 at 02:23:32AM +0900, Taeung Song escreveu: Hi, Building bpf programs with .BTF section, I thought it'd be better to convert dwarf info to .BTF by a new

Re: pahole + BTF was: Re: [Question] bpf: about a new 'tools/bpf/bpf_dwarf2btf'

2018-07-25 Thread Taeung Song
Hi Arnaldo, On 07/26/2018 02:52 AM, Arnaldo Carvalho de Melo wrote: Em Thu, Jul 26, 2018 at 02:23:32AM +0900, Taeung Song escreveu: Hi, Building bpf programs with .BTF section, I thought it'd be better to convert dwarf info to .BTF by a new tool such as 'tools/bpf/bpf_dwarf2btf&#

[Question] bpf: about a new 'tools/bpf/bpf_dwarf2btf'

2018-07-25 Thread Taeung Song
Hi, Building bpf programs with .BTF section, I thought it'd be better to convert dwarf info to .BTF by a new tool such as 'tools/bpf/bpf_dwarf2btf' instead of pahole in the future. Currently for bpf binary that have .BTF section, we need to use pahole from https://github.com/iamkafai/pahole/tree

[PATCH] samples/bpf: Add BTF build flags to Makefile

2018-07-25 Thread Taeung Song
To smoothly test BTF supported binary on samples/bpf, let samples/bpf/Makefile probe llc, pahole and llvm-objcopy for BPF support and use them like tools/testing/selftests/bpf/Makefile changed from the commit c0fa1b6c3efc ("bpf: btf: Add BTF tests") Cc: Martin KaFai Lau Signed-off-

[PATCH v2 bpf-next] tools/bpftool: ignore build products

2018-07-24 Thread Taeung Song
For untracked things of tools/bpf, add this. Reviewed-by: Jakub Kicinski Signed-off-by: Taeung Song --- tools/bpf/.gitignore | 5 + tools/bpf/bpftool/.gitignore | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 tools/bpf/.gitignore diff --git a/tools/bpf/.gitignore b

[PATCH bpf-next] tools/bpftool: ignore build products

2018-07-24 Thread Taeung Song
For untracked things of tools/bpf, add this. Reviewed-by: Quentin Monnet Signed-off-by: Taeung Song --- tools/bpf/.gitignore | 5 + tools/bpf/bpftool/.gitignore | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 tools/bpf/.gitignore diff --git a/tools/bpf/.gitignore b

[PATCH v2 2/4] samples/bpf: Check the result of system()

2018-07-04 Thread Taeung Song
-off-by: Taeung Song --- samples/bpf/trace_event_user.c | 27 --- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/samples/bpf/trace_event_user.c b/samples/bpf/trace_event_user.c index 1fa1becfa641..d08046ab81f0 100644 --- a/samples/bpf/trace_event_user.c

[PATCH v2 4/4] samples/bpf: add .gitignore file

2018-07-04 Thread Taeung Song
For untracked executables of samples/bpf, add this. Untracked files: (use "git add ..." to include in what will be committed) samples/bpf/cpustat samples/bpf/fds_example samples/bpf/lathist samples/bpf/load_sock_ops ... Signed-off-by: T