Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 #include <stdio.h>
0003 #include <string.h>
0004 #include <linux/compiler.h>
0005 
0006 #include "debug.h"
0007 #include "tests/tests.h"
0008 #include "util/find-map.c"
0009 
0010 #define VECTORS__MAP_NAME "[vectors]"
0011 
0012 static int test__vectors_page(struct test_suite *test __maybe_unused, int subtest __maybe_unused)
0013 {
0014     void *start, *end;
0015 
0016     if (find_map(&start, &end, VECTORS__MAP_NAME)) {
0017         pr_err("%s not found, is CONFIG_KUSER_HELPERS enabled?\n",
0018                VECTORS__MAP_NAME);
0019         return TEST_FAIL;
0020     }
0021 
0022     return TEST_OK;
0023 }
0024 
0025 DEFINE_SUITE("Vectors page", vectors_page);