Re: [PATCH v2] tools/bpf: fix perf build error with uClibc (seen on ARC)

From: Alexei Starovoitov
Date: Sun May 05 2019 - 03:05:57 EST


On Thu, May 2, 2019 at 1:20 PM Y Song <ys114321@xxxxxxxxx> wrote:
>
> On Thu, May 2, 2019 at 8:57 AM Vineet Gupta <Vineet.Gupta1@xxxxxxxxxxxx> wrote:
> >
> > When build perf for ARC recently, there was a build failure due to lack
> > of __NR_bpf.
> >
> > | Auto-detecting system features:
> > |
> > | ... get_cpuid: [ OFF ]
> > | ... bpf: [ on ]
> > |
> > | # error __NR_bpf not defined. libbpf does not support your arch.
> > ^~~~~
> > | bpf.c: In function 'sys_bpf':
> > | bpf.c:66:17: error: '__NR_bpf' undeclared (first use in this function)
> > | return syscall(__NR_bpf, cmd, attr, size);
> > | ^~~~~~~~
> > | sys_bpf
> >
> > Signed-off-by: Vineet Gupta <vgupta@xxxxxxxxxxxx>
>
> Acked-by: Yonghong Song <yhs@xxxxxx>

Applied. Thanks