Re: syzbot rcu/debugobjects warning

2018-03-25 Thread Joel Fernandes
On Fri, Mar 23, 2018 at 1:41 PM, Thomas Gleixner <t...@linutronix.de> wrote: > On Fri, 23 Mar 2018, Joel Fernandes wrote: >> On Fri, Mar 23, 2018 at 2:11 AM, Thomas Gleixner <t...@linutronix.de> wrote: >> > On Thu, 22 Mar 2018, Joel Fernandes wrote: >> Sor

[PATCH v4 2/4] samples/bpf: Enable cross compiler support

2017-09-20 Thread Joel Fernandes
Starovoitov <a...@kernel.org> Signed-off-by: Joel Fernandes <joe...@google.com> --- samples/bpf/Makefile | 5 + 1 file changed, 5 insertions(+) diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile index cf17c7932a6e..13f74b67ca44 100644 --- a/samples/bpf/Makefile +++ b/samples/

[PATCH v4 1/4] samples/bpf: Use getppid instead of getpgrp for array map stress

2017-09-20 Thread Joel Fernandes
stress test. Acked-by: Alexei Starovoitov <a...@kernel.org> Signed-off-by: Joel Fernandes <joe...@google.com> --- samples/bpf/map_perf_test_kern.c | 2 +- samples/bpf/map_perf_test_user.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/bpf/map_perf_t

[PATCH v4 3/4] samples/bpf: Fix pt_regs issues when cross-compiling

2017-09-20 Thread Joel Fernandes
is going to run on. To fix this, lets pass ARCH so the header knows which target the BPF program is being compiled for and can use the correct pt_regs code. Acked-by: Alexei Starovoitov <a...@kernel.org> Signed-off-by: Joel Fernandes <joe...@google.com> --- samples/

[PATCH v4 4/4] samples/bpf: Add documentation on cross compilation

2017-09-20 Thread Joel Fernandes
Acked-by: Alexei Starovoitov <a...@kernel.org> Signed-off-by: Joel Fernandes <joe...@google.com> --- samples/bpf/README.rst | 10 ++ 1 file changed, 10 insertions(+) diff --git a/samples/bpf/README.rst b/samples/bpf/README.rst index 79f9a58f1872..2b906127ef54 100644 --- a

[PATCH v4 0/4] Add cross-compilation support to eBPF samples

2017-09-20 Thread Joel Fernandes
. Changes since v3: - just a repost with acks [1] https://lkml.org/lkml/2017/8/7/417 Joel Fernandes (4): samples/bpf: Use getppid instead of getpgrp for array map stress samples/bpf: Enable cross compiler support samples/bpf: Fix pt_regs issues when cross-compiling samples/bpf: Add

Re: [PATCH RFC v3 0/4] Add cross-compilation support to eBPF samples

2017-09-05 Thread Joel Fernandes
Hi Alexei, On Tue, Sep 5, 2017 at 8:24 PM, Alexei Starovoitov <alexei.starovoi...@gmail.com> wrote: > On Sun, Sep 03, 2017 at 11:23:21AM -0700, Joel Fernandes wrote: >> These patches fix issues seen when cross-compiling eBPF samples on arm64. >> Compared to [1], I dropped the

[PATCH RFC v3 1/4] samples/bpf: Use getppid instead of getpgrp for array map stress

2017-09-03 Thread Joel Fernandes
stress test. CC: Alexei Starovoitov <a...@kernel.org> CC: Daniel Borkmann <dan...@iogearbox.net> Cc: David Miller <da...@davemloft.net> Signed-off-by: Joel Fernandes <joe...@google.com> --- samples/bpf/map_perf_test_kern.c | 2 +- samples/bpf/map_perf_test_user.c |

[PATCH RFC v3 3/4] samples/bpf: Fix pt_regs issues when cross-compiling

2017-09-03 Thread Joel Fernandes
net> Signed-off-by: Joel Fernandes <joe...@google.com> --- samples/bpf/Makefile | 2 +- tools/testing/selftests/bpf/bpf_helpers.h | 56 +++ 2 files changed, 50 insertions(+), 8 deletions(-) diff --git a/samples/bpf/Makefile b/samples/bpf/Mak

[PATCH RFC v3 2/4] samples/bpf: Enable cross compiler support

