OSDN Git Service

s390/hypfs: Add diagnose 0c support
authorMichael Holzheu <holzheu@linux.vnet.ibm.com>
Mon, 9 Feb 2015 13:49:10 +0000 (14:49 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 10 Feb 2015 15:38:58 +0000 (16:38 +0100)
commit34c0dad752294f373a0720840f59e186788ba227
tree4d9da02c1edf8c5b4cf57016164747bfabd6faee
parent45cce4ccafe3cddc924ef5221d22b9853fc9a13c
s390/hypfs: Add diagnose 0c support

With this feature, you can read the CPU performance metrics provided by the
z/VM diagnose 0C. This then allows to get the management time for each
online CPU of the guest where the diagnose is executed.

The new debugfs file /sys/kernel/debug/s390_hypfs/diag_0c exports the
diag0C binary data to user space via an open/read/close interface.

The binary data consists out of a header structure followed by an
array that contains the diagnose 0c data for each online CPU.

Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/hypfs/Makefile
arch/s390/hypfs/hypfs.h
arch/s390/hypfs/hypfs_diag0c.c [new file with mode: 0644]
arch/s390/hypfs/inode.c
arch/s390/include/uapi/asm/hypfs.h