[PATCH] bpf: fix broken BPF selftest build on s390

2017-12-18 Thread Hendrik Brueckner
//marc.info/?l=linux-s390&m=151359424420691&w=2 Please note that this needs to be preserved until tools/ is able to correctly handle asm specific headers. References: https://marc.info/?l=linux-s390&m=151359424420691&w=2 Fixes: 720f228e8d31 ("bpf: fix broken BPF selftest bui

Re: [PATCH bpf 3/3] bpf: fix broken BPF selftest build

2017-12-18 Thread Hendrik Brueckner
ts/bpf: sync kernel headers and introduce arch > support in Makefile") > Signed-off-by: Daniel Borkmann > Cc: Hendrik Brueckner > Cc: Arnaldo Carvalho de Melo > Acked-by: Alexei Starovoitov > --- > tools/include/uapi/asm/bpf_perf_event.h | 7 +++ > tools/

[PATCH v2 1/6] bpf: correct broken uapi for BPF_PROG_TYPE_PERF_EVENT program type

2017-12-04 Thread Hendrik Brueckner
ter Fixes: 0515e5999a466dfe ("bpf: introduce BPF_PROG_TYPE_PERF_EVENT program type") Signed-off-by: Hendrik Brueckner Reviewed-and-tested-by: Thomas Richter Acked-by: Alexei Starovoitov Cc: Arnaldo Carvalho de Melo Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Alexander Shishkin Cc: Jiri Ol

[PATCH v2 4/6] s390/uapi: correct whitespace & coding style in asm/ptrace.h

2017-12-04 Thread Hendrik Brueckner
Correct whitespace and coding style issues in the s390 asm/ptrace.h uapi header file. This is preparatory work to copy it to the tools/ directory for inclusion by selftests and perf. Signed-off-by: Hendrik Brueckner --- arch/s390/include/uapi/asm/ptrace.h | 118

[PATCH v2 5/6] selftests/bpf: sync kernel headers and introduce arch support in Makefile

2017-12-04 Thread Hendrik Brueckner
Synchronize the uapi kernel header files which solves the broken uapi export of pt_regs. Because of arch-specific uapi headers, extended the include path in the Makefile. With this change, the test_verifier program compiles and runs successfully on s390. Signed-off-by: Hendrik Brueckner

[PATCH v2 6/6] perf s390: add regs_query_register_offset()

2017-12-04 Thread Hendrik Brueckner
h to keep the header file in sync with kernel changes. Suggested-by: Thomas Richter Signed-off-by: Hendrik Brueckner Reviewed-and-tested-by: Thomas Richter Acked-by: Alexei Starovoitov Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Heiko Carstens --- tools/perf/arch/s390/Makefile

[PATCH v2 0/6] bpf: correct broken uapi for BPF_PROG_TYPE_PERF_EVENT program type

