2 * Copyright (c) 2015 Cisco and/or its affiliates.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at:
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
16 *------------------------------------------------------------------
17 * svm_test.c -- brain police
18 *------------------------------------------------------------------
23 #include <sys/types.h>
26 #include <netinet/in.h>
33 #include <vppinfra/clib.h>
34 #include <vppinfra/vec.h>
35 #include <vppinfra/hash.h>
36 #include <vppinfra/bitmap.h>
37 #include <vppinfra/fifo.h>
38 #include <vppinfra/time.h>
39 #include <vppinfra/mheap.h>
40 #include <vppinfra/heap.h>
41 #include <vppinfra/pool.h>
47 main (int argc, char **argv)
49 svm_region_t *root_rp, *rp;
50 svm_map_region_args_t *a = 0;
54 root_rp = svm_region_init ();
61 rp = svm_region_find_or_create (root_rp, a);
65 *((u32 *) rp->data_base) = 0xdeadbeef;
66 svm_region_unmap (root_rp, rp);
68 fformat (stdout, "exiting...\n");
74 * fd.io coding-style-patch-verification: ON
77 * eval: (c-set-style "gnu")