2017-09-03 Thread Joel Fernandes
<a...@kernel.org> CC: Daniel Borkmann <dan...@iogearbox.net> Cc: David Miller <da...@davemloft.net> Signed-off-by: Joel Fernandes <joe...@google.com> --- samples/bpf/Makefile | 5 + 1 file changed, 5 insertions(+) diff --git a/samples/bpf/Makefile b/samples/bpf/Mak

[PATCH RFC v3 4/4] samples/bpf: Add documentation on cross compilation

2017-09-03 Thread Joel Fernandes
CC: Alexei Starovoitov <a...@kernel.org> CC: Daniel Borkmann <dan...@iogearbox.net> CC: David Miller <da...@davemloft.net> Signed-off-by: Joel Fernandes <joe...@google.com> --- samples/bpf/README.rst | 10 ++ 1 file changed, 10 insertions(+) diff --git a/samples/

[PATCH RFC v3 0/4] Add cross-compilation support to eBPF samples

2017-09-03 Thread Joel Fernandes
controversial bit. [1] https://lkml.org/lkml/2017/8/7/417 Joel Fernandes (4): samples/bpf: Use getppid instead of getpgrp for array map stress samples/bpf: Enable cross compiler support samples/bpf: Fix pt_regs issues when cross-compiling samples/bpf: Add documentation on cross compilation

Re: [PATCH RFC v2 3/5] samples/bpf: Fix inline asm issues building samples on arm64

2017-08-18 Thread Joel Fernandes
On Tue, Aug 8, 2017 at 8:35 PM, David Miller <da...@davemloft.net> wrote: > From: Joel Fernandes <joe...@google.com> > Date: Mon, 7 Aug 2017 18:20:49 -0700 > >> On Mon, Aug 7, 2017 at 11:28 AM, David Miller <da...@davemloft.net> wrote: >>> The amo

Re: [PATCH RFC v2 3/5] samples/bpf: Fix inline asm issues building samples on arm64

2017-08-07 Thread Joel Fernandes
Hi Dave, On Mon, Aug 7, 2017 at 11:28 AM, David Miller wrote: > > Please, no. Sorry you dislike it, I had intentionally marked it as RFC as its an idea I was just toying with the idea and posted it early to get feedback. > > The amount of hellish hacks we are adding to

Re: [PATCH RFC v2 3/5] samples/bpf: Fix inline asm issues building samples on arm64

2017-08-07 Thread Joel Fernandes
On Mon, Aug 7, 2017 at 6:06 AM, Joel Fernandes <joe...@google.com> wrote: > inline assembly has haunted building samples on arm64 for quite sometime. > This patch uses the pre-processor to noop all occurences of inline asm when > compiling the BPF sample for the BPF target.

[PATCH RFC v2 2/5] samples/bpf: Enable cross compiler support

2017-08-07 Thread Joel Fernandes
the cross target is running and its not smart to rely on it. Signed-off-by: Joel Fernandes <joe...@google.com> --- samples/bpf/Makefile | 6 ++ 1 file changed, 6 insertions(+) diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile index 6c7468eb3684..e5642c8c144d 100644 --- a/samples/bpf/Ma

[PATCH RFC v2 1/5] samples/bpf: Use getppid instead of getpgrp for array map stress

2017-08-07 Thread Joel Fernandes
stress test. Signed-off-by: Joel Fernandes <joe...@google.com> --- samples/bpf/map_perf_test_kern.c | 2 +- samples/bpf/map_perf_test_user.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/bpf/map_perf_test_kern.c b/samples/bpf/map_perf_test_kern.c index 245165

[PATCH RFC v2 3/5] samples/bpf: Fix inline asm issues building samples on arm64

2017-08-07 Thread Joel Fernandes
-kernel/2015-November/024036.html Signed-off-by: Joel Fernandes <joe...@google.com> --- samples/bpf/Makefile | 40 +--- samples/bpf/arm64_asmstubs.h | 3 +++ samples/bpf/bpf_helpers.h | 12 ++-- samples/bpf/generic_asmstubs.h | 4 +

[PATCH RFC v2 5/5] samples/bpf: Add documentation on cross compilation

2017-08-07 Thread Joel Fernandes
Signed-off-by: Joel Fernandes <joe...@google.com> --- samples/bpf/README.rst | 10 ++ 1 file changed, 10 insertions(+) diff --git a/samples/bpf/README.rst b/samples/bpf/README.rst index 79f9a58f1872..2b906127ef54 100644 --- a/samples/bpf/README.rst +++ b/samples/bpf/README.rst @@