2017-12-04 Thread Hendrik Brueckner
e.h (#4/6) as suggested by Alexei. Hendrik Brueckner (6): bpf: correct broken uapi for BPF_PROG_TYPE_PERF_EVENT program type s390/bpf: correct broken uapi for BPF_PROG_TYPE_PERF_EVENT program type arm64/bpf: correct broken uapi for BPF_PROG_TYPE_PERF_EVENT program type s390/uapi:

[PATCH v2 2/6] s390/bpf: correct broken uapi for BPF_PROG_TYPE_PERF_EVENT program type

2017-12-04 Thread Hendrik Brueckner
version only. (Of course, s390 tries to ensure keep it stable as much as possible.) Signed-off-by: Hendrik Brueckner Reviewed-and-tested-by: Thomas Richter Acked-by: Alexei Starovoitov Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: Arnaldo Carvalho de Melo Cc: Daniel Borkmann --- arch/s390

[PATCH v2 3/6] arm64/bpf: correct broken uapi for BPF_PROG_TYPE_PERF_EVENT program type

2017-12-04 Thread Hendrik Brueckner
Correct the broken uapi for the BPF_PROG_TYPE_PERF_EVENT program type by exporting the user_pt_regs structure instead of the pt_regs structure that is in-kernel only. Signed-off-by: Hendrik Brueckner Reviewed-by: Thomas Richter Acked-by: Alexei Starovoitov Cc: Will Deacon Cc: Mark Rutland Cc

Re: [PATCH 1/5] bpf: correct broken uapi for BPF_PROG_TYPE_PERF_EVENT program type

2017-12-04 Thread Hendrik Brueckner
Hi Alexei, On Sun, Dec 03, 2017 at 09:51:10AM -0800, Alexei Starovoitov wrote: > On Fri, Dec 01, 2017 at 03:19:04PM +0100, Hendrik Brueckner wrote: > > --- a/include/uapi/linux/bpf_perf_event.h > > +++ b/include/uapi/linux/bpf_perf_event.h > > @@ -8,11

[PATCH 0/5] bpf: correct broken uapi for BPF_PROG_TYPE_PERF_EVENT program type

2017-12-01 Thread Hendrik Brueckner
function is added for s390 to support BPF prologue creation. Hendrik Brueckner (5): bpf: correct broken uapi for BPF_PROG_TYPE_PERF_EVENT program type s390/bpf: correct broken uapi for BPF_PROG_TYPE_PERF_EVENT program type arm64/bpf: correct broken uapi for BPF_PROG_TYPE_PERF_EVENT program

[PATCH 1/5] bpf: correct broken uapi for BPF_PROG_TYPE_PERF_EVENT program type

2017-12-01 Thread Hendrik Brueckner
ter Fixes: 0515e5999a466dfe ("bpf: introduce BPF_PROG_TYPE_PERF_EVENT program type") Signed-off-by: Hendrik Brueckner Reviewed-and-tested-by: Thomas Richter Cc: Arnaldo Carvalho de Melo Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Namhyung Kim C

[PATCH 2/5] s390/bpf: correct broken uapi for BPF_PROG_TYPE_PERF_EVENT program type

2017-12-01 Thread Hendrik Brueckner
version only. (Of course, s390 tries to ensure keep it stable as much as possible.) Signed-off-by: Hendrik Brueckner Reviewed-and-tested-by: Thomas Richter Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: Arnaldo Carvalho de Melo Cc: Alexei Starovoitov Cc: Daniel Borkmann --- arch/s390/include

[PATCH 5/5] perf s390: add regs_query_register_offset()

2017-12-01 Thread Hendrik Brueckner
h to keep the header file in sync with kernel changes. Suggested-by: Thomas Richter Signed-off-by: Hendrik Brueckner Reviewed-and-tested-by: Thomas Richter Cc: Arnaldo Carvalho de Melo Cc: Jiri Olsa Cc: Heiko Carstens --- tools/perf/arch/s390/Makefile | 1 + tools/perf/arch/s390/ut

[PATCH 4/5] selftests/bpf: sync kernel headers and introduce arch support in Makefile

2017-12-01 Thread Hendrik Brueckner
Synchronize the uapi kernel header files which solves the broken uapi export of pt_regs. Because of arch-specific uapi headers, extended the include path in the Makefile. With this change, the test_verifier program compiles and runs successfully on s390. Signed-off-by: Hendrik Brueckner

[PATCH 3/5] arm64/bpf: correct broken uapi for BPF_PROG_TYPE_PERF_EVENT program type

2017-12-01 Thread Hendrik Brueckner
Correct the broken uapi for the BPF_PROG_TYPE_PERF_EVENT program type by exporting the user_pt_regs structure instead of the pt_regs structure that is in-kernel only. Signed-off-by: Hendrik Brueckner Reviewed-by: Thomas Richter Cc: Will Deacon Cc: Mark Rutland Cc: Arnaldo Carvalho de Melo