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/kernel/cpcmd.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/kernel/cpcmd.c')
-rw-r--r-- | arch/s390/kernel/cpcmd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/kernel/cpcmd.c b/arch/s390/kernel/cpcmd.c index 199ec92ef4fe..7f768914fb4f 100644 --- a/arch/s390/kernel/cpcmd.c +++ b/arch/s390/kernel/cpcmd.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/spinlock.h> | 14 | #include <linux/spinlock.h> |
15 | #include <linux/stddef.h> | 15 | #include <linux/stddef.h> |
16 | #include <linux/string.h> | 16 | #include <linux/string.h> |
17 | #include <asm/diag.h> | ||
17 | #include <asm/ebcdic.h> | 18 | #include <asm/ebcdic.h> |
18 | #include <asm/cpcmd.h> | 19 | #include <asm/cpcmd.h> |
19 | #include <asm/io.h> | 20 | #include <asm/io.h> |
@@ -70,6 +71,7 @@ int __cpcmd(const char *cmd, char *response, int rlen, int *response_code) | |||
70 | memcpy(cpcmd_buf, cmd, cmdlen); | 71 | memcpy(cpcmd_buf, cmd, cmdlen); |
71 | ASCEBC(cpcmd_buf, cmdlen); | 72 | ASCEBC(cpcmd_buf, cmdlen); |
72 | 73 | ||
74 | diag_stat_inc(DIAG_STAT_X008); | ||
73 | if (response) { | 75 | if (response) { |
74 | memset(response, 0, rlen); | 76 | memset(response, 0, rlen); |
75 | response_len = rlen; | 77 | response_len = rlen; |