aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMark Rutland <[email protected]>2016-01-06 11:05:27 +0000
committerWill Deacon <[email protected]>2016-01-06 16:00:56 +0000
commit2a803c4db615d85126c5c7afd5849a3cfde71422 (patch)
tree1d1726389bbdf21247488ecf3b0af3a35edafc00 /tools/perf/scripts/python/export-to-postgresql.py
parentb523e185bba36164ca48a190f5468c140d815414 (diff)
arm64: head.S: use memset to clear BSS
Currently we use an open-coded memzero to clear the BSS. As it is a trivial implementation, it is sub-optimal. Our optimised memset doesn't use the stack, is position-independent, and for the memzero case can use of DC ZVA to clear large blocks efficiently. In __mmap_switched the MMU is on and there are no live caller-saved registers, so we can safely call an uninstrumented memset. This patch changes __mmap_switched to use memset when clearing the BSS. We use the __pi_memset alias so as to avoid any instrumentation in all kernel configurations. Cc: Catalin Marinas <[email protected]> Cc: Marc Zyngier <[email protected]> Reviewed-by: Ard Biesheuvel <[email protected]> Signed-off-by: Mark Rutland <[email protected]> Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions