요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
Trace events, exception levels와 address comparators
sysfs-bus-coresight-devices-etm4x:94-182PE selection, event banks, timestamps·sync·cycle threshold·branch broadcast·instruction filtering을 제어하고 addr_idx로 single 또는 range comparator를 program합니다.
Sequencer, counter, resource, context와 VMID selectors
sysfs-bus-coresight-devices-etm4x:183-284seq_idx·cntr_idx·res_idx·ctxid_idx·vmid_idx가 각 hardware unit을 선택하고 state/event, count, resource, context ID와 VMID values·masks를 read/write합니다.
Exception-level, PE comparator와 single-shot extensions
sysfs-bus-coresight-devices-etm4x:285-337Secure/non-secure exception matching, PE comparator start/stop, selected address view와 indexed single-shot control·status를 제공하고 label이 hardware context를 표시합니다.
ETM4x management register views
sysfs-bus-coresight-devices-etm4x:338-435OS·software locks, power, authentication, device architecture/type/IDs, software trace configuration과 trace ID registers를 exact offsets에서 읽습니다.
TRCIDR capabilities와 timestamp source
sysfs-bus-coresight-devices-etm4x:436-532TRCIDR files는 trace capability, value widths, resources, speculation과 P0/P1 keys를 보고하며 ts_source는 FEAT_TRF timestamp source 또는 unknown -1을 제공합니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
What: /sys/bus/coresight/devices/etm<N>/enable_source
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (RW) Enable/disable tracing on this specific trace entiry.
Enabling a source implies the source has been configured
properly and a sink has been identidifed for it. The path
of coresight components linking the source to the sink is
configured and managed automatically by the coresight framework.
What: /sys/bus/coresight/devices/etm<N>/cpu
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (Read) The CPU this tracing entity is associated with.
What: /sys/bus/coresight/devices/etm<N>/nr_pe_cmp
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Indicates the number of PE comparator inputs that are
available for tracing.
What: /sys/bus/coresight/devices/etm<N>/nr_addr_cmp
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Indicates the number of address comparator pairs that are
available for tracing.
What: /sys/bus/coresight/devices/etm<N>/nr_cntr
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Indicates the number of counters that are available for
tracing.
What: /sys/bus/coresight/devices/etm<N>/nr_ext_inp
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Indicates how many external inputs are implemented.
What: /sys/bus/coresight/devices/etm<N>/numcidc
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Indicates the number of Context ID comparators that are
available for tracing.
What: /sys/bus/coresight/devices/etm<N>/numvmidc
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Indicates the number of VMID comparators that are available
for tracing.
What: /sys/bus/coresight/devices/etm<N>/nrseqstate
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Indicates the number of sequencer states that are
implemented.
What: /sys/bus/coresight/devices/etm<N>/nr_resource
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Indicates the number of resource selection pairs that are
available for tracing.
What: /sys/bus/coresight/devices/etm<N>/nr_ss_cmp
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Indicates the number of single-shot comparator controls that
are available for tracing.
What: /sys/bus/coresight/devices/etm<N>/reset
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (Write) Cancels all configuration on a trace unit and set it back
to its boot configuration.
What: /sys/bus/coresight/devices/etm<N>/mode
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (RW) Controls various modes supported by this ETM, for example
P0 instruction tracing, branch broadcast, cycle counting and
context ID tracing.
What: /sys/bus/coresight/devices/etm<N>/pe
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (RW) Controls which PE to trace.
What: /sys/bus/coresight/devices/etm<N>/event
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (RW) Controls the tracing of arbitrary events from bank 0 to 3.
What: /sys/bus/coresight/devices/etm<N>/event_instren
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (RW) Controls the behavior of the events in bank 0 to 3.
What: /sys/bus/coresight/devices/etm<N>/event_ts
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (RW) Controls the insertion of global timestamps in the trace
streams.
What: /sys/bus/coresight/devices/etm<N>/syncfreq
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (RW) Controls how often trace synchronization requests occur.
What: /sys/bus/coresight/devices/etm<N>/cyc_threshold
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (RW) Sets the threshold value for cycle counting.
What: /sys/bus/coresight/devices/etm<N>/bb_ctrl
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (RW) Controls which regions in the memory map are enabled to
use branch broadcasting.
What: /sys/bus/coresight/devices/etm<N>/event_vinst
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (RW) Controls instruction trace filtering.
What: /sys/bus/coresight/devices/etm<N>/s_exlevel_vinst
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (RW) In Secure state, each bit controls whether instruction
tracing is enabled for the corresponding exception level.
What: /sys/bus/coresight/devices/etm<N>/ns_exlevel_vinst
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (RW) In non-secure state, each bit controls whether instruction
tracing is enabled for the corresponding exception level.
What: /sys/bus/coresight/devices/etm<N>/addr_idx
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (RW) Select which address comparator or pair (of comparators) to
work with.
What: /sys/bus/coresight/devices/etm<N>/addr_instdatatype
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (RW) Controls what type of comparison the trace unit performs.
What: /sys/bus/coresight/devices/etm<N>/addr_single
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (RW) Used to setup single address comparator values.
What: /sys/bus/coresight/devices/etm<N>/addr_range
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (RW) Used to setup address range comparator values.
What: /sys/bus/coresight/devices/etm<N>/seq_idx
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (RW) Select which sequensor.
What: /sys/bus/coresight/devices/etm<N>/seq_state
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (RW) Use this to set, or read, the sequencer state.
What: /sys/bus/coresight/devices/etm<N>/seq_event
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (RW) Moves the sequencer state to a specific state.
What: /sys/bus/coresight/devices/etm<N>/seq_reset_event
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (RW) Moves the sequencer to state 0 when a programmed event
occurs.
What: /sys/bus/coresight/devices/etm<N>/cntr_idx
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (RW) Select which counter unit to work with.
What: /sys/bus/coresight/devices/etm<N>/cntrldvr
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (RW) This sets or returns the reload count value of the
specific counter.
What: /sys/bus/coresight/devices/etm<N>/cntr_val
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (RW) This sets or returns the current count value of the
specific counter.
What: /sys/bus/coresight/devices/etm<N>/cntr_ctrl
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (RW) Controls the operation of the selected counter.
What: /sys/bus/coresight/devices/etm<N>/res_idx
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (RW) Select which resource selection unit to work with.
What: /sys/bus/coresight/devices/etm<N>/res_ctrl
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (RW) Controls the selection of the resources in the trace unit.
What: /sys/bus/coresight/devices/etm<N>/ctxid_idx
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (RW) Select which context ID comparator to work with.
What: /sys/bus/coresight/devices/etm<N>/ctxid_pid
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (RW) Get/Set the context ID comparator value to trigger on.
What: /sys/bus/coresight/devices/etm<N>/ctxid_masks
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (RW) Mask for all 8 context ID comparator value
registers (if implemented).
What: /sys/bus/coresight/devices/etm<N>/vmid_idx
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (RW) Select which virtual machine ID comparator to work with.
What: /sys/bus/coresight/devices/etm<N>/vmid_val
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (RW) Get/Set the virtual machine ID comparator value to
trigger on.
What: /sys/bus/coresight/devices/etm<N>/vmid_masks
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (RW) Mask for all 8 virtual machine ID comparator value
registers (if implemented).
What: /sys/bus/coresight/devices/etm<N>/addr_exlevel_s_ns
Date: December 2019
KernelVersion: 5.5
Contact: Mathieu Poirier <[email protected]>
Description: (RW) Set the Exception Level matching bits for secure and
non-secure exception levels.
What: /sys/bus/coresight/devices/etm<N>/vinst_pe_cmp_start_stop
Date: December 2019
KernelVersion: 5.5
Contact: Mathieu Poirier <[email protected]>
Description: (RW) Access the start stop control register for PE input
comparators.
What: /sys/bus/coresight/devices/etm<N>/addr_cmp_view
Date: December 2019
KernelVersion: 5.5
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Print the current settings for the selected address
comparator.
What: /sys/bus/coresight/devices/etm<N>/sshot_idx
Date: December 2019
KernelVersion: 5.5
Contact: Mathieu Poirier <[email protected]>
Description: (RW) Select the single shot control register to access.
What: /sys/bus/coresight/devices/etm<N>/sshot_ctrl
Date: December 2019
KernelVersion: 5.5
Contact: Mathieu Poirier <[email protected]>
Description: (RW) Access the selected single shot control register.
What: /sys/bus/coresight/devices/etm<N>/sshot_status
Date: December 2019
KernelVersion: 5.5
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Print the current value of the selected single shot
status register.
What: /sys/bus/coresight/devices/etm<N>/sshot_pe_ctrl
Date: December 2019
KernelVersion: 5.5
Contact: Mathieu Poirier <[email protected]>
Description: (RW) Access the selected single show PE comparator control
register.
What: /sys/bus/coresight/devices/etm<N>/label
Date: Aug 2025
KernelVersion 6.18
Contact: Mao Jinlong <[email protected]>
Description: (Read) Show hardware context information of device.
What: /sys/bus/coresight/devices/etm<N>/mgmt/trcoslsr
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Print the content of the OS Lock Status Register (0x304).
The value it taken directly from the HW.
What: /sys/bus/coresight/devices/etm<N>/mgmt/trcpdcr
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Print the content of the Power Down Control Register
(0x310). The value is taken directly from the HW.
What: /sys/bus/coresight/devices/etm<N>/mgmt/trcpdsr
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Print the content of the Power Down Status Register
(0x314). The value is taken directly from the HW.
What: /sys/bus/coresight/devices/etm<N>/mgmt/trclsr
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Print the content of the SW Lock Status Register
(0xFB4). The value is taken directly from the HW.
What: /sys/bus/coresight/devices/etm<N>/mgmt/trcauthstatus
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Print the content of the Authentication Status Register
(0xFB8). The value is taken directly from the HW.
What: /sys/bus/coresight/devices/etm<N>/mgmt/trcdevid
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Print the content of the Device ID Register
(0xFC8). The value is taken directly from the HW.
What: /sys/bus/coresight/devices/etm<N>/mgmt/trcdevarch
Date: January 2021
KernelVersion: 5.12
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Print the content of the Device Architecture Register
(offset 0xFBC). The value is taken directly read
from the HW.
What: /sys/bus/coresight/devices/etm<N>/mgmt/trcdevtype
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Print the content of the Device Type Register
(0xFCC). The value is taken directly from the HW.
What: /sys/bus/coresight/devices/etm<N>/mgmt/trcpidr0
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Print the content of the Peripheral ID0 Register
(0xFE0). The value is taken directly from the HW.
What: /sys/bus/coresight/devices/etm<N>/mgmt/trcpidr1
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Print the content of the Peripheral ID1 Register
(0xFE4). The value is taken directly from the HW.
What: /sys/bus/coresight/devices/etm<N>/mgmt/trcpidr2
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Print the content of the Peripheral ID2 Register
(0xFE8). The value is taken directly from the HW.
What: /sys/bus/coresight/devices/etm<N>/mgmt/trcpidr3
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Print the content of the Peripheral ID3 Register
(0xFEC). The value is taken directly from the HW.
What: /sys/bus/coresight/devices/etm<N>/mgmt/trcconfig
Date: February 2016
KernelVersion: 4.07
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Print the content of the trace configuration register
(0x010) as currently set by SW.
What: /sys/bus/coresight/devices/etm<N>/mgmt/trctraceid
Date: February 2016
KernelVersion: 4.07
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Print the content of the trace ID register (0x040).
What: /sys/bus/coresight/devices/etm<N>/trcidr/trcidr0
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Returns the tracing capabilities of the trace unit (0x1E0).
The value is taken directly from the HW.
What: /sys/bus/coresight/devices/etm<N>/trcidr/trcidr1
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Returns the tracing capabilities of the trace unit (0x1E4).
The value is taken directly from the HW.
What: /sys/bus/coresight/devices/etm<N>/trcidr/trcidr2
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Returns the maximum size of the data value, data address,
VMID, context ID and instruction address in the trace unit
(0x1E8). The value is taken directly from the HW.
What: /sys/bus/coresight/devices/etm<N>/trcidr/trcidr3
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Returns the value associated with various resources
available to the trace unit. See the Trace Macrocell
architecture specification for more details (0x1E8).
The value is taken directly from the HW.
What: /sys/bus/coresight/devices/etm<N>/trcidr/trcidr4
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Returns how many resources the trace unit supports (0x1F0).
The value is taken directly from the HW.
What: /sys/bus/coresight/devices/etm<N>/trcidr/trcidr5
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Returns how many resources the trace unit supports (0x1F4).
The value is taken directly from the HW.
What: /sys/bus/coresight/devices/etm<N>/trcidr/trcidr8
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Returns the maximum speculation depth of the instruction
trace stream. (0x180). The value is taken directly from the HW.
What: /sys/bus/coresight/devices/etm<N>/trcidr/trcidr9
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Returns the number of P0 right-hand keys that the trace unit
can use (0x184). The value is taken directly from the HW.
What: /sys/bus/coresight/devices/etm<N>/trcidr/trcidr10
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Returns the number of P1 right-hand keys that the trace unit
can use (0x188). The value is taken directly from the HW.
What: /sys/bus/coresight/devices/etm<N>/trcidr/trcidr11
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Returns the number of special P1 right-hand keys that the
trace unit can use (0x18C). The value is taken directly from
the HW.
What: /sys/bus/coresight/devices/etm<N>/trcidr/trcidr12
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Returns the number of conditional P1 right-hand keys that
the trace unit can use (0x190). The value is taken directly
from the HW.
What: /sys/bus/coresight/devices/etm<N>/trcidr/trcidr13
Date: April 2015
KernelVersion: 4.01
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Returns the number of special conditional P1 right-hand keys
that the trace unit can use (0x194). The value is taken
directly from the HW.
What: /sys/bus/coresight/devices/etm<N>/ts_source
Date: October 2022
KernelVersion: 6.1
Contact: Mathieu Poirier <[email protected]> or Suzuki K Poulose <[email protected]>
Description: (Read) When FEAT_TRF is implemented, value of TRFCR_ELx.TS used for
trace session. Otherwise -1 indicates an unknown time source. Check
trcidr0.tssize to see if a global timestamp is available.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
ETM4x source control과 hardware capabilities
1-93| 공통 항목 | 내용 |
|---|---|
| Date | 2015년 4월 |
| KernelVersion | 4.01 |
| Contact | Mathieu Poirier <[email protected]> |
| 적용 범위 | 별도 metadata가 명시된 lines 285 이후 attributes를 제외한 lines 1-284 |
| What suffix | Access | 전문 번역 |
|---|---|---|
| enable_source | RW | 이 특정 trace entity의 tracing을 enable 또는 disable합니다. Source를 enable한다는 것은 source가 올바르게 configure되었고 sink가 identified되었음을 전제로 합니다. Source와 sink를 연결하는 CoreSight components path는 CoreSight framework가 자동으로 configure하고 manage합니다. |
| cpu | Read | 이 tracing entity와 연결된 CPU입니다. |
| nr_pe_cmp | Read | Tracing에 사용할 수 있는 PE comparator inputs 수를 나타냅니다. |
| nr_addr_cmp | Read | Tracing에 사용할 수 있는 address comparator pairs 수를 나타냅니다. |
| nr_cntr | Read | Tracing에 사용할 수 있는 counters 수를 나타냅니다. |
| nr_ext_inp | Read | 구현된 external inputs 수를 나타냅니다. |
| numcidc | Read | Tracing에 사용할 수 있는 Context ID comparators 수를 나타냅니다. |
| numvmidc | Read | Tracing에 사용할 수 있는 VMID comparators 수를 나타냅니다. |
| nrseqstate | Read | 구현된 sequencer states 수를 나타냅니다. |
| nr_resource | Read | Tracing에 사용할 수 있는 resource selection pairs 수를 나타냅니다. |
| nr_ss_cmp | Read | Tracing에 사용할 수 있는 single-shot comparator controls 수를 나타냅니다. |
| reset | Write | Trace unit의 모든 configuration을 cancel하고 boot configuration으로 되돌립니다. |
| mode | RW | P0 instruction tracing, branch broadcast, cycle counting과 context ID tracing 등 이 ETM이 지원하는 여러 mode를 제어합니다. |
모든 suffix는 /sys/bus/coresight/devices/etm<N>/ 아래의 file입니다.
Hardware resource counts를 확인해 source를 configure하고 sink를 identify한 뒤 framework-managed path를 enable한다.
Trace event controls와 address comparisons
94-182| What suffix | Access | 전문 번역 |
|---|---|---|
| pe | RW | 어떤 PE를 trace할지 제어합니다. |
| event | RW | Bank 0부터 3까지의 arbitrary events tracing을 제어합니다. |
| event_instren | RW | Bank 0부터 3까지 events의 behavior를 제어합니다. |
| event_ts | RW | Trace streams에 global timestamp를 삽입하는 동작을 제어합니다. |
| syncfreq | RW | Trace synchronization request가 얼마나 자주 발생하는지 제어합니다. |
| cyc_threshold | RW | Cycle counting의 threshold value를 설정합니다. |
| bb_ctrl | RW | Memory map에서 branch broadcasting을 사용할 수 있는 regions를 제어합니다. |
| event_vinst | RW | Instruction trace filtering을 제어합니다. |
| s_exlevel_vinst | RW | Secure state에서 각 bit가 corresponding exception level의 instruction tracing enable 여부를 제어합니다. |
| ns_exlevel_vinst | RW | Non-secure state에서 각 bit가 corresponding exception level의 instruction tracing enable 여부를 제어합니다. |
| addr_idx | RW | 작업할 address comparator 또는 comparator pair를 선택합니다. |
| addr_instdatatype | RW | Trace unit이 수행하는 comparison type을 제어합니다. |
| addr_single | RW | Single address comparator values를 setup하는 데 사용합니다. |
| addr_range | RW | Address range comparator values를 setup하는 데 사용합니다. |
Trace mode와 event filters를 설정하고 addr_idx로 selected comparator에 single 또는 range value를 적용한다.
Indexed sequencer, counters, resources, Context ID와 VMID
183-284| What suffix | Access | 전문 번역 |
|---|---|---|
| seq_idx | RW | 작업할 sequencer를 선택합니다. |
| seq_state | RW | Sequencer state를 설정하거나 읽습니다. |
| seq_event | RW | Sequencer state를 특정 state로 이동시킵니다. |
| seq_reset_event | RW | Programmed event가 발생하면 sequencer를 state 0으로 이동시킵니다. |
| cntr_idx | RW | 작업할 counter unit을 선택합니다. |
| cntrldvr | RW | 특정 counter의 reload count value를 설정하거나 반환합니다. |
| cntr_val | RW | 특정 counter의 current count value를 설정하거나 반환합니다. |
| cntr_ctrl | RW | Selected counter의 operation을 제어합니다. |
| res_idx | RW | 작업할 resource selection unit을 선택합니다. |
| res_ctrl | RW | Trace unit의 resource selection을 제어합니다. |
| ctxid_idx | RW | 작업할 context ID comparator를 선택합니다. |
| ctxid_pid | RW | Trigger할 context ID comparator value를 get 또는 set합니다. |
| ctxid_masks | RW | 구현된 경우 context ID comparator value registers 8개 모두에 적용하는 mask입니다. |
| vmid_idx | RW | 작업할 virtual machine ID comparator를 선택합니다. |
| vmid_val | RW | Trigger할 virtual machine ID comparator value를 get 또는 set합니다. |
| vmid_masks | RW | 구현된 경우 virtual machine ID comparator value registers 8개 모두에 적용하는 mask입니다. |
각 selector가 target hardware unit을 고른 뒤 corresponding control/value file이 selected unit을 조작한다.
Exception matching, PE comparator와 single-shot controls
285-337| 공통 항목 | 내용 |
|---|---|
| Date | 2019년 12월 |
| KernelVersion | 5.5 |
| Contact | Mathieu Poirier <[email protected]> |
| 적용 범위 | lines 285-331의 7개 attributes |
| What suffix | Access | 전문 번역 |
|---|---|---|
| addr_exlevel_s_ns | RW | Secure와 non-secure exception levels의 Exception Level matching bits를 설정합니다. |
| vinst_pe_cmp_start_stop | RW | PE input comparators의 start/stop control register에 access합니다. |
| addr_cmp_view | Read | Selected address comparator의 current settings를 출력합니다. |
| sshot_idx | RW | Access할 single-shot control register를 선택합니다. |
| sshot_ctrl | RW | Selected single-shot control register에 access합니다. |
| sshot_status | Read | Selected single-shot status register의 current value를 출력합니다. |
| sshot_pe_ctrl | RW | Selected single-shot PE comparator control register에 access합니다. |
| 항목 | 전문 번역 |
|---|---|
| What | /sys/bus/coresight/devices/etm<N>/label |
| Date | 2025년 8월 |
| KernelVersion | 6.18 |
| Contact | Mao Jinlong <[email protected]> |
| Description | (Read) Device의 hardware context information을 보여 줍니다. |
ETM4x management register contents
338-435아래 management files는 /sys/bus/coresight/devices/etm<N>/mgmt/ 아래에 있으며 contact는 Mathieu Poirier <[email protected]>입니다.
| What suffix | Date / Kernel | Register | Offset | 전문 번역 |
|---|---|---|---|---|
| trcoslsr | 2015-04 / 4.01 | OS Lock Status | 0x304 | Hardware에서 직접 가져온 content를 출력합니다. |
| trcpdcr | 2015-04 / 4.01 | Power Down Control | 0x310 | Hardware에서 직접 가져온 content를 출력합니다. |
| trcpdsr | 2015-04 / 4.01 | Power Down Status | 0x314 | Hardware에서 직접 가져온 content를 출력합니다. |
| trclsr | 2015-04 / 4.01 | SW Lock Status | 0xFB4 | Hardware에서 직접 가져온 content를 출력합니다. |
| trcauthstatus | 2015-04 / 4.01 | Authentication Status | 0xFB8 | Hardware에서 직접 가져온 content를 출력합니다. |
| trcdevid | 2015-04 / 4.01 | Device ID | 0xFC8 | Hardware에서 직접 가져온 content를 출력합니다. |
| trcdevarch | 2021-01 / 5.12 | Device Architecture | 0xFBC | Hardware에서 직접 읽은 content를 출력합니다. |
| trcdevtype | 2015-04 / 4.01 | Device Type | 0xFCC | Hardware에서 직접 가져온 content를 출력합니다. |
| trcpidr0 | 2015-04 / 4.01 | Peripheral ID0 | 0xFE0 | Hardware에서 직접 가져온 content를 출력합니다. |
| trcpidr1 | 2015-04 / 4.01 | Peripheral ID1 | 0xFE4 | Hardware에서 직접 가져온 content를 출력합니다. |
| trcpidr2 | 2015-04 / 4.01 | Peripheral ID2 | 0xFE8 | Hardware에서 직접 가져온 content를 출력합니다. |
| trcpidr3 | 2015-04 / 4.01 | Peripheral ID3 | 0xFEC | Hardware에서 직접 가져온 content를 출력합니다. |
| trcconfig | 2016-02 / 4.07 | Trace Configuration | 0x010 | Software가 current setting으로 정한 register content를 출력합니다. |
| trctraceid | 2016-02 / 4.07 | Trace ID | 0x040 | Trace ID register content를 출력합니다. |
TRCIDR trace capabilities와 timestamp source
436-532| 공통 항목 | 내용 |
|---|---|
| Date | 2015년 4월 |
| KernelVersion | 4.01 |
| Contact | Mathieu Poirier <[email protected]> |
| 적용 범위 | lines 436-525의 TRCIDR attributes |
| What suffix | Offset | 전문 번역 |
|---|---|---|
| trcidr/trcidr0 | 0x1E0 | Trace unit의 tracing capabilities를 반환합니다. Hardware에서 직접 값을 가져옵니다. |
| trcidr/trcidr1 | 0x1E4 | Trace unit의 tracing capabilities를 반환합니다. Hardware에서 직접 값을 가져옵니다. |
| trcidr/trcidr2 | 0x1E8 | Trace unit에서 data value, data address, VMID, context ID와 instruction address의 maximum size를 반환합니다. Hardware에서 직접 값을 가져옵니다. |
| trcidr/trcidr3 | 0x1E8 | Trace unit에서 사용할 수 있는 여러 resource와 관련된 값을 반환합니다. 자세한 내용은 Trace Macrocell architecture specification을 참조하십시오. Hardware에서 직접 값을 가져옵니다. |
| trcidr/trcidr4 | 0x1F0 | Trace unit이 지원하는 resource 수를 반환합니다. Hardware에서 직접 값을 가져옵니다. |
| trcidr/trcidr5 | 0x1F4 | Trace unit이 지원하는 resource 수를 반환합니다. Hardware에서 직접 값을 가져옵니다. |
| trcidr/trcidr8 | 0x180 | Instruction trace stream의 maximum speculation depth를 반환합니다. Hardware에서 직접 값을 가져옵니다. |
| trcidr/trcidr9 | 0x184 | Trace unit이 사용할 수 있는 P0 right-hand keys 수를 반환합니다. Hardware에서 직접 값을 가져옵니다. |
| trcidr/trcidr10 | 0x188 | Trace unit이 사용할 수 있는 P1 right-hand keys 수를 반환합니다. Hardware에서 직접 값을 가져옵니다. |
| trcidr/trcidr11 | 0x18C | Trace unit이 사용할 수 있는 special P1 right-hand keys 수를 반환합니다. Hardware에서 직접 값을 가져옵니다. |
| trcidr/trcidr12 | 0x190 | Trace unit이 사용할 수 있는 conditional P1 right-hand keys 수를 반환합니다. Hardware에서 직접 값을 가져옵니다. |
| trcidr/trcidr13 | 0x194 | Trace unit이 사용할 수 있는 special conditional P1 right-hand keys 수를 반환합니다. Hardware에서 직접 값을 가져옵니다. |
| 항목 | 전문 번역 |
|---|---|
| What | /sys/bus/coresight/devices/etm<N>/ts_source |
| Date | 2022년 10월 |
| KernelVersion | 6.1 |
| Contact | Mathieu Poirier <[email protected]> |
| Description | (Read) FEAT_TRF가 구현되어 있으면 trace session에 사용하는 TRFCR_ELx.TS value입니다. 그렇지 않으면 -1이 unknown time source를 나타냅니다. Global timestamp를 사용할 수 있는지는 trcidr0.tssize를 확인하십시오. |
Trace source, affinity, capabilities와 mode
sysfs-bus-coresight-devices-etm4x:1-93enable_source는 configured ETM4x를 identified sink에 연결하고 cpu와 resource-count files가 affinity·hardware capabilities를 제공하며 reset·mode가 configuration lifecycle을 제어합니다.