xref: /kernel/linux/linux-5.10/tools/perf/arch/arm/tests/vectors-page.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/tools/perf/arch/arm/tests/
18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci#include <stdio.h>
38c2ecf20Sopenharmony_ci#include <string.h>
48c2ecf20Sopenharmony_ci#include <linux/compiler.h>
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#include "debug.h"
78c2ecf20Sopenharmony_ci#include "tests/tests.h"
88c2ecf20Sopenharmony_ci#include "util/find-map.c"
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#define VECTORS__MAP_NAME "[vectors]"
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ciint test__vectors_page(struct test *test __maybe_unused,
138c2ecf20Sopenharmony_ci		       int subtest __maybe_unused)
148c2ecf20Sopenharmony_ci{
158c2ecf20Sopenharmony_ci	void *start, *end;
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci	if (find_map(&start, &end, VECTORS__MAP_NAME)) {
188c2ecf20Sopenharmony_ci		pr_err("%s not found, is CONFIG_KUSER_HELPERS enabled?\n",
198c2ecf20Sopenharmony_ci		       VECTORS__MAP_NAME);
208c2ecf20Sopenharmony_ci		return TEST_FAIL;
218c2ecf20Sopenharmony_ci	}
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci	return TEST_OK;
248c2ecf20Sopenharmony_ci}
25

Indexes created Thu Nov 07 10:32:03 CST 2024