diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 1998-08-29 01:27:36 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 1998-08-29 01:27:36 +0000 |
commit | ac7088afdc14bbc631a0a19d138de902da7debe9 (patch) | |
tree | 4363a79257ee945bb0804a9a11c210e3e057f1e8 /sys/arch | |
parent | a1c729508c7178cdb92b166e136841c7913885f7 (diff) |
TLB stats definitions
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/hppa/include/pte.h | 40 |
1 files changed, 39 insertions, 1 deletions
diff --git a/sys/arch/hppa/include/pte.h b/sys/arch/hppa/include/pte.h index b2f662f2d7c..1297e5c3d27 100644 --- a/sys/arch/hppa/include/pte.h +++ b/sys/arch/hppa/include/pte.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pte.h,v 1.1 1998/07/07 21:32:44 mickey Exp $ */ +/* $OpenBSD: pte.h,v 1.2 1998/08/29 01:27:35 mickey Exp $ */ /* * Copyright 1996 1995 by Open Software Foundation, Inc. @@ -68,4 +68,42 @@ /* protection for break page */ #define TLB_BREAK_PROT 0x02c00000 +#if defined(TLB_STATS) && !defined(_LOCORE) +struct dtlb_stats { + u_int dtlb_misses; + u_int dtlb_io; + u_int dtlb_misstime; + u_int dtlb_missflts; + u_int dtlb_missinsns; + u_int dtlb_cached; + u_int dtlb_tmp[2]; +}; + +struct itlb_stats { + u_int itlb_misses; + u_int itlb_gateway; + u_int itlb_misstime; + u_int itlb_missflts; + u_int itlb_missinsns; + u_int itlb_cached; + u_int itlb_dummy[2]; +}; + +struct tlbd_stats { + u_int tlbd_dirty; + u_int tlbd_flushes; + u_int tlbd_misstime; + u_int tlbd_missflts; + u_int tlbd_missinsns; + u_int tlbd_dummy[3]; +}; + +#ifdef _KERNEL +extern struct dtlb_stats dtlb_stats; +extern struct itlb_stats dtlb_stats; +extern struct tlbd_stats dtlb_stats; +#endif /* _KERNEL */ + +#endif /* TLB_STATS && !_LOCORE */ + #endif /* _HPPA_PTE_H_ */ |