aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Miller <davem@t1000.davemloft.net>2007-06-04 02:38:09 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-06-05 00:49:57 -0400
commitd887ab3a9b1899f88b8cfba531e726b5fb2ebd14 (patch)
tree2f60de04ddf40419c295da0d9f64024fdc53d372 /include
parent48b67356400dd7866c035024aeaa2f804de7cead (diff)
[SPARC64]: Provide mmu statistics via sysfs.
If the system supports hypervisor based statistics, allow them to be fetched, enabled, and disabled via sysfs. Enable and disable via the boolean: /sys/devices/systems/cpu/cpuN/mmustat_enable Statistic values are provided under: /sys/devices/systems/cpu/cpuN/mmu_status/ Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/asm-sparc64/hypervisor.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-sparc64/hypervisor.h b/include/asm-sparc64/hypervisor.h
index 4a43075a0619..5c2f9d4b9f06 100644
--- a/include/asm-sparc64/hypervisor.h
+++ b/include/asm-sparc64/hypervisor.h
@@ -2798,6 +2798,11 @@ struct hv_mmu_statistics {
2798 */ 2798 */
2799#define HV_FAST_MMUSTAT_INFO 0x103 2799#define HV_FAST_MMUSTAT_INFO 0x103
2800 2800
2801#ifndef __ASSEMBLY__
2802extern unsigned long sun4v_mmustat_conf(unsigned long ra, unsigned long *orig_ra);
2803extern unsigned long sun4v_mmustat_info(unsigned long *ra);
2804#endif
2805
2801/* NCS crypto services */ 2806/* NCS crypto services */
2802 2807
2803/* ncs_request() sub-function numbers */ 2808/* ncs_request() sub-function numbers */