21327c7843
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 <f.fainelli@gmail.com> Acked-by: Jiri Olsa <jolsa@kernel.org> Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com> Cc: Chris Healy <cphealy@gmail.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Kim Phillips <kim.phillips@arm.com> Cc: Lucas Stach <l.stach@pengutronix.de> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Ravi Bangoria <ravi.bangoria@linux.ibm.com> Cc: Russell King <rmk+kernel@armlinux.org.uk> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Thomas Richter <tmricht@linux.ibm.com> Link: http://lkml.kernel.org/r/20181221034337.26663-3-f.fainelli@gmail.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
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,
|
|
},
|
|
};
|