]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd80b861b151be8452c11ffdbd6825fe42315351a
treef3b616f8a999bcb187b48bd7f25379df492775a0
parent4e2ba9b6b00e89dd7f81b18712293ae15f746f86
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