From d887ab3a9b1899f88b8cfba531e726b5fb2ebd14 Mon Sep 17 00:00:00 2001 From: David Miller Date: Sun, 3 Jun 2007 23:38:09 -0700 Subject: [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 --- arch/sparc64/kernel/entry.S | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'arch/sparc64/kernel/entry.S') diff --git a/arch/sparc64/kernel/entry.S b/arch/sparc64/kernel/entry.S index 5b2831590093..7d1a11822a1e 100644 --- a/arch/sparc64/kernel/entry.S +++ b/arch/sparc64/kernel/entry.S @@ -2570,3 +2570,25 @@ sun4v_svc_clrstatus: retl nop .size sun4v_svc_clrstatus, .-sun4v_svc_clrstatus + + .globl sun4v_mmustat_conf + .type sun4v_mmustat_conf,#function +sun4v_mmustat_conf: + mov %o1, %o4 + mov HV_FAST_MMUSTAT_CONF, %o5 + ta HV_FAST_TRAP + stx %o1, [%o4] + retl + nop + .size sun4v_mmustat_conf, .-sun4v_mmustat_conf + + .globl sun4v_mmustat_info + .type sun4v_mmustat_info,#function +sun4v_mmustat_info: + mov %o0, %o4 + mov HV_FAST_MMUSTAT_INFO, %o5 + ta HV_FAST_TRAP + stx %o1, [%o4] + retl + nop + .size sun4v_mmustat_info, .-sun4v_mmustat_info -- cgit v1.2.3