]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv/memtrace: Allow mmaping trace buffers
authorJordan Niethe <jniethe5@gmail.com>
Thu, 25 Feb 2021 03:21:06 +0000 (14:21 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 8 Apr 2021 11:17:44 +0000 (21:17 +1000)
commitde8129c68b1ea09cb6df683d27879b8bc6b66657
tree58eb0f81eec45425d1101b6438154efa92e2225a
parentcb181320e6e3e4fb4d332c99027aac9942f00492
powerpc/powernv/memtrace: Allow mmaping trace buffers

Let the memory removed from the linear mapping to be used for the trace
buffers be mmaped. This is a useful way of providing cache-inhibited
memory for the alignment_handler selftest.

Signed-off-by: Jordan Niethe <jniethe5@gmail.com>
[mpe: make memtrace_mmap() static as noticed by lkp@intel.com]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210225032108.1458352-1-jniethe5@gmail.com
arch/powerpc/platforms/powernv/memtrace.c