mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 08:23:17 +00:00
perf on ARM requires CONFIG_KUSER_HELPERS to be turned on to allow some independance with respect to the ARM CPU being used. Add a test which tries to locate the [vectors] page, created when CONFIG_KUSER_HELPERS is turned on to help asses the system's health. Signed-off-by: Florian Fainelli <[email protected]> Acked-by: Jiri Olsa <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Chris Healy <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Kim Phillips <[email protected]> Cc: Lucas Stach <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Ravi Bangoria <[email protected]> Cc: Russell King <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Thomas Richter <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
21 lines
327 B
C
21 lines
327 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
|
|
{
|
|
.desc = "Vectors page",
|
|
.func = test__vectors_page,
|
|
},
|
|
{
|
|
.func = NULL,
|
|
},
|
|
};
|