diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2015-08-20 11:28:44 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2015-10-14 08:32:06 -0400 |
commit | 1ec2772e0c3ca3159035c03165355e355efc326b (patch) | |
tree | 469be3ba9032d367e4a796d6a31b25ccaab0d06a /arch/s390/mm/fault.c | |
parent | acdc9fc9a8121ce2ebcd7533bd72852c20b353f3 (diff) |
s390/diag: add a statistic for diagnose calls
Introduce /sys/debug/kernel/diag_stat with a statistic how many diagnose
calls have been done by each CPU in the system.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/mm/fault.c')
-rw-r--r-- | arch/s390/mm/fault.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/s390/mm/fault.c b/arch/s390/mm/fault.c index f985856a538b..77b3938d6bfa 100644 --- a/arch/s390/mm/fault.c +++ b/arch/s390/mm/fault.c | |||
@@ -30,6 +30,7 @@ | |||
30 | #include <linux/uaccess.h> | 30 | #include <linux/uaccess.h> |
31 | #include <linux/hugetlb.h> | 31 | #include <linux/hugetlb.h> |
32 | #include <asm/asm-offsets.h> | 32 | #include <asm/asm-offsets.h> |
33 | #include <asm/diag.h> | ||
33 | #include <asm/pgtable.h> | 34 | #include <asm/pgtable.h> |
34 | #include <asm/irq.h> | 35 | #include <asm/irq.h> |
35 | #include <asm/mmu_context.h> | 36 | #include <asm/mmu_context.h> |
@@ -597,6 +598,7 @@ int pfault_init(void) | |||
597 | 598 | ||
598 | if (pfault_disable) | 599 | if (pfault_disable) |
599 | return -1; | 600 | return -1; |
601 | diag_stat_inc(DIAG_STAT_X258); | ||
600 | asm volatile( | 602 | asm volatile( |
601 | " diag %1,%0,0x258\n" | 603 | " diag %1,%0,0x258\n" |
602 | "0: j 2f\n" | 604 | "0: j 2f\n" |
@@ -618,6 +620,7 @@ void pfault_fini(void) | |||
618 | 620 | ||
619 | if (pfault_disable) | 621 | if (pfault_disable) |
620 | return; | 622 | return; |
623 | diag_stat_inc(DIAG_STAT_X258); | ||
621 | asm volatile( | 624 | asm volatile( |
622 | " diag %0,0,0x258\n" | 625 | " diag %0,0,0x258\n" |
623 | "0:\n" | 626 | "0:\n" |