Pratik Patel | 61e9170 | 2013-01-27 20:30:42 -0800 | [diff] [blame] | 1 | menuconfig CORESIGHT |
| 2 | bool "CoreSight Tracing Support" |
Pratik Patel | 2963de4 | 2012-05-17 12:43:40 -0700 | [diff] [blame] | 3 | help |
Pratik Patel | 61e9170 | 2013-01-27 20:30:42 -0800 | [diff] [blame] | 4 | CoreSight components are compliant with the ARM CoreSight |
| 5 | architecture specification and can be connected in various |
| 6 | topologies to suite a particular SoCs tracing needs. These trace |
| 7 | components can generally be classified as sources, links and |
| 8 | sinks. Trace data produced by one or more sources flows through |
| 9 | the intermediate links connecting the source to the currently |
| 10 | selected sink. |
Pratik Patel | 2963de4 | 2012-05-17 12:43:40 -0700 | [diff] [blame] | 11 | |
Pratik Patel | 61e9170 | 2013-01-27 20:30:42 -0800 | [diff] [blame] | 12 | This framework provides an interface for the CoreSight debug and |
| 13 | trace drivers to register themselves with. It's intended to build |
| 14 | up a topological view of the CoreSight components and configure |
| 15 | the right series of components on user input via sysfs. It also |
| 16 | provides status information to user space applications through |
| 17 | sysfs interface. |
Pratik Patel | 2963de4 | 2012-05-17 12:43:40 -0700 | [diff] [blame] | 18 | |
Pratik Patel | 61e9170 | 2013-01-27 20:30:42 -0800 | [diff] [blame] | 19 | If unsure, say 'N' here to avoid potential power, performance and |
| 20 | memory penalty. |
| 21 | |
| 22 | if CORESIGHT |
| 23 | |
| 24 | config HAVE_CORESIGHT_SINK |
| 25 | bool |
| 26 | |
Pratik Patel | 9266be3 | 2013-06-13 23:21:40 -0700 | [diff] [blame] | 27 | config CORESIGHT_FUSE |
| 28 | bool "CoreSight Fuse driver" |
| 29 | help |
| 30 | This driver provides support for CoreSight Fuse state checks that |
| 31 | other CoreSight drivers can query to determine existence of |
| 32 | Hardware functionality they support. Drivers can then take necessary |
| 33 | actions like failing the probe if the Hardware they manage is |
| 34 | functionally disabled. |
| 35 | |
Pratik Patel | d944cc7 | 2013-02-08 11:52:12 -0800 | [diff] [blame] | 36 | config CORESIGHT_CTI |
| 37 | bool "CoreSight Cross Trigger Interface driver" |
| 38 | help |
| 39 | This driver provides support for Cross Trigger Interface that is |
| 40 | used to input or output i.e. pass cross trigger events from one |
| 41 | hardware component to another. It can also be used to pass |
| 42 | software generated events. |
| 43 | |
Pratik Patel | 61e9170 | 2013-01-27 20:30:42 -0800 | [diff] [blame] | 44 | config CORESIGHT_CSR |
| 45 | bool "CoreSight Slave Register driver" |
| 46 | help |
| 47 | This driver provides support for CoreSight Slave Register block |
| 48 | that hosts miscellaneous configuration registers. |
| 49 | |
| 50 | config CORESIGHT_TMC |
| 51 | bool "CoreSight Trace Memory Controller driver" |
Pratik Patel | d944cc7 | 2013-02-08 11:52:12 -0800 | [diff] [blame] | 52 | select CORESIGHT_CTI |
Pratik Patel | 61e9170 | 2013-01-27 20:30:42 -0800 | [diff] [blame] | 53 | select CORESIGHT_CSR |
| 54 | select HAVE_CORESIGHT_SINK |
| 55 | help |
| 56 | This driver provides support for Trace Memory Controller which |
| 57 | can be configured as either an ETB (Embedded Trace Buffer), |
| 58 | ETR (Embedded Trace Router) or ETF (Embedded Trace Fifo). It acts |
| 59 | as sink when configured as ETB, ETR or ETF in circular buffer mode |
| 60 | whereas it is a link when configured as ETF in hardware fifo mode. |
| 61 | |
| 62 | ETB collects trace data in a circular buffer whereas ETR can be |
| 63 | used to route trace data to memory allocated in RAM. ETF in |
| 64 | circular buffer mode is like an ETB whereas in hardware fifo mode |
| 65 | it is a fifo link. |
| 66 | |
| 67 | config CORESIGHT_TPIU |
| 68 | bool "CoreSight Trace Port Interface Unit driver" |
| 69 | select HAVE_CORESIGHT_SINK |
| 70 | help |
| 71 | This driver provides support for Trace Port Interface Unit which |
| 72 | acts as a conduit for offchip trace collection. |
| 73 | |
| 74 | config CORESIGHT_ETB |
| 75 | bool "CoreSight Embedded Trace Buffer driver" |
| 76 | select HAVE_CORESIGHT_SINK |
| 77 | help |
| 78 | This driver provides support for the legacy Embedded Trace Buffer |
| 79 | which is a circular buffer. |
| 80 | |
| 81 | if HAVE_CORESIGHT_SINK |
| 82 | |
| 83 | config CORESIGHT_FUNNEL |
| 84 | bool "CoreSight Funnel driver" |
| 85 | help |
| 86 | This driver provides support for Funnel which is a link that |
| 87 | typically has multiple input ports and a single output port. Input |
| 88 | trace data streams from the input ports are interleaved into a |
| 89 | single output trace data stream coming out of the output port. |
| 90 | |
| 91 | config CORESIGHT_REPLICATOR |
| 92 | bool "CoreSight Replicator driver" |
| 93 | help |
| 94 | This driver provides support for Replicator that typically has |
| 95 | a single input port and two output ports. Single trace data |
| 96 | stream on the input port is replicated to produce two identical |
| 97 | trace data output streams coming out of the two output ports. |
| 98 | |
| 99 | config CORESIGHT_STM |
| 100 | bool "CoreSight System Trace Macrocell driver" |
| 101 | help |
| 102 | This driver provides support for hardware assisted software |
| 103 | instrumentation based tracing. This is primarily useful for |
| 104 | logging useful software events or data. |
| 105 | |
| 106 | config CORESIGHT_STM_DEFAULT_ENABLE |
| 107 | bool "Turn on STM tracing by default" |
| 108 | depends on CORESIGHT_STM |
Pratik Patel | 2963de4 | 2012-05-17 12:43:40 -0700 | [diff] [blame] | 109 | help |
| 110 | Turns on CoreSight STM tracing (hardware assisted software |
| 111 | instrumentation based tracing) by default. Otherwise, tracing is |
| 112 | disabled by default but can be enabled via sysfs. |
| 113 | |
Pratik Patel | 61e9170 | 2013-01-27 20:30:42 -0800 | [diff] [blame] | 114 | If unsure, say 'N' here to avoid potential power and performance |
| 115 | penalty. |
Pratik Patel | 2963de4 | 2012-05-17 12:43:40 -0700 | [diff] [blame] | 116 | |
Aparna Das | 3b8a708 | 2013-04-02 13:51:13 -0700 | [diff] [blame] | 117 | config CORESIGHT_HWEVENT |
| 118 | bool "CoreSight Hardware Event driver" |
| 119 | depends on CORESIGHT_STM |
| 120 | select CORESIGHT_CSR |
| 121 | help |
| 122 | This driver provides support for monitoring and tracing CoreSight |
| 123 | Hardware Event across STM interface. It configures Coresight |
| 124 | Hardware Event mux control registers to select hardware events |
| 125 | based on user input. |
| 126 | |
Pratik Patel | 61e9170 | 2013-01-27 20:30:42 -0800 | [diff] [blame] | 127 | config CORESIGHT_ETM |
| 128 | bool "CoreSight Embedded Trace Macrocell driver" |
| 129 | help |
| 130 | This driver provides support for processor tracing which allows |
| 131 | tracing the instructions that the processor is executing. This is |
| 132 | primarily useful for instruction level tracing. |
| 133 | |
| 134 | config CORESIGHT_ETM_DEFAULT_ENABLE |
| 135 | bool "Turn on ETM tracing by default" |
| 136 | depends on CORESIGHT_ETM |
Pratik Patel | 2963de4 | 2012-05-17 12:43:40 -0700 | [diff] [blame] | 137 | help |
| 138 | Turns on CoreSight ETM tracing (processor tracing) by default. |
| 139 | Otherwise, tracing is disabled by default but can be enabled via |
| 140 | sysfs. |
| 141 | |
Pratik Patel | 61e9170 | 2013-01-27 20:30:42 -0800 | [diff] [blame] | 142 | If unsure, say 'N' here to avoid potential power and performance |
| 143 | penalty. |
Pushkar Joshi | 61af718 | 2012-09-12 14:29:23 -0700 | [diff] [blame] | 144 | |
Pratik Patel | 61e9170 | 2013-01-27 20:30:42 -0800 | [diff] [blame] | 145 | config CORESIGHT_ETM_PCSAVE_DEFAULT_ENABLE |
Pratik Patel | 938e1ff | 2012-09-28 23:21:46 -0700 | [diff] [blame] | 146 | bool "Turn on PC saving by default" |
Pratik Patel | 61e9170 | 2013-01-27 20:30:42 -0800 | [diff] [blame] | 147 | depends on CORESIGHT_ETM |
Pratik Patel | 938e1ff | 2012-09-28 23:21:46 -0700 | [diff] [blame] | 148 | help |
| 149 | Turns on program counter saving on reset by default. Otherwise, |
| 150 | PC saving is disabled by default but can be enabled via sysfs. |
| 151 | |
Pratik Patel | 61e9170 | 2013-01-27 20:30:42 -0800 | [diff] [blame] | 152 | If unsure, say 'N' here to avoid potential power penalty. |
Pratik Patel | 938e1ff | 2012-09-28 23:21:46 -0700 | [diff] [blame] | 153 | |
Aparna Das | b84b311 | 2013-07-06 09:40:33 -0700 | [diff] [blame] | 154 | config CORESIGHT_AUDIO_ETM |
| 155 | bool "Audio processor ETM trace support" |
| 156 | help |
| 157 | Enables support for ETM trace collection on audio processor using |
| 158 | CoreSight framework. Enabling this will allow turning on ETM tracing |
| 159 | on audio processor via sysfs by configuring the required CoreSight |
| 160 | components. |
| 161 | |
| 162 | config CORESIGHT_MODEM_ETM |
| 163 | bool "Modem processor ETM trace support" |
| 164 | help |
| 165 | Enables support for ETM trace collection on modem processor using |
| 166 | CoreSight framework. Enabling this will allow turning on ETM tracing |
| 167 | on modem processor via sysfs by configuring the required CoreSight |
| 168 | components. |
| 169 | |
| 170 | config CORESIGHT_WCN_ETM |
| 171 | bool "Wireless subsystem processor ETM trace support" |
| 172 | help |
| 173 | Enables support for ETM trace collection on wireless subsystem |
| 174 | processor using CoreSight framework. Enabling this will allow |
| 175 | turning on ETM tracing on wireless subsystem via sysfs by configuring |
| 176 | the required CoreSight components. |
| 177 | |
| 178 | config CORESIGHT_RPM_ETM |
| 179 | bool "RPM processor ETM trace support" |
| 180 | help |
| 181 | Enables support for ETM trace collection on RPM processor using |
| 182 | CoreSight framework. Enabling this will allow turning on ETM |
| 183 | tracing on RPM processor via sysfs by configuring the required |
| 184 | CoreSight components. |
| 185 | |
Pratik Patel | 61e9170 | 2013-01-27 20:30:42 -0800 | [diff] [blame] | 186 | endif |
| 187 | |
| 188 | config CORESIGHT_EVENT |
| 189 | tristate "CoreSight Event driver" |
Pushkar Joshi | 61af718 | 2012-09-12 14:29:23 -0700 | [diff] [blame] | 190 | help |
Pratik Patel | 61e9170 | 2013-01-27 20:30:42 -0800 | [diff] [blame] | 191 | This driver provides support for registering with various events |
| 192 | and performing CoreSight actions like aborting trace on their |
| 193 | occurrence. |
Pushkar Joshi | 61af718 | 2012-09-12 14:29:23 -0700 | [diff] [blame] | 194 | |
Pratik Patel | 61e9170 | 2013-01-27 20:30:42 -0800 | [diff] [blame] | 195 | endif |