Thread (5 messages) flat view 5 messages, 3 authors, 2019-05-05

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

From: Alexei Starovoitov <hidden>
Date: 2019-05-05 07:05:21
Also in: bpf, linux-perf-users, lkml

On Thu, May 2, 2019 at 1:20 PM Y Song [off-list ref] wrote:
On Thu, May 2, 2019 at 8:57 AM Vineet Gupta [off-list ref] wrote:
quoted
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 <redacted>
Acked-by: Yonghong Song <redacted>
Applied. Thanks
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help