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)
commit0dcd91a9e6cc0a401416bbdd34b0a255cde0aee1
tree9a095afe44969df5b0a6ad4ee8a251257db78645
parent94158e544fd60c6a94af348790dae76578ed8dae
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