|
| 1 | +/* |
| 2 | + * |
| 3 | + * (C) COPYRIGHT 2022 ARM Limited. All rights reserved. |
| 4 | + * |
| 5 | + * This program is free software and is provided to you under the terms of the |
| 6 | + * GNU General Public License version 2 as published by the Free Software |
| 7 | + * Foundation) and any use by you of this program is subject to the terms |
| 8 | + * of such GNU licence. |
| 9 | + * |
| 10 | + * A copy of the licence is included with the program) and can also be obtained |
| 11 | + * from Free Software Foundation) Inc.) 51 Franklin Street) Fifth Floor) |
| 12 | + * Boston) MA 02110-1301) USA. |
| 13 | + * |
| 14 | + */ |
| 15 | + |
| 16 | +What: /sys/bus/coresight/devices/mali-source-etm/enable_source |
| 17 | +Description: |
| 18 | + Attribute used to enable Coresight Source ETM. |
| 19 | + |
| 20 | +What: /sys/bus/coresight/devices/mali-source-etm/is_enabled |
| 21 | +Description: |
| 22 | + Attribute used to check if Coresight Source ITM is enabled. |
| 23 | + |
| 24 | +What: /sys/bus/coresight/devices/mali-source-etm/trcconfigr |
| 25 | +Description: |
| 26 | + Coresight Source ETM trace configuration to enable global |
| 27 | + timestamping, and data value tracing. |
| 28 | + |
| 29 | +What: /sys/bus/coresight/devices/mali-source-etm/trctraceidr |
| 30 | +Description: |
| 31 | + Coresight Source ETM trace ID. |
| 32 | + |
| 33 | +What: /sys/bus/coresight/devices/mali-source-etm/trcvdarcctlr |
| 34 | +Description: |
| 35 | + Coresight Source ETM viewData include/exclude address |
| 36 | + range comparators. |
| 37 | + |
| 38 | +What: /sys/bus/coresight/devices/mali-source-etm/trcviiectlr |
| 39 | +Description: |
| 40 | + Coresight Source ETM viewInst include and exclude control. |
| 41 | + |
| 42 | +What: /sys/bus/coresight/devices/mali-source-etm/trcstallctlr |
| 43 | +Description: |
| 44 | + Coresight Source ETM stall control register. |
| 45 | + |
| 46 | +What: /sys/bus/coresight/devices/mali-source-itm/enable_source |
| 47 | +Description: |
| 48 | + Attribute used to enable Coresight Source ITM. |
| 49 | + |
| 50 | +What: /sys/bus/coresight/devices/mali-source-itm/is_enabled |
| 51 | +Description: |
| 52 | + Attribute used to check if Coresight Source ITM is enabled. |
| 53 | + |
| 54 | +What: /sys/bus/coresight/devices/mali-source-itm/dwt_ctrl |
| 55 | +Description: |
| 56 | + Coresight Source DWT configuration: |
| 57 | + [0] = 1, enable cycle counter |
| 58 | + [4:1] = 4, set PC sample rate pf 256 cycles |
| 59 | + [8:5] = 1, set initial post count value |
| 60 | + [9] = 1, select position of post count tap on the cycle counter |
| 61 | + [10:11] = 1, enable sync packets |
| 62 | + [12] = 1, enable periodic PC sample packets |
| 63 | + |
| 64 | +What: /sys/bus/coresight/devices/mali-source-itm/itm_tcr |
| 65 | +Description: |
| 66 | + Coresight Source ITM configuration: |
| 67 | + [0] = 1, Enable ITM |
| 68 | + [1] = 1, Enable Time stamp generation |
| 69 | + [2] = 1, Enable sync packet transmission |
| 70 | + [3] = 1, Enable HW event forwarding |
| 71 | + [11:10] = 1, Generate TS request approx every 128 cycles |
| 72 | + [22:16] = 1, Trace bus ID |
| 73 | + |
| 74 | +What: /sys/bus/coresight/devices/mali-source-ela/enable_source |
| 75 | +Description: |
| 76 | + Attribute used to enable Coresight Source ELA. |
| 77 | + |
| 78 | +What: /sys/bus/coresight/devices/mali-source-ela/is_enabled |
| 79 | +Description: |
| 80 | + Attribute used to check if Coresight Source ELA is enabled. |
| 81 | + |
| 82 | +What: /sys/bus/coresight/devices/mali-source-ela/select |
| 83 | +Description: |
| 84 | + Coresight Source ELA select trace mode: |
| 85 | + [0], NONE |
| 86 | + [1], JCN |
| 87 | + [2], CEU_EXEC |
| 88 | + [3], CEU_CMDS |
| 89 | + [4], MCU_AHBP |
| 90 | + [5], HOST_AXI |
| 91 | + [6], NR_TRACEMODE |
| 92 | + |
| 93 | + Refer to specification for more details. |
| 94 | + |
| 95 | +What: /sys/bus/coresight/devices/mali-source-ela/sigmask0 |
| 96 | +Description: |
| 97 | + Coresight Source ELA SIGMASK0 register set/get. |
| 98 | + Refer to specification for more details. |
| 99 | + |
| 100 | +What: /sys/bus/coresight/devices/mali-source-ela/sigmask4 |
| 101 | +Description: |
| 102 | + Coresight Source ELA SIGMASK4 register set/get. |
| 103 | + Refer to specification for more details. |
| 104 | + |
| 105 | +What: /sys/bus/coresight/devices/mali-source-ela/sigcomp0 |
| 106 | +Description: |
| 107 | + Coresight Source ELA SIGCOMP0 register set/get. |
| 108 | + Refer to specification for more details. |
| 109 | + |
| 110 | +What: /sys/bus/coresight/devices/mali-source-ela/sigcomp4 |
| 111 | +Description: |
| 112 | + Coresight Source ELA SIGCOMP4 register set/get. |
| 113 | + Refer to specification for more details. |
0 commit comments