]> git.baikalelectronics.ru Git - kernel.git/commit
s390: improve debug feature usage
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Mon, 17 Feb 2014 10:16:10 +0000 (11:16 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 21 Feb 2014 07:50:23 +0000 (08:50 +0100)
commit757739788efc774b82f819036fe6b24bd3037b61
tree7cf1d6ffdbc3182ee8c19f6bfdcdfb5a681e8fc6
parent734b4b600528bf0f74bc92101faefc852a5638dc
s390: improve debug feature usage

The maximum usable buffer size of the s390 debug feature (when using
the sprintf_view) is 11 * sizeof(long) (1 pointer for the format
string + 10 arguments). When a larger buffer size is specified the
additional memory is unused and wasted per debug entry. So reducing
the buffer size to its maximum (or to the actual buffer size used)
will make more precious debug feature space usable.

For pci_msg, chsc_msg, and cio_crw we use the additional usable dbf
space to reduce the number of allocated pages.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/pci/pci_debug.c
drivers/s390/cio/chsc_sch.c
drivers/s390/cio/cio.c
drivers/s390/net/qeth_core_main.c