]> git.baikalelectronics.ru Git - kernel.git/commit
perf build: Fix btf__load_from_kernel_by_id() feature check
authorJiri Olsa <jolsa@kernel.org>
Tue, 24 May 2022 12:06:12 +0000 (14:06 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 26 May 2022 14:02:02 +0000 (11:02 -0300)
commit1a3a1a42c3a98cbeaa893ecabe01d29fad641012
tree302a188fad55f78bcffa0a024da65a67e55ef4a5
parent6256d26ed7c2ed86b9ff887021d1629c3a57fd19
perf build: Fix btf__load_from_kernel_by_id() feature check

The btf__load_from_kernel_by_id() only takes one arg, not two.

Committer notes:

I tested it just with an older libbpf, one where
btf__load_from_kernel_by_id() wasn't introduced yet.

A test with a newer dynamic libbpf would fail because the
btf__load_from_kernel_by_id() is there, but takes just one arg.

Fixes: 86dc1804fad46974 ("perf build: Fix check for btf__load_from_kernel_by_id() in libbpf")
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Heiko Carstens <hca@linux.ibm.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ilya Leoshkevich <iii@linux.ibm.com>
Cc: Sumanth Korikkar <sumanthk@linux.ibm.com>
Cc: Sven Schnelle <svens@linux.ibm.com>
Cc: Thomas Richter <tmricht@linux.ibm.com>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Link: http://lore.kernel.org/linux-perf-users/YozLKby7ITEtchC9@krava
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/build/feature/test-libbpf-btf__load_from_kernel_by_id.c