diff options
author | Alexander Shishkin <alexander.shishkin@linux.intel.com> | 2016-09-19 11:06:25 -0400 |
---|---|---|
committer | Alexander Shishkin <alexander.shishkin@linux.intel.com> | 2016-11-18 10:11:35 -0500 |
commit | ee01aebbe2c4c196142bdb8074812dfe44830725 (patch) | |
tree | 23f95b2c417392f426f38b85e2b7bd2131356edd | |
parent | d4f5f545da12d876f5c49cef40a4a2922c75dd1e (diff) |
intel_th: Document debug host mode
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
-rw-r--r-- | Documentation/trace/intel_th.txt | 22 |
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 | |||
101 | Host Debugger Mode | ||
102 | ================== | ||
103 | |||
104 | It is possible to configure the Trace Hub and control its trace | ||
105 | capture from a remote debug host, which should be connected via one of | ||
106 | the hardware debugging interfaces, which will then be used to both | ||
107 | control Intel Trace Hub and transfer its trace data to the debug host. | ||
108 | |||
109 | The driver needs to be told that such an arrangement is taking place | ||
110 | so that it does not touch any capture/port configuration and avoids | ||
111 | conflicting with the debug host's configuration accesses. The only | ||
112 | activity that the driver will perform in this mode is collecting | ||
113 | software traces to the Software Trace Hub (an stm class device). The | ||
114 | user is still responsible for setting up adequate master/channel | ||
115 | mappings that the decoder on the receiving end would recognize. | ||
116 | |||
117 | In 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 | ||
119 | will show up on the intel_th bus. Also, trace configuration and | ||
120 | capture controlling attribute groups of the 'gth' device will not be | ||
121 | exposed. The 'sth' device will operate as usual. | ||