1 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/enable_source
4 Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
5 Description: (RW) Enable/disable tracing on this specific trace entiry.
6 Enabling a source implies the source has been configured
7 properly and a sink has been identidifed for it. The path
8 of coresight components linking the source to the sink is
9 configured and managed automatically by the coresight framework.
11 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/status
14 Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
15 Description: (R) List various control and status registers. The specific
16 layout and content is driver specific.
18 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/addr_idx
21 Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
22 Description: Select which address comparator or pair (of comparators) to
25 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/addr_acctype
28 Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
29 Description: (RW) Used in conjunction with @addr_idx. Specifies
30 characteristics about the address comparator being configure,
31 for example the access type, the kind of instruction to trace,
32 processor contect ID to trigger on, etc. Individual fields in
33 the access type register may vary on the version of the trace
36 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/addr_range
39 Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
40 Description: (RW) Used in conjunction with @addr_idx. Specifies the range of
41 addresses to trigger on. Inclusion or exclusion is specificed
42 in the corresponding access type register.
44 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/addr_single
47 Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
48 Description: (RW) Used in conjunction with @addr_idx. Specifies the single
49 address to trigger on, highly influenced by the configuration
50 options of the corresponding access type register.
52 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/addr_start
55 Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
56 Description: (RW) Used in conjunction with @addr_idx. Specifies the single
57 address to start tracing on, highly influenced by the
58 configuration options of the corresponding access type register.
60 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/addr_stop
63 Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
64 Description: (RW) Used in conjunction with @addr_idx. Specifies the single
65 address to stop tracing on, highly influenced by the
66 configuration options of the corresponding access type register.
68 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/cntr_idx
71 Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
72 Description: (RW) Specifies the counter to work on.
74 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/cntr_event
77 Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
78 Description: (RW) Used in conjunction with cntr_idx, give access to the
79 counter event register.
81 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/cntr_val
84 Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
85 Description: (RW) Used in conjunction with cntr_idx, give access to the
86 counter value register.
88 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/cntr_rld_val
91 Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
92 Description: (RW) Used in conjunction with cntr_idx, give access to the
93 counter reload value register.
95 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/cntr_rld_event
98 Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
99 Description: (RW) Used in conjunction with cntr_idx, give access to the
100 counter reload event register.
102 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/ctxid_idx
105 Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
106 Description: (RW) Specifies the index of the context ID register to be
109 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/ctxid_mask
112 Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
113 Description: (RW) Mask to apply to all the context ID comparator.
115 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/ctxid_val
118 Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
119 Description: (RW) Used with the ctxid_idx, specify with context ID to trigger
122 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/enable_event
125 Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
126 Description: (RW) Defines which event triggers a trace.
128 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/etmsr
131 Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
132 Description: (RW) Gives access to the ETM status register, which holds
133 programming information and status on certains events.
135 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/fifofull_level
138 Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
139 Description: (RW) Number of byte left in the fifo before considering it full.
140 Depending on the tracer's version, can also hold threshold for
143 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/mode
146 Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
147 Description: (RW) Interface with the driver's 'mode' field, controlling
148 various aspect of the trace entity such as time stamping,
149 context ID size and cycle accurate tracing. Driver specific
150 and bound to change depending on the driver.
152 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/nr_addr_cmp
155 Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
156 Description: (R) Provides the number of address comparators pairs accessible
157 on a trace unit, as specified by bit 3:0 of register ETMCCR.
159 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/nr_cntr
162 Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
163 Description: (R) Provides the number of counters accessible on a trace unit,
164 as specified by bit 15:13 of register ETMCCR.
166 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/nr_ctxid_cmp
169 Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
170 Description: (R) Provides the number of context ID comparator available on a
171 trace unit, as specified by bit 25:24 of register ETMCCR.
173 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/reset
176 Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
177 Description: (W) Cancels all configuration on a trace unit and set it back
178 to its boot configuration.
180 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/seq_12_event
183 Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
184 Description: (RW) Defines the event that causes the sequencer to transition
185 from state 1 to state 2.
187 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/seq_13_event
190 Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
191 Description: (RW) Defines the event that causes the sequencer to transition
192 from state 1 to state 3.
194 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/seq_21_event
197 Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
198 Description: (RW) Defines the event that causes the sequencer to transition
199 from state 2 to state 1.
201 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/seq_23_event
204 Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
205 Description: (RW) Defines the event that causes the sequencer to transition
206 from state 2 to state 3.
208 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/seq_31_event
211 Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
212 Description: (RW) Defines the event that causes the sequencer to transition
213 from state 3 to state 1.
215 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/seq_32_event
218 Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
219 Description: (RW) Defines the event that causes the sequencer to transition
220 from state 3 to state 2.
222 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/curr_seq_state
225 Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
226 Description: (R) Holds the current state of the sequencer.
228 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/sync_freq
231 Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
232 Description: (RW) Holds the trace synchronization frequency value - must be
233 programmed with the various implementation behavior in mind.
235 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/timestamp_event
238 Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
239 Description: (RW) Defines an event that requests the insertion of a timestamp
240 into the trace stream.
242 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/traceid
245 Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
246 Description: (RW) Holds the trace ID that will appear in the trace stream
247 coming from this trace entity.
249 What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/trigger_event
252 Contact: Mathieu Poirier <mathieu.poirier@linaro.org>
253 Description: (RW) Define the event that controls the trigger.