xref: /freebsd/sys/riscv/vmm/vmm_stat.h (revision d3916eace506b8ab23537223f5c92924636a1c41)
1*d3916eacSRuslan Bukin /*-
2*d3916eacSRuslan Bukin  * SPDX-License-Identifier: BSD-3-Clause
3*d3916eacSRuslan Bukin  *
4*d3916eacSRuslan Bukin  * Copyright (c) 2011 NetApp, Inc.
5*d3916eacSRuslan Bukin  * All rights reserved.
6*d3916eacSRuslan Bukin  *
7*d3916eacSRuslan Bukin  * Redistribution and use in source and binary forms, with or without
8*d3916eacSRuslan Bukin  * modification, are permitted provided that the following conditions
9*d3916eacSRuslan Bukin  * are met:
10*d3916eacSRuslan Bukin  * 1. Redistributions of source code must retain the above copyright
11*d3916eacSRuslan Bukin  *    notice, this list of conditions and the following disclaimer.
12*d3916eacSRuslan Bukin  * 2. Redistributions in binary form must reproduce the above copyright
13*d3916eacSRuslan Bukin  *    notice, this list of conditions and the following disclaimer in the
14*d3916eacSRuslan Bukin  *    documentation and/or other materials provided with the distribution.
15*d3916eacSRuslan Bukin  * 3. Neither the name of the University nor the names of its contributors
16*d3916eacSRuslan Bukin  *    may be used to endorse or promote products derived from this software
17*d3916eacSRuslan Bukin  *    without specific prior written permission.
18*d3916eacSRuslan Bukin  *
19*d3916eacSRuslan Bukin  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20*d3916eacSRuslan Bukin  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21*d3916eacSRuslan Bukin  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22*d3916eacSRuslan Bukin  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23*d3916eacSRuslan Bukin  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24*d3916eacSRuslan Bukin  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25*d3916eacSRuslan Bukin  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26*d3916eacSRuslan Bukin  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27*d3916eacSRuslan Bukin  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28*d3916eacSRuslan Bukin  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29*d3916eacSRuslan Bukin  * SUCH DAMAGE.
30*d3916eacSRuslan Bukin  */
31*d3916eacSRuslan Bukin 
32*d3916eacSRuslan Bukin #ifndef _VMM_STAT_H_
33*d3916eacSRuslan Bukin #define	_VMM_STAT_H_
34*d3916eacSRuslan Bukin 
35*d3916eacSRuslan Bukin #include <dev/vmm/vmm_stat.h>
36*d3916eacSRuslan Bukin 
37*d3916eacSRuslan Bukin VMM_STAT_DECLARE(VMEXIT_COUNT);
38*d3916eacSRuslan Bukin VMM_STAT_DECLARE(VMEXIT_UNKNOWN);
39*d3916eacSRuslan Bukin VMM_STAT_DECLARE(VMEXIT_WFI);
40*d3916eacSRuslan Bukin VMM_STAT_DECLARE(VMEXIT_IRQ);
41*d3916eacSRuslan Bukin VMM_STAT_DECLARE(VMEXIT_UNHANDLED);
42*d3916eacSRuslan Bukin 
43*d3916eacSRuslan Bukin #endif
44