Staging
v0.8.1
swh:1:snp:a902887e4be9191b7c6c4406aa06b31c1ce2c7cc
Raw File
Tip revision: eb7081409f94a9a8608593d0fb63a1aa3d6f95d8 authored by Linus Torvalds on 21 November 2022, 00:02:16 UTC
Linux 6.1-rc6
Tip revision: eb70814
vectors-page.c
// 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]"

static int test__vectors_page(struct test_suite *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;
}

DEFINE_SUITE("Vectors page", vectors_page);
back to top