mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

dwarf_getlocations support in libdw is more than 10 years old. Make libdw imply dwarf_getlocations support and simplify build logic. Signed-off-by: Ian Rogers <irogers@google.com> Acked-by: Namhyung Kim <namhyung@kernel.org> Tested-by: Leo Yan <leo.yan@arm.com> Cc: Anup Patel <anup@brainfault.org> Cc: Yang Jihong <yangjihong@bytedance.com> Cc: Palmer Dabbelt <palmer@dabbelt.com> Cc: David S. Miller <davem@davemloft.net> Cc: Albert Ou <aou@eecs.berkeley.edu> Cc: Shenlin Liang <liangshenlin@eswincomputing.com> Cc: Nick Terrell <terrelln@fb.com> Cc: Guilherme Amadio <amadio@gentoo.org> Cc: Steinar H. Gunderson <sesse@google.com> Cc: Changbin Du <changbin.du@huawei.com> Cc: Alexander Lobakin <aleksander.lobakin@intel.com> Cc: Przemek Kitszel <przemyslaw.kitszel@intel.com> Cc: Huacai Chen <chenhuacai@kernel.org> Cc: Guo Ren <guoren@kernel.org> Cc: Masahiro Yamada <masahiroy@kernel.org> Cc: Masami Hiramatsu (Google) <mhiramat@kernel.org> Cc: Will Deacon <will@kernel.org> Cc: James Clark <james.clark@linaro.org> Cc: Mike Leach <mike.leach@linaro.org> Cc: Chen Pei <cp0613@linux.alibaba.com> Cc: Leo Yan <leo.yan@linux.dev> Cc: Oliver Upton <oliver.upton@linux.dev> Cc: Aditya Gupta <adityag@linux.ibm.com> Cc: Kajol Jain <kjain@linux.ibm.com> Cc: Athira Rajeev <atrajeev@linux.vnet.ibm.com> Cc: linux-arm-kernel@lists.infradead.org Cc: linux-riscv@lists.infradead.org Cc: Bibo Mao <maobibo@loongson.cn> Cc: John Garry <john.g.garry@oracle.com> Cc: Atish Patra <atishp@rivosinc.com> Cc: Dima Kogan <dima@secretsauce.net> Cc: Paul Walmsley <paul.walmsley@sifive.com> Cc: Dr. David Alan Gilbert <linux@treblig.org> Cc: linux-csky@vger.kernel.org Link: https://lore.kernel.org/r/20241017001354.56973-7-irogers@google.com Signed-off-by: Namhyung Kim <namhyung@kernel.org>
213 lines
4.4 KiB
C
213 lines
4.4 KiB
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* test-all.c: Try to build all the main testcases at once.
|
|
*
|
|
* A well-configured system will have all the prereqs installed, so we can speed
|
|
* up auto-detection on such systems.
|
|
*/
|
|
|
|
/*
|
|
* Quirk: Python and Perl headers cannot be in arbitrary places, so keep
|
|
* these 3 testcases at the top:
|
|
*/
|
|
#define main main_test_libpython
|
|
# include "test-libpython.c"
|
|
#undef main
|
|
|
|
#define main main_test_libperl
|
|
# include "test-libperl.c"
|
|
#undef main
|
|
|
|
#define main main_test_hello
|
|
# include "test-hello.c"
|
|
#undef main
|
|
|
|
#define main main_test_libelf
|
|
# include "test-libelf.c"
|
|
#undef main
|
|
|
|
#define main main_test_get_current_dir_name
|
|
# include "test-get_current_dir_name.c"
|
|
#undef main
|
|
|
|
#define main main_test_gettid
|
|
# include "test-gettid.c"
|
|
#undef main
|
|
|
|
#define main main_test_glibc
|
|
# include "test-glibc.c"
|
|
#undef main
|
|
|
|
#define main main_test_libdw
|
|
# include "test-libdw.c"
|
|
#undef main
|
|
|
|
#define main main_test_eventfd
|
|
# include "test-eventfd.c"
|
|
#undef main
|
|
|
|
#define main main_test_libelf_getphdrnum
|
|
# include "test-libelf-getphdrnum.c"
|
|
#undef main
|
|
|
|
#define main main_test_libelf_gelf_getnote
|
|
# include "test-libelf-gelf_getnote.c"
|
|
#undef main
|
|
|
|
#define main main_test_libelf_getshdrstrndx
|
|
# include "test-libelf-getshdrstrndx.c"
|
|
#undef main
|
|
|
|
#define main main_test_libunwind
|
|
# include "test-libunwind.c"
|
|
#undef main
|
|
|
|
#define main main_test_libslang
|
|
# include "test-libslang.c"
|
|
#undef main
|
|
|
|
#define main main_test_libbfd
|
|
# include "test-libbfd.c"
|
|
#undef main
|
|
|
|
#define main main_test_libbfd_buildid
|
|
# include "test-libbfd-buildid.c"
|
|
#undef main
|
|
|
|
#define main main_test_backtrace
|
|
# include "test-backtrace.c"
|
|
#undef main
|
|
|
|
#define main main_test_libnuma
|
|
# include "test-libnuma.c"
|
|
#undef main
|
|
|
|
#define main main_test_numa_num_possible_cpus
|
|
# include "test-numa_num_possible_cpus.c"
|
|
#undef main
|
|
|
|
#define main main_test_timerfd
|
|
# include "test-timerfd.c"
|
|
#undef main
|
|
|
|
#define main main_test_stackprotector_all
|
|
# include "test-stackprotector-all.c"
|
|
#undef main
|
|
|
|
#define main main_test_zlib
|
|
# include "test-zlib.c"
|
|
#undef main
|
|
|
|
#define main main_test_pthread_attr_setaffinity_np
|
|
# include "test-pthread-attr-setaffinity-np.c"
|
|
#undef main
|
|
|
|
#define main main_test_pthread_barrier
|
|
# include "test-pthread-barrier.c"
|
|
#undef main
|
|
|
|
#define main main_test_scandirat
|
|
# include "test-scandirat.c"
|
|
#undef main
|
|
|
|
#define main main_test_sched_getcpu
|
|
# include "test-sched_getcpu.c"
|
|
#undef main
|
|
|
|
# if 0
|
|
/*
|
|
* Disable libbabeltrace check for test-all, because the requested
|
|
* library version is not released yet in most distributions. Will
|
|
* reenable later.
|
|
*/
|
|
|
|
#define main main_test_libbabeltrace
|
|
# include "test-libbabeltrace.c"
|
|
#undef main
|
|
#endif
|
|
|
|
#define main main_test_lzma
|
|
# include "test-lzma.c"
|
|
#undef main
|
|
|
|
#define main main_test_get_cpuid
|
|
# include "test-get_cpuid.c"
|
|
#undef main
|
|
|
|
#define main main_test_bpf
|
|
# include "test-bpf.c"
|
|
#undef main
|
|
|
|
#define main main_test_libcrypto
|
|
# include "test-libcrypto.c"
|
|
#undef main
|
|
|
|
#define main main_test_sdt
|
|
# include "test-sdt.c"
|
|
#undef main
|
|
|
|
#define main main_test_setns
|
|
# include "test-setns.c"
|
|
#undef main
|
|
|
|
#define main main_test_libaio
|
|
# include "test-libaio.c"
|
|
#undef main
|
|
|
|
#define main main_test_reallocarray
|
|
# include "test-reallocarray.c"
|
|
#undef main
|
|
|
|
#define main main_test_disassembler_four_args
|
|
# include "test-disassembler-four-args.c"
|
|
#undef main
|
|
|
|
#define main main_test_disassembler_init_styled
|
|
# include "test-disassembler-init-styled.c"
|
|
#undef main
|
|
|
|
#define main main_test_libzstd
|
|
# include "test-libzstd.c"
|
|
#undef main
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
main_test_libpython();
|
|
main_test_libperl();
|
|
main_test_hello();
|
|
main_test_libelf();
|
|
main_test_get_current_dir_name();
|
|
main_test_gettid();
|
|
main_test_glibc();
|
|
main_test_libdw();
|
|
main_test_eventfd();
|
|
main_test_libelf_getphdrnum();
|
|
main_test_libelf_gelf_getnote();
|
|
main_test_libelf_getshdrstrndx();
|
|
main_test_libunwind();
|
|
main_test_libslang();
|
|
main_test_libbfd();
|
|
main_test_libbfd_buildid();
|
|
main_test_backtrace();
|
|
main_test_libnuma();
|
|
main_test_numa_num_possible_cpus();
|
|
main_test_timerfd();
|
|
main_test_stackprotector_all();
|
|
main_test_zlib();
|
|
main_test_pthread_attr_setaffinity_np();
|
|
main_test_pthread_barrier();
|
|
main_test_lzma();
|
|
main_test_get_cpuid();
|
|
main_test_bpf();
|
|
main_test_libcrypto();
|
|
main_test_scandirat();
|
|
main_test_sched_getcpu();
|
|
main_test_sdt();
|
|
main_test_setns();
|
|
main_test_libaio();
|
|
main_test_reallocarray();
|
|
main_test_disassembler_four_args();
|
|
main_test_libzstd();
|
|
|
|
return 0;
|
|
}
|