tmp_suning_uos_patched/tools/lib/bpf
Naveen N. Rao d5ef314035 perf bpf: Fix build breakage due to libbpf
perf build is currently (v4.4-rc5) broken on powerpc:

  bpf.c:28:4: error: #error __NR_bpf not defined. libbpf does not support
  your arch.
   #  error __NR_bpf not defined. libbpf does not support your arch.
      ^

Fix this by including tools/scripts/Makefile.arch for the proper $ARCH
macro. While at it, remove redundant LP64 macro definition.

Also, since libbpf require $(srctree) now, detect the path of srctree
like perf.

Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Cc: Wang Nan <wangnan0@huawei.com>
Cc: Zefan Li <lizefan@huawei.com>
Cc: pi3orama@163.com
Link: http://lkml.kernel.org/r/1452520124-2073-10-git-send-email-wangnan0@huawei.com
[Use tools/scripts/Makefile.arch]
Signed-off-by: Wang Nan <wangnan0@huawei.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2016-01-11 19:22:21 -03:00
..
.gitignore
bpf.c perf tools: Fix PowerPC native building 2016-01-11 19:22:20 -03:00
bpf.h bpf tools: Add helper function for updating bpf maps elements 2015-11-26 17:21:24 -03:00
Build
libbpf.c tools lib bpf: Fetch map names from correct strtab 2015-12-11 08:53:04 -03:00
libbpf.h tools lib bpf: Extract and collect map names from BPF object file 2015-11-27 21:59:53 -03:00
Makefile perf bpf: Fix build breakage due to libbpf 2016-01-11 19:22:21 -03:00