]> git.baikalelectronics.ru Git - kernel.git/commit
s390/debug: only write data once
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Thu, 12 Oct 2017 11:57:26 +0000 (13:57 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 18 Oct 2017 12:11:23 +0000 (14:11 +0200)
commit73d29299660cb6e1efa5028725785304b856f46b
tree9a095afe44969df5b0a6ad4ee8a251257db78645
parent1ebed9f356d3be773f1f27a3d3ec3d47f5a2181d
s390/debug: only write data once

debug_event_common memsets the active debug entry with zeros to
prevent stale data leakage. This is overwritten with the actual
debug data in the next step. Only write zeros to that part of the
debug entry that's not used by new debug data.

Micro benchmarks show a 2-10% reduction of cpu cycles with this
approach.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Acked-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/debug.c