]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
tools/bpf: fix perf build error with uClibc (seen on ARC)
authorVineet Gupta <Vineet.Gupta1@synopsys.com>
Thu, 2 May 2019 15:56:50 +0000 (08:56 -0700)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 13 Aug 2019 12:11:36 +0000 (14:11 +0200)
commit4aa55b95efc897103e9d8fd8ac9467fb8e479519
treec426addbde1e19d86e4af027bb023dbe4318cb1e
parent0d61eec821ec029c16c10eeca869bfb74302af5a
tools/bpf: fix perf build error with uClibc (seen on ARC)

BugLink: https://bugs.launchpad.net/bugs/1837517
[ Upstream commit ca31ca8247e2d3807ff5fa1d1760616a2292001c ]

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@synopsys.com>
Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
tools/lib/bpf/bpf.c