]> git.baikalelectronics.ru Git - kernel.git/commit
s390/sysinfo,topology: provide raw stsi 15,1,x data via debugfs
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 13 Mar 2017 14:58:59 +0000 (15:58 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 22 Mar 2017 07:29:15 +0000 (08:29 +0100)
commitb49f03745428496ea6c139d135b31e6f81199c3e
treeb85f8ea4bd0a43f6cd93744e0546f93f51016747
parentf247c342bbe67bacd28581579955b9e8e3ac1de6
s390/sysinfo,topology: provide raw stsi 15,1,x data via debugfs

Provide the raw stsi 15,1,x data contents via debugfs. This makes it
much easier to debug unexpected scheduling domains on machines that
provide cpu topology information.

Therefore this file adds a new 's390/stsi' debugfs directory with a
file for each possible topology nesting level that is allowed by the
architecture. The files will be created regardless if the machine
supports all, or any, level.  If a level is not supported, or no data
is available, user space can recognize this with a -EINVAL error code
when trying to read such data.
In addition a 'topology' symlink is created that points to the file
that contains the data that is used to create the scheduling domains.

Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/sysinfo.h
arch/s390/kernel/sysinfo.c
arch/s390/kernel/topology.c