diff options
| author | Martin KaFai Lau <kafai@fb.com> | 2017-06-09 08:30:17 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2017-06-09 22:15:11 +0300 |
| commit | a2e8bbd2ef5457485f00b6b947bbbfa2778e5b1e (patch) | |
| tree | b9ddbe21ebbf9ef888e9ce9dcdfbc6247f9d1fd6 /tools/perf/scripts/python/sctop.py | |
| parent | fad07430bc03415a468d4ab28621ca71ae86c583 (diff) | |
| download | linux-a2e8bbd2ef5457485f00b6b947bbbfa2778e5b1e.tar.xz | |
bpf: Fix test_obj_id.c for llvm 5.0
llvm 5.0 does not like the section name and the function name
to be the same:
clang -I. -I./include/uapi -I../../../include/uapi \
-I../../../../samples/bpf/ \
-Wno-compare-distinct-pointer-types \
-O2 -target bpf -c \
linux/tools/testing/selftests/bpf/test_obj_id.c -o \
linux/tools/testing/selftests/bpf/test_obj_id.o
fatal error: error in backend: 'test_prog_id' label emitted multiple times to
assembly file
clang-5.0: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
clang version 5.0.0 (trunk 304326) (llvm/trunk 304329)
This patch makes changes to the section name and the function name.
Fixes: 95b9afd3987f ("bpf: Test for bpf ID")
Reported-by: Alexei Starovoitov <ast@fb.com>
Reported-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions
