coresight: Use event attributes for sink selection
authorMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 5 Feb 2019 23:24:58 +0000 (16:24 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Feb 2019 11:27:36 +0000 (12:27 +0100)
commitb5390f4b5e0b75634c7f08c88e97b5fe0e833599
treef3b616f8a999bcb187b48bd7f25379df492775a0
parent988036f9d322cbd787d8f6a776dbe903d05bae22
coresight: Use event attributes for sink selection

This patch uses the information conveyed by perf_event::attr::config2
to select a sink to use for the session.  That way a sink can easily be
selected to be used by more than one source, something that isn't currently
possible with the sysfs implementation.

Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight-etm-perf.c
drivers/hwtracing/coresight/coresight-priv.h
drivers/hwtracing/coresight/coresight.c