mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 14:23:49 +01:00
The separate test files only exist to pass a different #include, instead have a single source file and pass -include to $(CC) to include the relevant header file for the architecture being tested. Generate the rules using a foreach loop. Include tests for all current libunwind architectures. Signed-off-by: Ian Rogers <[email protected]> Cc: Adrian Hunter <[email protected]> Cc: Albert Ou <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Alexandre Ghiti <[email protected]> Cc: Andrew Jones <[email protected]> Cc: Athira Rajeev <[email protected]> Cc: Dapeng Mi <[email protected]> Cc: Dmitrii Dolgov <[email protected]> Cc: Florian Fainelli <[email protected]> Cc: Howard Chu <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: James Clark <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: John Garry <[email protected]> Cc: Leo Yan <[email protected]> Cc: Li Guan <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Palmer Dabbelt <[email protected]> Cc: Paul Walmsley <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Shimin Guo <[email protected]> Cc: Thomas Richter <[email protected]> Cc: Tomas Glozar <[email protected]> Cc: Will Deacon <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
28 lines
724 B
C
28 lines
724 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#include <stdlib.h>
|
|
|
|
extern int UNW_OBJ(dwarf_search_unwind_table) (unw_addr_space_t as,
|
|
unw_word_t ip,
|
|
unw_dyn_info_t *di,
|
|
unw_proc_info_t *pi,
|
|
int need_unwind_info, void *arg);
|
|
|
|
|
|
#define dwarf_search_unwind_table UNW_OBJ(dwarf_search_unwind_table)
|
|
|
|
static unw_accessors_t accessors;
|
|
|
|
int main(void)
|
|
{
|
|
unw_addr_space_t addr_space;
|
|
|
|
addr_space = unw_create_addr_space(&accessors, 0);
|
|
if (addr_space)
|
|
return 0;
|
|
|
|
unw_init_remote(NULL, addr_space, NULL);
|
|
dwarf_search_unwind_table(addr_space, 0, NULL, NULL, 0, NULL);
|
|
|
|
return 0;
|
|
}
|