Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / tools / perf / arch / arm / tests / vectors-page.c
blob55a8358374666e2a406695ac36b4bc35b5aa1f9c
1 // SPDX-License-Identifier: GPL-2.0
2 #include <stdio.h>
3 #include <string.h>
4 #include <linux/compiler.h>
6 #include "debug.h"
7 #include "tests/tests.h"
8 #include "util/find-map.c"
10 #define VECTORS__MAP_NAME "[vectors]"
12 static int test__vectors_page(struct test_suite *test __maybe_unused, int subtest __maybe_unused)
14 void *start, *end;
16 if (find_map(&start, &end, VECTORS__MAP_NAME)) {
17 pr_err("%s not found, is CONFIG_KUSER_HELPERS enabled?\n",
18 VECTORS__MAP_NAME);
19 return TEST_FAIL;
22 return TEST_OK;
25 DEFINE_SUITE("Vectors page", vectors_page);