perf/core: adding PMU driver specific configuration
authorMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 31 May 2016 22:32:55 +0000 (16:32 -0600)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Mon, 20 Jun 2016 17:09:45 +0000 (11:09 -0600)
commit1efb79086e3298b07f8734aae7614aa25ef82040
tree4f2bf7df370b09880bc53ffadfe7aeeeba6516e5
parent65ad7b198dccae96d776db85d1a184df214dddb4
perf/core: adding PMU driver specific configuration

It is entirely possible that some PMUs need specific configuration
that is currently not found in the perf options before a session
can be setup.

It is the case for the CoreSight PMU where a sink needs to be
provided.  That sink doesn't fall in any of the current perf
options.

As such this patch adds the capability to receive driver
specific configuration using the existing ioctl() mechanism.
Once the configuration has been pushed down the kernel PMU
callbacks are used to deal with the information sent from user
space.

Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
include/linux/perf_event.h
include/uapi/linux/perf_event.h
kernel/events/core.c