intel_th: Add switch triggering support
Add support for asserting window switch trigger when tracing to MSU output ports. This allows for software controlled switching between windows of the MSU buffer, which can be used for double buffering while exporting the trace data further from the MSU. Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
9958e02523
commit
8116db57cf
@@ -164,6 +164,8 @@ struct intel_th_driver {
|
||||
struct intel_th_device *othdev);
|
||||
void (*enable)(struct intel_th_device *thdev,
|
||||
struct intel_th_output *output);
|
||||
void (*trig_switch)(struct intel_th_device *thdev,
|
||||
struct intel_th_output *output);
|
||||
void (*disable)(struct intel_th_device *thdev,
|
||||
struct intel_th_output *output);
|
||||
/* output ops */
|
||||
@@ -228,6 +230,7 @@ int intel_th_driver_register(struct intel_th_driver *thdrv);
|
||||
void intel_th_driver_unregister(struct intel_th_driver *thdrv);
|
||||
|
||||
int intel_th_trace_enable(struct intel_th_device *thdev);
|
||||
int intel_th_trace_switch(struct intel_th_device *thdev);
|
||||
int intel_th_trace_disable(struct intel_th_device *thdev);
|
||||
int intel_th_set_output(struct intel_th_device *thdev,
|
||||
unsigned int master);
|
||||
@@ -308,6 +311,9 @@ enum {
|
||||
REG_TSCU_OFFSET = 0x2000,
|
||||
REG_TSCU_LENGTH = 0x1000,
|
||||
|
||||
REG_CTS_OFFSET = 0x3000,
|
||||
REG_CTS_LENGTH = 0x1000,
|
||||
|
||||
/* Software Trace Hub (STH) [0x4000..0x4fff] */
|
||||
REG_STH_OFFSET = 0x4000,
|
||||
REG_STH_LENGTH = 0x2000,
|
||||
|
Reference in New Issue
Block a user