[PATCH RFC v2 4/5] samples/bpf: Fix pt_regs issues when cross-compiling

2017-08-07 Thread Joel Fernandes
is going to run on. To fix this, lets pass ARCH so the header knows which target the BPF program is being compiled for and can use the correct pt_regs code. Signed-off-by: Joel Fernandes <joe...@google.com> --- samples/bpf/Makefile | 2 +- samples/bpf/bpf_helpers.

[PATCH RFC 2/5] samples/bpf: Enable cross compiler support

2017-08-07 Thread Joel Fernandes
the cross target is running and its not smart to rely on it. Signed-off-by: Joel Fernandes <joe...@google.com> --- samples/bpf/Makefile | 6 ++ 1 file changed, 6 insertions(+) diff --git a/samples/bpf/Makefile b/samples/bpf/Makefile index 6c7468eb3684..e5642c8c144d 100644 --- a/samples/bpf/Ma

[PATCH RFC 3/5] samples/bpf: Fix inline asm issues building samples on arm64

2017-08-07 Thread Joel Fernandes
-kernel/2015-November/024036.html Signed-off-by: Joel Fernandes <joe...@google.com> --- samples/bpf/Makefile | 40 +--- samples/bpf/arm64_asmstubs.h | 3 +++ samples/bpf/bpf_helpers.h | 12 ++-- samples/bpf/generic_asmstubs.h | 4 +

[PATCH RFC 4/5] samples/bpf: Fix pt_regs issues when cross-compiling

2017-08-07 Thread Joel Fernandes
is going to run on. To fix this, lets pass ARCH so the header knows which target the BPF program is being compiled for and can use the correct pt_regs code. Signed-off-by: Joel Fernandes <joe...@google.com> --- samples/bpf/Makefile | 2 +- samples/bpf/bpf_helpers.

[PATCH RFC 1/5] samples/bpf: Use getppid instead of getpgrp for array map stress

2017-08-07 Thread Joel Fernandes
stress test. Signed-off-by: Joel Fernandes <joe...@google.com> --- samples/bpf/map_perf_test_kern.c | 2 +- samples/bpf/map_perf_test_user.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/bpf/map_perf_test_kern.c b/samples/bpf/map_perf_test_kern.c index 245165

[PATCH RFC 5/5] samples/bpf: Add documentation on cross compilation

2017-08-07 Thread Joel Fernandes
Signed-off-by: Joel Fernandes <joe...@google.com> --- samples/bpf/README.rst | 10 ++ 1 file changed, 10 insertions(+) diff --git a/samples/bpf/README.rst b/samples/bpf/README.rst index 79f9a58f1872..2b906127ef54 100644 --- a/samples/bpf/README.rst +++ b/samples/bpf/README.rst @@

Re: [PATCH] samples/bpf: Fix cross compiler error with bpf sample

2017-08-05 Thread Joel Fernandes
Hi Daniel, >>> >>> So the only arch that sets __ARCH_WANT_SYSCALL_DEPRECATED >>> is score: >>> >>>$ git grep -n __ARCH_WANT_SYSCALL_DEPRECATED >>>arch/score/include/uapi/asm/unistd.h:7:#define >>> __ARCH_WANT_SYSCALL_DEPRECATED >>>include/uapi/asm-generic/unistd.h:837:#ifdef >>>

Re: [PATCH] samples/bpf: Fix cross compiler error with bpf sample

2017-08-04 Thread Joel Fernandes
On Fri, Aug 4, 2017 at 6:58 AM, Daniel Borkmann <dan...@iogearbox.net> wrote: > On 08/04/2017 07:46 AM, Joel Fernandes wrote: >> >> When cross-compiling the bpf sample map_perf_test for aarch64, I find that >> __NR_getpgrp is undefined. This causes build

[PATCH] samples/bpf: Fix cross compiler error with bpf sample

2017-08-03 Thread Joel Fernandes
When cross-compiling the bpf sample map_perf_test for aarch64, I find that __NR_getpgrp is undefined. This causes build errors. Fix it by allowing the deprecated syscall in the sample. Signed-off-by: Joel Fernandes <joe...@google.com> --- samples/bpf/map_perf_test_user.c | 2 ++ 1 file c