mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 16:33:17 +00:00
Based on prior work: https://lkml.org/lkml/2014/5/6/395 and on how other arches add libdw unwind support. Includes support for running the unwind test, e.g., on a system with only elfutils' libdw 0.170, the test now runs, and successfully: $ ./perf test unwind 56: Test dwarf unwind : Ok Originally-by: Jean Pihet <[email protected]> Reported-by: Christian Hansen <[email protected]> Signed-off-by: Kim Phillips <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
17 lines
264 B
C
17 lines
264 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
#include <string.h>
|
|
#include "tests/tests.h"
|
|
#include "arch-tests.h"
|
|
|
|
struct test arch_tests[] = {
|
|
#ifdef HAVE_DWARF_UNWIND_SUPPORT
|
|
{
|
|
.desc = "DWARF unwind",
|
|
.func = test__dwarf_unwind,
|
|
},
|
|
#endif
|
|
{
|
|
.func = NULL,
|
|
},
|
|
};
|