linux_dsm_epyc7002/drivers/hwtracing/coresight
Suzuki K Poulose 7ec786ad19 coresight: perf: Remove reset_buffer call back for sinks
Right now we issue an update_buffer() and reset_buffer() call backs
in succession when we stop tracing an event. The update_buffer is
supposed to check the status of the buffer and make sure the ring buffer
is updated with the trace data. And we store information about the
size of the data collected only to be consumed by the reset_buffer
callback which always follows the update_buffer. This was originally
designed for handling future IPs which could trigger a buffer overflow
interrupt. This patch gets rid of the reset_buffer callback altogether
and performs the actions in update_buffer, making it return the size
collected. We can always add the support for handling the overflow
interrupt case later.

This removes some not-so pretty hack (storing the new head in the
size field for snapshot mode) and cleans it up a little bit.

Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-25 20:09:18 +02:00
..
coresight-catu.c coresight: catu: Plug in CATU as a backend for ETR buffer 2018-07-15 13:52:59 +02:00
coresight-catu.h coresight: catu: Plug in CATU as a backend for ETR buffer 2018-07-15 13:52:59 +02:00
coresight-cpu-debug.c coresight: Remove %px for printing pcsr value 2018-05-14 16:20:00 +02:00
coresight-dynamic-replicator.c coresight: Convert driver messages to dev_dbg 2018-09-25 20:09:17 +02:00
coresight-etb10.c coresight: perf: Remove reset_buffer call back for sinks 2018-09-25 20:09:18 +02:00
coresight-etm3x-sysfs.c coresight: etm3x: Don't use contextID with PID namespaces 2018-07-15 13:52:56 +02:00
coresight-etm3x.c coresight: Convert driver messages to dev_dbg 2018-09-25 20:09:17 +02:00
coresight-etm4x-sysfs.c coresight: etm4x: Don't use contextID with PID namespaces 2018-07-15 13:52:56 +02:00
coresight-etm4x.c coresight: Convert driver messages to dev_dbg 2018-09-25 20:09:17 +02:00
coresight-etm4x.h coresight: etm4x: Don't use contextID with PID namespaces 2018-07-15 13:52:56 +02:00
coresight-etm-cp14.c coresight: Moving framework and drivers to SPDX identifier 2018-05-14 16:19:59 +02:00
coresight-etm-perf.c coresight: perf: Remove reset_buffer call back for sinks 2018-09-25 20:09:18 +02:00
coresight-etm-perf.h coresight: Moving framework and drivers to SPDX identifier 2018-05-14 16:19:59 +02:00
coresight-etm.h coresight: etm3x: Don't use contextID with PID namespaces 2018-07-15 13:52:56 +02:00
coresight-funnel.c coresight: Convert driver messages to dev_dbg 2018-09-25 20:09:17 +02:00
coresight-priv.h coresight: Add helper for inserting synchronization packets 2018-07-15 13:52:57 +02:00
coresight-replicator.c coresight: Convert driver messages to dev_dbg 2018-09-25 20:09:17 +02:00
coresight-stm.c coresight: Convert driver messages to dev_dbg 2018-09-25 20:09:17 +02:00
coresight-tmc-etf.c coresight: perf: Remove reset_buffer call back for sinks 2018-09-25 20:09:18 +02:00
coresight-tmc-etr.c coresight: Convert driver messages to dev_dbg 2018-09-25 20:09:17 +02:00
coresight-tmc.c coresight: Convert driver messages to dev_dbg 2018-09-25 20:09:17 +02:00
coresight-tmc.h coresight: tmc-etr: Handle driver mode specific ETR buffers 2018-09-25 20:09:17 +02:00
coresight-tpiu.c coresight: Convert driver messages to dev_dbg 2018-09-25 20:09:17 +02:00
coresight.c coresight: Fix handling of sinks 2018-09-25 20:09:17 +02:00
Kconfig coresight: Introduce support for Coresight Address Translation Unit 2018-07-15 13:52:58 +02:00
Makefile coresight: Introduce support for Coresight Address Translation Unit 2018-07-15 13:52:58 +02:00
of_coresight.c coresight: Cleanup coresight DT bindings 2018-09-25 20:09:17 +02:00