요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
Trace RAM size, status와 pointers
sysfs-bus-coresight-devices-tmc:10-40mgmt/rsz와 mgmt/sts는 local RAM 크기와 TMC status를, mgmt/rrp와 mgmt/rwp는 APB read 및 CoreSight bus write에 쓰이는 Trace RAM pointers를 hardware registers에서 직접 읽습니다.
Trigger, control과 formatter registers
sysfs-bus-coresight-devices-tmc:42-70mgmt/trg, mgmt/ctl, mgmt/ffsr와 mgmt/ffcr은 TMC trigger, control, Formatter and Flush status/control register 값을 직접 노출합니다.
TMC mode와 capabilities
sysfs-bus-coresight-devices-tmc:72-85mgmt/mode는 device에 구성된 동작 mode를, mgmt/devid는 CoreSight TMC capabilities를 보여 줍니다.
TMC-ETR buffer configuration
sysfs-bus-coresight-devices-tmc:87-109TMC-ETR에서는 page-aligned SYSFS trace buffer size를 설정하고, 지원되는 buffer modes를 확인한 뒤 그중 preferred mode를 선택할 수 있습니다.
Hardware context label
sysfs-bus-coresight-devices-tmc:111-115label은 TMC device의 hardware context information을 보여 줍니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
What: /sys/bus/coresight/devices/<memory_map>.tmc/trigger_cntr
Date: November 2014
KernelVersion: 3.19
Contact: Mathieu Poirier <[email protected]>
Description: (RW) Disables write access to the Trace RAM by stopping the
formatter after a defined number of words have been stored
following the trigger event. Additional interface for this
driver are expected to be added as it matures.
What: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/rsz
Date: March 2016
KernelVersion: 4.7
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Defines the size, in 32-bit words, of the local RAM buffer.
The value is read directly from HW register RSZ, 0x004.
What: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/sts
Date: March 2016
KernelVersion: 4.7
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Shows the value held by the TMC status register. The value
is read directly from HW register STS, 0x00C.
What: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/rrp
Date: March 2016
KernelVersion: 4.7
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Shows the value held by the TMC RAM Read Pointer register
that is used to read entries from the Trace RAM over the APB
interface. The value is read directly from HW register RRP,
0x014.
What: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/rwp
Date: March 2016
KernelVersion: 4.7
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Shows the value held by the TMC RAM Write Pointer register
that is used to sets the write pointer to write entries from
the CoreSight bus into the Trace RAM. The value is read directly
from HW register RWP, 0x018.
What: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/trg
Date: March 2016
KernelVersion: 4.7
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Similar to "trigger_cntr" above except that this value is
read directly from HW register TRG, 0x01C.
What: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/ctl
Date: March 2016
KernelVersion: 4.7
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Shows the value held by the TMC Control register. The value
is read directly from HW register CTL, 0x020.
What: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/ffsr
Date: March 2016
KernelVersion: 4.7
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Shows the value held by the TMC Formatter and Flush Status
register. The value is read directly from HW register FFSR,
0x300.
What: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/ffcr
Date: March 2016
KernelVersion: 4.7
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Shows the value held by the TMC Formatter and Flush Control
register. The value is read directly from HW register FFCR,
0x304.
What: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/mode
Date: March 2016
KernelVersion: 4.7
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Shows the value held by the TMC Mode register, which
indicate the mode the device has been configured to enact. The
The value is read directly from the MODE register, 0x028.
What: /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/devid
Date: March 2016
KernelVersion: 4.7
Contact: Mathieu Poirier <[email protected]>
Description: (Read) Indicates the capabilities of the Coresight TMC.
The value is read directly from the DEVID register, 0xFC8,
What: /sys/bus/coresight/devices/<memory_map>.tmc/buffer_size
Date: December 2018
KernelVersion: 4.19
Contact: Mathieu Poirier <[email protected]>
Description: (RW) Size of the trace buffer for TMC-ETR when used in SYSFS
mode. Writable only for TMC-ETR configurations. The value
should be aligned to the kernel pagesize.
What: /sys/bus/coresight/devices/<memory_map>.tmc/buf_modes_available
Date: August 2023
KernelVersion: 6.7
Contact: Anshuman Khandual <[email protected]>
Description: (Read) Shows all supported Coresight TMC-ETR buffer modes available
for the users to configure explicitly. This file is available only
for TMC ETR devices.
What: /sys/bus/coresight/devices/<memory_map>.tmc/buf_mode_preferred
Date: August 2023
KernelVersion: 6.7
Contact: Anshuman Khandual <[email protected]>
Description: (RW) Current Coresight TMC-ETR buffer mode selected. But user could
only provide a mode which is supported for a given ETR device. This
file is available only for TMC ETR devices.
What: /sys/bus/coresight/devices/<memory_map>.tmc/label
Date: Aug 2025
KernelVersion 6.18
Contact: Mao Jinlong <[email protected]>
Description: (Read) Show hardware context information of device.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
TMC trigger counter
1-8| 항목 | 전문 번역 |
|---|---|
| What | /sys/bus/coresight/devices/<memory_map>.tmc/trigger_cntr |
| Date | 2014년 11월 |
| KernelVersion | 3.19 |
| Contact | Mathieu Poirier <[email protected]> |
| Description | (RW) Trigger event 뒤 정의된 수의 words가 저장되면 formatter를 정지시켜 Trace RAM에 대한 write access를 disable합니다. 이 driver가 성숙함에 따라 추가 interface가 더해질 예정입니다. |
Trace RAM management registers
10-40| What | Date / Kernel / Contact | 전문 번역 |
|---|---|---|
| /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/rsz | 2016년 3월 / 4.7 / Mathieu Poirier <[email protected]> | (Read) Local RAM buffer의 크기를 32-bit words 단위로 정의합니다. 값은 hardware register RSZ, 0x004에서 직접 읽습니다. |
| /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/sts | 2016년 3월 / 4.7 / Mathieu Poirier <[email protected]> | (Read) TMC status register가 보관하는 값을 보여 줍니다. 값은 hardware register STS, 0x00C에서 직접 읽습니다. |
| /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/rrp | 2016년 3월 / 4.7 / Mathieu Poirier <[email protected]> | (Read) APB interface를 통해 Trace RAM의 entries를 읽는 데 사용하는 TMC RAM Read Pointer register 값을 보여 줍니다. 값은 hardware register RRP, 0x014에서 직접 읽습니다. |
| /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/rwp | 2016년 3월 / 4.7 / Mathieu Poirier <[email protected]> | (Read) CoreSight bus의 entries를 Trace RAM에 기록할 write pointer를 설정하는 TMC RAM Write Pointer register 값을 보여 줍니다. 값은 hardware register RWP, 0x018에서 직접 읽습니다. |
CoreSight bus에서 들어온 trace는 RWP가 가리키는 위치에 기록되고 RRP가 가리키는 entries는 APB interface를 통해 읽힙니다.
TMC trigger, control과 formatter registers
42-70| What | Date / Kernel / Contact | 전문 번역 |
|---|---|---|
| /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/trg | 2016년 3월 / 4.7 / Mathieu Poirier <[email protected]> | (Read) 위 trigger_cntr와 비슷하지만 이 값은 hardware register TRG, 0x01C에서 직접 읽습니다. |
| /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/ctl | 2016년 3월 / 4.7 / Mathieu Poirier <[email protected]> | (Read) TMC Control register가 보관하는 값을 보여 줍니다. 값은 hardware register CTL, 0x020에서 직접 읽습니다. |
| /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/ffsr | 2016년 3월 / 4.7 / Mathieu Poirier <[email protected]> | (Read) TMC Formatter and Flush Status register가 보관하는 값을 보여 줍니다. 값은 hardware register FFSR, 0x300에서 직접 읽습니다. |
| /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/ffcr | 2016년 3월 / 4.7 / Mathieu Poirier <[email protected]> | (Read) TMC Formatter and Flush Control register가 보관하는 값을 보여 줍니다. 값은 hardware register FFCR, 0x304에서 직접 읽습니다. |
TMC mode와 device capabilities
72-85| What | Date / Kernel / Contact | 전문 번역 |
|---|---|---|
| /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/mode | 2016년 3월 / 4.7 / Mathieu Poirier <[email protected]> | (Read) Device가 수행하도록 구성된 mode를 나타내는 TMC Mode register 값을 보여 줍니다. 값은 MODE register, 0x028에서 직접 읽습니다. |
| /sys/bus/coresight/devices/<memory_map>.tmc/mgmt/devid | 2016년 3월 / 4.7 / Mathieu Poirier <[email protected]> | (Read) CoreSight TMC의 capabilities를 나타냅니다. 값은 DEVID register, 0xFC8에서 직접 읽습니다. |
TMC-ETR SYSFS buffer configuration
87-109| What | Date / Kernel / Contact | 전문 번역 |
|---|---|---|
| /sys/bus/coresight/devices/<memory_map>.tmc/buffer_size | 2018년 12월 / 4.19 / Mathieu Poirier <[email protected]> | (RW) SYSFS mode에서 사용하는 TMC-ETR trace buffer의 크기입니다. TMC-ETR configuration에서만 쓸 수 있으며 값은 kernel page size에 맞춰 정렬해야 합니다. |
| /sys/bus/coresight/devices/<memory_map>.tmc/buf_modes_available | 2023년 8월 / 6.7 / Anshuman Khandual <[email protected]> | (Read) 사용자가 명시적으로 구성할 수 있는, 지원되는 모든 CoreSight TMC-ETR buffer modes를 보여 줍니다. 이 file은 TMC ETR devices에만 존재합니다. |
| /sys/bus/coresight/devices/<memory_map>.tmc/buf_mode_preferred | 2023년 8월 / 6.7 / Anshuman Khandual <[email protected]> | (RW) 현재 선택된 CoreSight TMC-ETR buffer mode입니다. 사용자는 해당 ETR device가 지원하는 mode만 지정할 수 있습니다. 이 file은 TMC ETR devices에만 존재합니다. |
TMC hardware context
111-115| 항목 | 전문 번역 |
|---|---|
| What | /sys/bus/coresight/devices/<memory_map>.tmc/label |
| Date | 2025년 8월 |
| KernelVersion | 6.18 |
| Contact | Mao Jinlong <[email protected]> |
| Description | (Read) Device의 hardware context information을 보여 줍니다. |
Trigger 이후 formatter 정지
sysfs-bus-coresight-devices-tmc:1-8trigger_cntr는 trigger event 뒤 지정된 word 수를 저장한 후 formatter를 멈춰 Trace RAM write access를 중단합니다.