coresight-etm4x-reference.rst 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827
  1. ===============================================
  2. ETMv4 sysfs linux driver programming reference.
  3. ===============================================
  4. :Author: Mike Leach <mike.leach@linaro.org>
  5. :Date: October 11th, 2019
  6. Supplement to existing ETMv4 driver documentation.
  7. Sysfs files and directories
  8. ---------------------------
  9. Root: ``/sys/bus/coresight/devices/etm<N>``
  10. The following paragraphs explain the association between sysfs files and the
  11. ETMv4 registers that they effect. Note the register names are given without
  12. the ‘TRC’ prefix.
  13. ----
  14. :File: ``mode`` (rw)
  15. :Trace Registers: {CONFIGR + others}
  16. :Notes:
  17. Bit select trace features. See ‘mode’ section below. Bits
  18. in this will cause equivalent programming of trace config and
  19. other registers to enable the features requested.
  20. :Syntax & eg:
  21. ``echo bitfield > mode``
  22. bitfield up to 32 bits setting trace features.
  23. :Example:
  24. ``$> echo 0x012 > mode``
  25. ----
  26. :File: ``reset`` (wo)
  27. :Trace Registers: All
  28. :Notes:
  29. Reset all programming to trace nothing / no logic programmed.
  30. :Syntax:
  31. ``echo 1 > reset``
  32. ----
  33. :File: ``enable_source`` (wo)
  34. :Trace Registers: PRGCTLR, All hardware regs.
  35. :Notes:
  36. - > 0 : Programs up the hardware with the current values held in the driver
  37. and enables trace.
  38. - = 0 : disable trace hardware.
  39. :Syntax:
  40. ``echo 1 > enable_source``
  41. ----
  42. :File: ``cpu`` (ro)
  43. :Trace Registers: None.
  44. :Notes:
  45. CPU ID that this ETM is attached to.
  46. :Example:
  47. ``$> cat cpu``
  48. ``$> 0``
  49. ----
  50. :File: ``ts_source`` (ro)
  51. :Trace Registers: None.
  52. :Notes:
  53. When FEAT_TRF is implemented, value of TRFCR_ELx.TS used for trace session. Otherwise -1
  54. indicates an unknown time source. Check trcidr0.tssize to see if a global timestamp is
  55. available.
  56. :Example:
  57. ``$> cat ts_source``
  58. ``$> 1``
  59. ----
  60. :File: ``addr_idx`` (rw)
  61. :Trace Registers: None.
  62. :Notes:
  63. Virtual register to index address comparator and range
  64. features. Set index for first of the pair in a range.
  65. :Syntax:
  66. ``echo idx > addr_idx``
  67. Where idx < nr_addr_cmp x 2
  68. ----
  69. :File: ``addr_range`` (rw)
  70. :Trace Registers: ACVR[idx, idx+1], VIIECTLR
  71. :Notes:
  72. Pair of addresses for a range selected by addr_idx. Include
  73. / exclude according to the optional parameter, or if omitted
  74. uses the current ‘mode’ setting. Select comparator range in
  75. control register. Error if index is odd value.
  76. :Depends: ``mode, addr_idx``
  77. :Syntax:
  78. ``echo addr1 addr2 [exclude] > addr_range``
  79. Where addr1 and addr2 define the range and addr1 < addr2.
  80. Optional exclude value:-
  81. - 0 for include
  82. - 1 for exclude.
  83. :Example:
  84. ``$> echo 0x0000 0x2000 0 > addr_range``
  85. ----
  86. :File: ``addr_single`` (rw)
  87. :Trace Registers: ACVR[idx]
  88. :Notes:
  89. Set a single address comparator according to addr_idx. This
  90. is used if the address comparator is used as part of event
  91. generation logic etc.
  92. :Depends: ``addr_idx``
  93. :Syntax:
  94. ``echo addr1 > addr_single``
  95. ----
  96. :File: ``addr_start`` (rw)
  97. :Trace Registers: ACVR[idx], VISSCTLR
  98. :Notes:
  99. Set a trace start address comparator according to addr_idx.
  100. Select comparator in control register.
  101. :Depends: ``addr_idx``
  102. :Syntax:
  103. ``echo addr1 > addr_start``
  104. ----
  105. :File: ``addr_stop`` (rw)
  106. :Trace Registers: ACVR[idx], VISSCTLR
  107. :Notes:
  108. Set a trace stop address comparator according to addr_idx.
  109. Select comparator in control register.
  110. :Depends: ``addr_idx``
  111. :Syntax:
  112. ``echo addr1 > addr_stop``
  113. ----
  114. :File: ``addr_context`` (rw)
  115. :Trace Registers: ACATR[idx,{6:4}]
  116. :Notes:
  117. Link context ID comparator to address comparator addr_idx
  118. :Depends: ``addr_idx``
  119. :Syntax:
  120. ``echo ctxt_idx > addr_context``
  121. Where ctxt_idx is the index of the linked context id / vmid
  122. comparator.
  123. ----
  124. :File: ``addr_ctxtype`` (rw)
  125. :Trace Registers: ACATR[idx,{3:2}]
  126. :Notes:
  127. Input value string. Set type for linked context ID comparator
  128. :Depends: ``addr_idx``
  129. :Syntax:
  130. ``echo type > addr_ctxtype``
  131. Type one of {all, vmid, ctxid, none}
  132. :Example:
  133. ``$> echo ctxid > addr_ctxtype``
  134. ----
  135. :File: ``addr_exlevel_s_ns`` (rw)
  136. :Trace Registers: ACATR[idx,{14:8}]
  137. :Notes:
  138. Set the ELx secure and non-secure matching bits for the
  139. selected address comparator
  140. :Depends: ``addr_idx``
  141. :Syntax:
  142. ``echo val > addr_exlevel_s_ns``
  143. val is a 7 bit value for exception levels to exclude. Input
  144. value shifted to correct bits in register.
  145. :Example:
  146. ``$> echo 0x4F > addr_exlevel_s_ns``
  147. ----
  148. :File: ``addr_instdatatype`` (rw)
  149. :Trace Registers: ACATR[idx,{1:0}]
  150. :Notes:
  151. Set the comparator address type for matching. Driver only
  152. supports setting instruction address type.
  153. :Depends: ``addr_idx``
  154. ----
  155. :File: ``addr_cmp_view`` (ro)
  156. :Trace Registers: ACVR[idx, idx+1], ACATR[idx], VIIECTLR
  157. :Notes:
  158. Read the currently selected address comparator. If part of
  159. address range then display both addresses.
  160. :Depends: ``addr_idx``
  161. :Syntax:
  162. ``cat addr_cmp_view``
  163. :Example:
  164. ``$> cat addr_cmp_view``
  165. ``addr_cmp[0] range 0x0 0xffffffffffffffff include ctrl(0x4b00)``
  166. ----
  167. :File: ``nr_addr_cmp`` (ro)
  168. :Trace Registers: From IDR4
  169. :Notes:
  170. Number of address comparator pairs
  171. ----
  172. :File: ``sshot_idx`` (rw)
  173. :Trace Registers: None
  174. :Notes:
  175. Select single shot register set.
  176. ----
  177. :File: ``sshot_ctrl`` (rw)
  178. :Trace Registers: SSCCR[idx]
  179. :Notes:
  180. Access a single shot comparator control register.
  181. :Depends: ``sshot_idx``
  182. :Syntax:
  183. ``echo val > sshot_ctrl``
  184. Writes val into the selected control register.
  185. ----
  186. :File: ``sshot_status`` (ro)
  187. :Trace Registers: SSCSR[idx]
  188. :Notes:
  189. Read a single shot comparator status register
  190. :Depends: ``sshot_idx``
  191. :Syntax:
  192. ``cat sshot_status``
  193. Read status.
  194. :Example:
  195. ``$> cat sshot_status``
  196. ``0x1``
  197. ----
  198. :File: ``sshot_pe_ctrl`` (rw)
  199. :Trace Registers: SSPCICR[idx]
  200. :Notes:
  201. Access a single shot PE comparator input control register.
  202. :Depends: ``sshot_idx``
  203. :Syntax:
  204. ``echo val > sshot_pe_ctrl``
  205. Writes val into the selected control register.
  206. ----
  207. :File: ``ns_exlevel_vinst`` (rw)
  208. :Trace Registers: VICTLR{23:20}
  209. :Notes:
  210. Program non-secure exception level filters. Set / clear NS
  211. exception filter bits. Setting ‘1’ excludes trace from the
  212. exception level.
  213. :Syntax:
  214. ``echo bitfield > ns_exlevel_viinst``
  215. Where bitfield contains bits to set clear for EL0 to EL2
  216. :Example:
  217. ``%> echo 0x4 > ns_exlevel_viinst``
  218. Excludes EL2 NS trace.
  219. ----
  220. :File: ``vinst_pe_cmp_start_stop`` (rw)
  221. :Trace Registers: VIPCSSCTLR
  222. :Notes:
  223. Access PE start stop comparator input control registers
  224. ----
  225. :File: ``bb_ctrl`` (rw)
  226. :Trace Registers: BBCTLR
  227. :Notes:
  228. Define ranges that Branch Broadcast will operate in.
  229. Default (0x0) is all addresses.
  230. :Depends: BB enabled.
  231. ----
  232. :File: ``cyc_threshold`` (rw)
  233. :Trace Registers: CCCTLR
  234. :Notes:
  235. Set the threshold for which cycle counts will be emitted.
  236. Error if attempt to set below minimum defined in IDR3, masked
  237. to width of valid bits.
  238. :Depends: CC enabled.
  239. ----
  240. :File: ``syncfreq`` (rw)
  241. :Trace Registers: SYNCPR
  242. :Notes:
  243. Set trace synchronisation period. Power of 2 value, 0 (off)
  244. or 8-20. Driver defaults to 12 (every 4096 bytes).
  245. ----
  246. :File: ``cntr_idx`` (rw)
  247. :Trace Registers: none
  248. :Notes:
  249. Select the counter to access
  250. :Syntax:
  251. ``echo idx > cntr_idx``
  252. Where idx < nr_cntr
  253. ----
  254. :File: ``cntr_ctrl`` (rw)
  255. :Trace Registers: CNTCTLR[idx]
  256. :Notes:
  257. Set counter control value.
  258. :Depends: ``cntr_idx``
  259. :Syntax:
  260. ``echo val > cntr_ctrl``
  261. Where val is per ETMv4 spec.
  262. ----
  263. :File: ``cntrldvr`` (rw)
  264. :Trace Registers: CNTRLDVR[idx]
  265. :Notes:
  266. Set counter reload value.
  267. :Depends: ``cntr_idx``
  268. :Syntax:
  269. ``echo val > cntrldvr``
  270. Where val is per ETMv4 spec.
  271. ----
  272. :File: ``nr_cntr`` (ro)
  273. :Trace Registers: From IDR5
  274. :Notes:
  275. Number of counters implemented.
  276. ----
  277. :File: ``ctxid_idx`` (rw)
  278. :Trace Registers: None
  279. :Notes:
  280. Select the context ID comparator to access
  281. :Syntax:
  282. ``echo idx > ctxid_idx``
  283. Where idx < numcidc
  284. ----
  285. :File: ``ctxid_pid`` (rw)
  286. :Trace Registers: CIDCVR[idx]
  287. :Notes:
  288. Set the context ID comparator value
  289. :Depends: ``ctxid_idx``
  290. ----
  291. :File: ``ctxid_masks`` (rw)
  292. :Trace Registers: CIDCCTLR0, CIDCCTLR1, CIDCVR<0-7>
  293. :Notes:
  294. Pair of values to set the byte masks for 1-8 context ID
  295. comparators. Automatically clears masked bytes to 0 in CID
  296. value registers.
  297. :Syntax:
  298. ``echo m3m2m1m0 [m7m6m5m4] > ctxid_masks``
  299. 32 bit values made up of mask bytes, where mN represents a
  300. byte mask value for Context ID comparator N.
  301. Second value not required on systems that have fewer than 4
  302. context ID comparators
  303. ----
  304. :File: ``numcidc`` (ro)
  305. :Trace Registers: From IDR4
  306. :Notes:
  307. Number of Context ID comparators
  308. ----
  309. :File: ``vmid_idx`` (rw)
  310. :Trace Registers: None
  311. :Notes:
  312. Select the VM ID comparator to access.
  313. :Syntax:
  314. ``echo idx > vmid_idx``
  315. Where idx < numvmidc
  316. ----
  317. :File: ``vmid_val`` (rw)
  318. :Trace Registers: VMIDCVR[idx]
  319. :Notes:
  320. Set the VM ID comparator value
  321. :Depends: ``vmid_idx``
  322. ----
  323. :File: ``vmid_masks`` (rw)
  324. :Trace Registers: VMIDCCTLR0, VMIDCCTLR1, VMIDCVR<0-7>
  325. :Notes:
  326. Pair of values to set the byte masks for 1-8 VM ID comparators.
  327. Automatically clears masked bytes to 0 in VMID value registers.
  328. :Syntax:
  329. ``echo m3m2m1m0 [m7m6m5m4] > vmid_masks``
  330. Where mN represents a byte mask value for VMID comparator N.
  331. Second value not required on systems that have fewer than 4
  332. VMID comparators.
  333. ----
  334. :File: ``numvmidc`` (ro)
  335. :Trace Registers: From IDR4
  336. :Notes:
  337. Number of VMID comparators
  338. ----
  339. :File: ``res_idx`` (rw)
  340. :Trace Registers: None.
  341. :Notes:
  342. Select the resource selector control to access. Must be 2 or
  343. higher as selectors 0 and 1 are hardwired.
  344. :Syntax:
  345. ``echo idx > res_idx``
  346. Where 2 <= idx < nr_resource x 2
  347. ----
  348. :File: ``res_ctrl`` (rw)
  349. :Trace Registers: RSCTLR[idx]
  350. :Notes:
  351. Set resource selector control value. Value per ETMv4 spec.
  352. :Depends: ``res_idx``
  353. :Syntax:
  354. ``echo val > res_cntr``
  355. Where val is per ETMv4 spec.
  356. ----
  357. :File: ``nr_resource`` (ro)
  358. :Trace Registers: From IDR4
  359. :Notes:
  360. Number of resource selector pairs
  361. ----
  362. :File: ``event`` (rw)
  363. :Trace Registers: EVENTCTRL0R
  364. :Notes:
  365. Set up to 4 implemented event fields.
  366. :Syntax:
  367. ``echo ev3ev2ev1ev0 > event``
  368. Where evN is an 8 bit event field. Up to 4 event fields make up the
  369. 32-bit input value. Number of valid fields is implementation dependent,
  370. defined in IDR0.
  371. ----
  372. :File: ``event_instren`` (rw)
  373. :Trace Registers: EVENTCTRL1R
  374. :Notes:
  375. Choose events which insert event packets into trace stream.
  376. :Depends: EVENTCTRL0R
  377. :Syntax:
  378. ``echo bitfield > event_instren``
  379. Where bitfield is up to 4 bits according to number of event fields.
  380. ----
  381. :File: ``event_ts`` (rw)
  382. :Trace Registers: TSCTLR
  383. :Notes:
  384. Set the event that will generate timestamp requests.
  385. :Depends: ``TS activated``
  386. :Syntax:
  387. ``echo evfield > event_ts``
  388. Where evfield is an 8 bit event selector.
  389. ----
  390. :File: ``seq_idx`` (rw)
  391. :Trace Registers: None
  392. :Notes:
  393. Sequencer event register select - 0 to 2
  394. ----
  395. :File: ``seq_state`` (rw)
  396. :Trace Registers: SEQSTR
  397. :Notes:
  398. Sequencer current state - 0 to 3.
  399. ----
  400. :File: ``seq_event`` (rw)
  401. :Trace Registers: SEQEVR[idx]
  402. :Notes:
  403. State transition event registers
  404. :Depends: ``seq_idx``
  405. :Syntax:
  406. ``echo evBevF > seq_event``
  407. Where evBevF is a 16 bit value made up of two event selectors,
  408. - evB : back
  409. - evF : forwards.
  410. ----
  411. :File: ``seq_reset_event`` (rw)
  412. :Trace Registers: SEQRSTEVR
  413. :Notes:
  414. Sequencer reset event
  415. :Syntax:
  416. ``echo evfield > seq_reset_event``
  417. Where evfield is an 8 bit event selector.
  418. ----
  419. :File: ``nrseqstate`` (ro)
  420. :Trace Registers: From IDR5
  421. :Notes:
  422. Number of sequencer states (0 or 4)
  423. ----
  424. :File: ``nr_pe_cmp`` (ro)
  425. :Trace Registers: From IDR4
  426. :Notes:
  427. Number of PE comparator inputs
  428. ----
  429. :File: ``nr_ext_inp`` (ro)
  430. :Trace Registers: From IDR5
  431. :Notes:
  432. Number of external inputs
  433. ----
  434. :File: ``nr_ss_cmp`` (ro)
  435. :Trace Registers: From IDR4
  436. :Notes:
  437. Number of Single Shot control registers
  438. ----
  439. *Note:* When programming any address comparator the driver will tag the
  440. comparator with a type used - i.e. RANGE, SINGLE, START, STOP. Once this tag
  441. is set, then only the values can be changed using the same sysfs file / type
  442. used to program it.
  443. Thus::
  444. % echo 0 > addr_idx ; select address comparator 0
  445. % echo 0x1000 0x5000 0 > addr_range ; set address range on comparators 0, 1.
  446. % echo 0x2000 > addr_start ; error as comparator 0 is a range comparator
  447. % echo 2 > addr_idx ; select address comparator 2
  448. % echo 0x2000 > addr_start ; this is OK as comparator 2 is unused.
  449. % echo 0x3000 > addr_stop ; error as comparator 2 set as start address.
  450. % echo 2 > addr_idx ; select address comparator 3
  451. % echo 0x3000 > addr_stop ; this is OK
  452. To remove programming on all the comparators (and all the other hardware) use
  453. the reset parameter::
  454. % echo 1 > reset
  455. The ‘mode’ sysfs parameter.
  456. ---------------------------
  457. This is a bitfield selection parameter that sets the overall trace mode for the
  458. ETM. The table below describes the bits, using the defines from the driver
  459. source file, along with a description of the feature these represent. Many
  460. features are optional and therefore dependent on implementation in the
  461. hardware.
  462. Bit assignments shown below:-
  463. ----
  464. **bit (0):**
  465. ETM_MODE_EXCLUDE
  466. **description:**
  467. This is the default value for the include / exclude function when
  468. setting address ranges. Set 1 for exclude range. When the mode
  469. parameter is set this value is applied to the currently indexed
  470. address range.
  471. .. _coresight-branch-broadcast:
  472. **bit (4):**
  473. ETM_MODE_BB
  474. **description:**
  475. Set to enable branch broadcast if supported in hardware [IDR0]. The primary use for this feature
  476. is when code is patched dynamically at run time and the full program flow may not be able to be
  477. reconstructed using only conditional branches.
  478. There is currently no support in Perf for supplying modified binaries to the decoder, so this
  479. feature is only intended to be used for debugging purposes or with a 3rd party tool.
  480. Choosing this option will result in a significant increase in the amount of trace generated -
  481. possible danger of overflows, or fewer instructions covered. Note, that this option also
  482. overrides any setting of :ref:`ETM_MODE_RETURNSTACK <coresight-return-stack>`, so where a branch
  483. broadcast range overlaps a return stack range, return stacks will not be available for that
  484. range.
  485. .. _coresight-cycle-accurate:
  486. **bit (5):**
  487. ETMv4_MODE_CYCACC
  488. **description:**
  489. Set to enable cycle accurate trace if supported [IDR0].
  490. **bit (6):**
  491. ETMv4_MODE_CTXID
  492. **description:**
  493. Set to enable context ID tracing if supported in hardware [IDR2].
  494. **bit (7):**
  495. ETM_MODE_VMID
  496. **description:**
  497. Set to enable virtual machine ID tracing if supported [IDR2].
  498. .. _coresight-timestamp:
  499. **bit (11):**
  500. ETMv4_MODE_TIMESTAMP
  501. **description:**
  502. Set to enable timestamp generation if supported [IDR0].
  503. .. _coresight-return-stack:
  504. **bit (12):**
  505. ETM_MODE_RETURNSTACK
  506. **description:**
  507. Set to enable trace return stack use if supported [IDR0].
  508. **bit (13-14):**
  509. ETM_MODE_QELEM(val)
  510. **description:**
  511. ‘val’ determines level of Q element support enabled if
  512. implemented by the ETM [IDR0]
  513. **bit (19):**
  514. ETM_MODE_ATB_TRIGGER
  515. **description:**
  516. Set to enable the ATBTRIGGER bit in the event control register
  517. [EVENTCTLR1] if supported [IDR5].
  518. **bit (20):**
  519. ETM_MODE_LPOVERRIDE
  520. **description:**
  521. Set to enable the LPOVERRIDE bit in the event control register
  522. [EVENTCTLR1], if supported [IDR5].
  523. **bit (21):**
  524. ETM_MODE_ISTALL_EN
  525. **description:**
  526. Set to enable the ISTALL bit in the stall control register
  527. [STALLCTLR]
  528. **bit (23):**
  529. ETM_MODE_INSTPRIO
  530. **description:**
  531. Set to enable the INSTPRIORITY bit in the stall control register
  532. [STALLCTLR] , if supported [IDR0].
  533. **bit (24):**
  534. ETM_MODE_NOOVERFLOW
  535. **description:**
  536. Set to enable the NOOVERFLOW bit in the stall control register
  537. [STALLCTLR], if supported [IDR3].
  538. **bit (25):**
  539. ETM_MODE_TRACE_RESET
  540. **description:**
  541. Set to enable the TRCRESET bit in the viewinst control register
  542. [VICTLR] , if supported [IDR3].
  543. **bit (26):**
  544. ETM_MODE_TRACE_ERR
  545. **description:**
  546. Set to enable the TRCCTRL bit in the viewinst control register
  547. [VICTLR].
  548. **bit (27):**
  549. ETM_MODE_VIEWINST_STARTSTOP
  550. **description:**
  551. Set the initial state value of the ViewInst start / stop logic
  552. in the viewinst control register [VICTLR]
  553. **bit (30):**
  554. ETM_MODE_EXCL_KERN
  555. **description:**
  556. Set default trace setup to exclude kernel mode trace (see note a)
  557. **bit (31):**
  558. ETM_MODE_EXCL_USER
  559. **description:**
  560. Set default trace setup to exclude user space trace (see note a)
  561. ----
  562. *Note a)* On startup the ETM is programmed to trace the complete address space
  563. using address range comparator 0. ‘mode’ bits 30 / 31 modify this setting to
  564. set EL exclude bits for NS state in either user space (EL0) or kernel space
  565. (EL1) in the address range comparator. (the default setting excludes all
  566. secure EL, and NS EL2)
  567. Once the reset parameter has been used, and/or custom programming has been
  568. implemented - using these bits will result in the EL bits for address
  569. comparator 0 being set in the same way.
  570. *Note b)* Bits 2-3, 8-10, 15-16, 18, 22, control features that only work with
  571. data trace. As A-profile data trace is architecturally prohibited in ETMv4,
  572. these have been omitted here. Possible uses could be where a kernel has
  573. support for control of R or M profile infrastructure as part of a heterogeneous
  574. system.
  575. Bits 17, 28-29 are unused.