vectors-page.c (564B)
1// SPDX-License-Identifier: GPL-2.0 2#include <stdio.h> 3#include <string.h> 4#include <linux/compiler.h> 5 6#include "debug.h" 7#include "tests/tests.h" 8#include "util/find-map.c" 9 10#define VECTORS__MAP_NAME "[vectors]" 11 12static int test__vectors_page(struct test_suite *test __maybe_unused, int subtest __maybe_unused) 13{ 14 void *start, *end; 15 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; 20 } 21 22 return TEST_OK; 23} 24 25DEFINE_SUITE("Vectors page", vectors_page);