···11+What: /sys/bus/coresight/devices/<memory_map>.etb/enable_sink22+Date: November 201433+KernelVersion: 3.1944+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>55+Description: (RW) Add/remove a sink from a trace path. There can be multiple66+ source for a single sink.77+ ex: echo 1 > /sys/bus/coresight/devices/20010000.etb/enable_sink88+99+What: /sys/bus/coresight/devices/<memory_map>.etb/status1010+Date: November 20141111+KernelVersion: 3.191212+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>1313+Description: (R) List various control and status registers. The specific1414+ layout and content is driver specific.1515+1616+What: /sys/bus/coresight/devices/<memory_map>.etb/trigger_cntr1717+Date: November 20141818+KernelVersion: 3.191919+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>2020+Description: (RW) Disables write access to the Trace RAM by stopping the2121+ formatter after a defined number of words have been stored2222+ following the trigger event. The number of 32-bit words written2323+ into the Trace RAM following the trigger event is equal to the2424+ value stored in this register+1 (from ARM ETB-TRM).
···11+What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/enable_source22+Date: November 201433+KernelVersion: 3.1944+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>55+Description: (RW) Enable/disable tracing on this specific trace entiry.66+ Enabling a source implies the source has been configured77+ properly and a sink has been identidifed for it. The path88+ of coresight components linking the source to the sink is99+ configured and managed automatically by the coresight framework.1010+1111+What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/status1212+Date: November 20141313+KernelVersion: 3.191414+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>1515+Description: (R) List various control and status registers. The specific1616+ layout and content is driver specific.1717+1818+What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/addr_idx1919+Date: November 20142020+KernelVersion: 3.192121+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>2222+Description: Select which address comparator or pair (of comparators) to2323+ work with.2424+2525+What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/addr_acctype2626+Date: November 20142727+KernelVersion: 3.192828+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>2929+Description: (RW) Used in conjunction with @addr_idx. Specifies3030+ characteristics about the address comparator being configure,3131+ for example the access type, the kind of instruction to trace,3232+ processor contect ID to trigger on, etc. Individual fields in3333+ the access type register may vary on the version of the trace3434+ entity.3535+3636+What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/addr_range3737+Date: November 20143838+KernelVersion: 3.193939+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>4040+Description: (RW) Used in conjunction with @addr_idx. Specifies the range of4141+ addresses to trigger on. Inclusion or exclusion is specificed4242+ in the corresponding access type register.4343+4444+What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/addr_single4545+Date: November 20144646+KernelVersion: 3.194747+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>4848+Description: (RW) Used in conjunction with @addr_idx. Specifies the single4949+ address to trigger on, highly influenced by the configuration5050+ options of the corresponding access type register.5151+5252+What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/addr_start5353+Date: November 20145454+KernelVersion: 3.195555+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>5656+Description: (RW) Used in conjunction with @addr_idx. Specifies the single5757+ address to start tracing on, highly influenced by the5858+ configuration options of the corresponding access type register.5959+6060+What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/addr_stop6161+Date: November 20146262+KernelVersion: 3.196363+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>6464+Description: (RW) Used in conjunction with @addr_idx. Specifies the single6565+ address to stop tracing on, highly influenced by the6666+ configuration options of the corresponding access type register.6767+6868+What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/cntr_idx6969+Date: November 20147070+KernelVersion: 3.197171+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>7272+Description: (RW) Specifies the counter to work on.7373+7474+What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/cntr_event7575+Date: November 20147676+KernelVersion: 3.197777+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>7878+Description: (RW) Used in conjunction with cntr_idx, give access to the7979+ counter event register.8080+8181+What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/cntr_val8282+Date: November 20148383+KernelVersion: 3.198484+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>8585+Description: (RW) Used in conjunction with cntr_idx, give access to the8686+ counter value register.8787+8888+What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/cntr_rld_val8989+Date: November 20149090+KernelVersion: 3.199191+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>9292+Description: (RW) Used in conjunction with cntr_idx, give access to the9393+ counter reload value register.9494+9595+What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/cntr_rld_event9696+Date: November 20149797+KernelVersion: 3.199898+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>9999+Description: (RW) Used in conjunction with cntr_idx, give access to the100100+ counter reload event register.101101+102102+What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/ctxid_idx103103+Date: November 2014104104+KernelVersion: 3.19105105+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>106106+Description: (RW) Specifies the index of the context ID register to be107107+ selected.108108+109109+What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/ctxid_mask110110+Date: November 2014111111+KernelVersion: 3.19112112+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>113113+Description: (RW) Mask to apply to all the context ID comparator.114114+115115+What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/ctxid_val116116+Date: November 2014117117+KernelVersion: 3.19118118+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>119119+Description: (RW) Used with the ctxid_idx, specify with context ID to trigger120120+ on.121121+122122+What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/enable_event123123+Date: November 2014124124+KernelVersion: 3.19125125+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>126126+Description: (RW) Defines which event triggers a trace.127127+128128+What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/etmsr129129+Date: November 2014130130+KernelVersion: 3.19131131+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>132132+Description: (RW) Gives access to the ETM status register, which holds133133+ programming information and status on certains events.134134+135135+What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/fifofull_level136136+Date: November 2014137137+KernelVersion: 3.19138138+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>139139+Description: (RW) Number of byte left in the fifo before considering it full.140140+ Depending on the tracer's version, can also hold threshold for141141+ data suppression.142142+143143+What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/mode144144+Date: November 2014145145+KernelVersion: 3.19146146+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>147147+Description: (RW) Interface with the driver's 'mode' field, controlling148148+ various aspect of the trace entity such as time stamping,149149+ context ID size and cycle accurate tracing. Driver specific150150+ and bound to change depending on the driver.151151+152152+What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/nr_addr_cmp153153+Date: November 2014154154+KernelVersion: 3.19155155+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>156156+Description: (R) Provides the number of address comparators pairs accessible157157+ on a trace unit, as specified by bit 3:0 of register ETMCCR.158158+159159+What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/nr_cntr160160+Date: November 2014161161+KernelVersion: 3.19162162+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>163163+Description: (R) Provides the number of counters accessible on a trace unit,164164+ as specified by bit 15:13 of register ETMCCR.165165+166166+What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/nr_ctxid_cmp167167+Date: November 2014168168+KernelVersion: 3.19169169+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>170170+Description: (R) Provides the number of context ID comparator available on a171171+ trace unit, as specified by bit 25:24 of register ETMCCR.172172+173173+What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/reset174174+Date: November 2014175175+KernelVersion: 3.19176176+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>177177+Description: (W) Cancels all configuration on a trace unit and set it back178178+ to its boot configuration.179179+180180+What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/seq_12_event181181+Date: November 2014182182+KernelVersion: 3.19183183+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>184184+Description: (RW) Defines the event that causes the sequencer to transition185185+ from state 1 to state 2.186186+187187+What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/seq_13_event188188+Date: November 2014189189+KernelVersion: 3.19190190+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>191191+Description: (RW) Defines the event that causes the sequencer to transition192192+ from state 1 to state 3.193193+194194+What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/seq_21_event195195+Date: November 2014196196+KernelVersion: 3.19197197+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>198198+Description: (RW) Defines the event that causes the sequencer to transition199199+ from state 2 to state 1.200200+201201+What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/seq_23_event202202+Date: November 2014203203+KernelVersion: 3.19204204+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>205205+Description: (RW) Defines the event that causes the sequencer to transition206206+ from state 2 to state 3.207207+208208+What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/seq_31_event209209+Date: November 2014210210+KernelVersion: 3.19211211+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>212212+Description: (RW) Defines the event that causes the sequencer to transition213213+ from state 3 to state 1.214214+215215+What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/seq_32_event216216+Date: November 2014217217+KernelVersion: 3.19218218+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>219219+Description: (RW) Defines the event that causes the sequencer to transition220220+ from state 3 to state 2.221221+222222+What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/curr_seq_state223223+Date: November 2014224224+KernelVersion: 3.19225225+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>226226+Description: (R) Holds the current state of the sequencer.227227+228228+What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/sync_freq229229+Date: November 2014230230+KernelVersion: 3.19231231+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>232232+Description: (RW) Holds the trace synchronization frequency value - must be233233+ programmed with the various implementation behavior in mind.234234+235235+What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/timestamp_event236236+Date: November 2014237237+KernelVersion: 3.19238238+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>239239+Description: (RW) Defines an event that requests the insertion of a timestamp240240+ into the trace stream.241241+242242+What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/traceid243243+Date: November 2014244244+KernelVersion: 3.19245245+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>246246+Description: (RW) Holds the trace ID that will appear in the trace stream247247+ coming from this trace entity.248248+249249+What: /sys/bus/coresight/devices/<memory_map>.[etm|ptm]/trigger_event250250+Date: November 2014251251+KernelVersion: 3.19252252+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>253253+Description: (RW) Define the event that controls the trigger.
···11+What: /sys/bus/coresight/devices/<memory_map>.funnel/funnel_ctrl22+Date: November 201433+KernelVersion: 3.1944+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>55+Description: (RW) Enables the slave ports and defines the hold time of the66+ slave ports.77+88+What: /sys/bus/coresight/devices/<memory_map>.funnel/priority99+Date: November 20141010+KernelVersion: 3.191111+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>1212+Description: (RW) Defines input port priority order.
···11+What: /sys/bus/coresight/devices/<memory_map>.tmc/trigger_cntr22+Date: November 201433+KernelVersion: 3.1944+Contact: Mathieu Poirier <mathieu.poirier@linaro.org>55+Description: (RW) Disables write access to the Trace RAM by stopping the66+ formatter after a defined number of words have been stored77+ following the trigger event. Additional interface for this88+ driver are expected to be added as it matures.
+1
MAINTAINERS
···925925F: drivers/coresight/*926926F: Documentation/trace/coresight.txt927927F: Documentation/devicetree/bindings/arm/coresight.txt928928+F: Documentation/ABI/testing/sysfs-bus-coresight-devices-*928929929930ARM/CORGI MACHINE SUPPORT930931M: Richard Purdie <rpurdie@rpsys.net>