]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
s390/cpumf: introduce AUX buffer for dump diagnostic sample data
authorPu Hou <bjhoupu@linux.vnet.ibm.com>
Fri, 11 Nov 2016 02:08:49 +0000 (03:08 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 16 Nov 2017 14:06:06 +0000 (15:06 +0100)
commitca5955cdeae744edd3dcc65d677e833fc29658c2
tree58a908019f1c5c74994ff17fef216988bba78154
parentb192571d1ae375e0bbe0aa3ccfa1a3c3704454b9
s390/cpumf: introduce AUX buffer for dump diagnostic sample data

Current implementation uses a private buffer for cpumf to dump samples.
Samples first go to this buffer. Then copy to ring buffer allocated
by perf core. With AUX buffer, this copy is not needed. AUX buffer is
shared and zero-copy mapped to user space. The trailer information at
the end of each SDB(sample data block) is also exported to user space.
AUX buffer is used when diagnostic sampling mode is enabled.

This patch contains functions to setup/free AUX buffer or to begin/end
sampling per-cpu. Also include function called in interrupt to
collect samples.

Signed-off-by: Pu Hou <bjhoupu@linux.vnet.ibm.com>
Reviewed-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/perf_cpum_sf.c