Re: [PATCH bpf-next 15/15] bpf: selftest: Add kfunc_call test

2021-03-18 Thread Martin KaFai Lau
On Thu, Mar 18, 2021 at 09:21:08PM -0700, Andrii Nakryiko wrote: > > --- /dev/null > > +++ b/tools/testing/selftests/bpf/prog_tests/kfunc_call.c > > @@ -0,0 +1,61 @@ > > +// SPDX-License-Identifier: GPL-2.0 > > +/* Copyright (c) 2021 Facebook */ > > +#include > > +#include > > +#include "kfunc_ca

Re: [PATCH bpf-next 15/15] bpf: selftest: Add kfunc_call test

2021-03-18 Thread Andrii Nakryiko
On Tue, Mar 16, 2021 at 12:02 AM Martin KaFai Lau wrote: > > This patch adds two kernel function bpf_kfunc_call_test[12]() for the > selftest's test_run purpose. They will be allowed for tc_cls prog. > > The selftest calling the kernel function bpf_kfunc_call_test[12]() > is also added in this pa

Re: [PATCH bpf-next 15/15] bpf: selftest: Add kfunc_call test

2021-03-15 Thread kernel test robot
Hi Martin, I love your patch! Yet something to improve: [auto build test ERROR on bpf-next/master] url: https://github.com/0day-ci/linux/commits/Martin-KaFai-Lau/Support-calling-kernel-function/20210316-091639 base: https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master co

[PATCH bpf-next 15/15] bpf: selftest: Add kfunc_call test

2021-03-15 Thread Martin KaFai Lau
This patch adds two kernel function bpf_kfunc_call_test[12]() for the selftest's test_run purpose. They will be allowed for tc_cls prog. The selftest calling the kernel function bpf_kfunc_call_test[12]() is also added in this patch. Signed-off-by: Martin KaFai Lau --- net/bpf/test_run.c