aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>2016-09-19 11:06:25 -0400
committerAlexander Shishkin <alexander.shishkin@linux.intel.com>2016-11-18 10:11:35 -0500
commitee01aebbe2c4c196142bdb8074812dfe44830725 (patch)
tree23f95b2c417392f426f38b85e2b7bd2131356edd
parentd4f5f545da12d876f5c49cef40a4a2922c75dd1e (diff)
intel_th: Document debug host mode
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
-rw-r--r--Documentation/trace/intel_th.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/Documentation/trace/intel_th.txt b/Documentation/trace/intel_th.txt
index f7fc5ba5df8d..f92070e7dde0 100644
--- a/Documentation/trace/intel_th.txt
+++ b/Documentation/trace/intel_th.txt
@@ -97,3 +97,25 @@ $ echo 0 > /sys/bus/intel_th/devices/0-msc0/active
97# and now you can collect the trace from the device node: 97# and now you can collect the trace from the device node:
98 98
99$ cat /dev/intel_th0/msc0 > my_stp_trace 99$ cat /dev/intel_th0/msc0 > my_stp_trace
100
101Host Debugger Mode
102==================
103
104It is possible to configure the Trace Hub and control its trace
105capture from a remote debug host, which should be connected via one of
106the hardware debugging interfaces, which will then be used to both
107control Intel Trace Hub and transfer its trace data to the debug host.
108
109The driver needs to be told that such an arrangement is taking place
110so that it does not touch any capture/port configuration and avoids
111conflicting with the debug host's configuration accesses. The only
112activity that the driver will perform in this mode is collecting
113software traces to the Software Trace Hub (an stm class device). The
114user is still responsible for setting up adequate master/channel
115mappings that the decoder on the receiving end would recognize.
116
117In order to enable the host mode, set the 'host_mode' parameter of the
118'intel_th' kernel module to 'y'. None of the virtual output devices
119will show up on the intel_th bus. Also, trace configuration and
120capture controlling attribute groups of the 'gth' device will not be
121exposed. The 'sth' device will operate as usual.