Merge tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / tools / perf / arch / arm / tests / vectors-page.c
blob7ffdd79971c89220ba5f3c9c3665ff3e8f549c95
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 int test__vectors_page(struct test *test __maybe_unused,
13 int subtest __maybe_unused)
15 void *start, *end;
17 if (find_map(&start, &end, VECTORS__MAP_NAME)) {
18 pr_err("%s not found, is CONFIG_KUSER_HELPERS enabled?\n",
19 VECTORS__MAP_NAME);
20 return TEST_FAIL;
23 return TEST_OK;