aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/arch/arm/tests/vectors-page.c
blob: 7ffdd79971c89220ba5f3c9c3665ff3e8f549c95 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// SPDX-License-Identifier: GPL-2.0
#include <stdio.h>
#include <string.h>
#include <linux/compiler.h>

#include "debug.h"
#include "tests/tests.h"
#include "util/find-map.c"

#define VECTORS__MAP_NAME "[vectors]"

int test__vectors_page(struct test *test __maybe_unused,
		       int subtest __maybe_unused)
{
	void *start, *end;

	if (find_map(&start, &end, VECTORS__MAP_NAME)) {
		pr_err("%s not found, is CONFIG_KUSER_HELPERS enabled?\n",
		       VECTORS__MAP_NAME);
		return TEST_FAIL;
	}

	return TEST_OK;
}