s390/perf: add callback to perf to enable using AUX buffer
authorPu Hou <bjhoupu@linux.vnet.ibm.com>
Thu, 1 Sep 2016 08:48:22 +0000 (10:48 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 16 Nov 2017 14:06:08 +0000 (15:06 +0100)
commita3f22d505f56bf3efd8eecd9b7adcc40a40a4a8e
tree372ccfd4273a80b6e817b85efc6e9a02de502a1e
parentcbf6948f36afcbeca61ed5c3d5e7d930567a200f
s390/perf: add callback to perf to enable using AUX buffer

Perf tool need implement a callback to enable using AUX buffer. Perf
will do another mmap() to trigger the setup of AUX buffer in kernel
if there is such callback. The default size of the AUX buffer is set
properly according to the sampling frequency to avoid overflow. It
could also be manually set by -m option of perf.

The interface of perf is not changed. Diagnostic mode sampling
could be started by `perf record -e rBD000` like before.

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>
tools/perf/arch/s390/util/Build
tools/perf/arch/s390/util/auxtrace.c [new file with mode: 0644]