* ========== Copyright Header Begin ==========================================
* Hypervisor Software File: mmustat.h
* Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved.
* - Do no alter or remove copyright notices
* - Redistribution and use of this software in source and binary forms, with
* or without modification, are permitted provided that the following
* - Redistribution of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* - Redistribution in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of Sun Microsystems, Inc. or the names of contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
* This software is provided "AS IS," without a warranty of any kind.
* ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
* INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
* PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN
* MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE FOR
* ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
* DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN
* OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR
* FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE
* DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY,
* ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF
* SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
* You acknowledge that this software is not designed, licensed or
* intended for use in the design, construction, operation or maintenance of
* ========== Copyright Header End ============================================
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
#pragma ident "@(#)mmustat.h 1.3 05/08/23 SMI"
MMU statistic buffer format
offset (bytes) size (bytes) field
-------------- ------------ -----
0x0 0x8 IMMU TSB hits ctx0, 8kb TTE
0x8 0x8 IMMU TSB %tick's ctx0, 8kb TTE
0x10 0x8 IMMU TSB hits ctx0, 64kb TTE
0x18 0x8 IMMU TSB %tick's ctx0, 64kb TTE
0x30 0x8 IMMU TSB hits ctx0, 4mb TTE
0x38 0x8 IMMU TSB %tick's ctx0, 4mb TTE
0x50 0x8 IMMU TSB hits ctx0, 256mb TTE
0x58 0x8 IMMU TSB %tick's ctx0, 256mb TTE
0x80 0x8 IMMU TSB hits ctxnon0, 8kb TTE
0x88 0x8 IMMU TSB %tick's ctxnon0, 8kb TTE
0x90 0x8 IMMU TSB hits ctxnon0, 64kb TTE
0x98 0x8 IMMU TSB %tick's ctxnon0, 64kb TTE
0xB0 0x8 IMMU TSB hits ctxnon0, 4mb TTE
0xB8 0x8 IMMU TSB %tick's ctxnon0, 4mb TTE
0xD0 0x8 IMMU TSB hits ctxnon0, 256mb TTE
0xD8 0x8 IMMU TSB %tick's ctxnon0, 256mb TTE
0x100 0x8 DMMU TSB hit ctx0, 8kb TTE
0x108 0x8 DMMU TSB %tick's ctx0, 8kb TTE
0x110 0x8 DMMU TSB hit ctx0, 64kb TTE
0x118 0x8 DMMU TSB %tick's ctx0, 64kb TTE
0x130 0x8 DMMU TSB hit ctx0, 4mb TTE
0x138 0x8 DMMU TSB %tick's ctx0, 4mb TTE
0x150 0x8 DMMU TSB hit ctx0, 256mb TTE
0x158 0x8 DMMU TSB %tick's ctx0, 256mb TTE
0x180 0x8 DMMU TSB hit ctxnon0, 8kb TTE
0x188 0x8 DMMU TSB %tick's ctxnon0, 8kb TTE
0x190 0x8 DMMU TSB hit ctxnon0, 64kb TTE
0x198 0x8 DMMU TSB %tick's ctxnon0, 64kb TTE
0x1B0 0x8 DMMU TSB hit ctxnon0, 4mb TTE
0x1B8 0x8 DMMU TSB %tick's ctxnon0, 4mb TTE
0x1D0 0x8 DMMU TSB hit ctxnon0, 256mb TTE
0x1D8 0x8 DMMU TSB %tick's ctxnon0, 256mb TTE
#define MMUSTAT_CTXNON0 0x80
#define MMUSTAT_ENTRY_SZ_SHIFT 4
#define MMUSTAT_AREA_SIZE 0x200
#define MMUSTAT_AREA_ALIGN 0x8