요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
What: /sys/kernel/debug/tracing
Date: May 2008
KernelVersion: 2.6.27
Contact: [email protected]
Description:
The ftrace was first added to the kernel, its interface was placed
into the debugfs file system under the "tracing" directory. Access
to the files were in /sys/kernel/debug/tracing. As systems wanted
access to the tracing interface without having to enable debugfs, a
new interface was created called "tracefs". This was a stand alone
file system and was usually mounted in /sys/kernel/tracing.
To allow older tooling to continue to operate, when mounting
debugfs, the tracefs file system would automatically get mounted in
the "tracing" directory of debugfs. The tracefs interface was added
in January 2015 in the v4.1 kernel.
All tooling should now be using tracefs directly and the "tracing"
directory in debugfs should be removed by January 2030.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
/sys/kernel/debug/tracing 호환 ABI
1-20| 항목 | 값 |
|---|---|
| What | /sys/kernel/debug/tracing |
| Date | 2008년 5월 |
| KernelVersion | 2.6.27 |
| Contact | [email protected] |
ftrace가 kernel에 처음 추가되었을 때 interface는 debugfs filesystem의 tracing directory에 배치되었다. file은 /sys/kernel/debug/tracing에서 접근했다.
system이 debugfs를 활성화하지 않고도 tracing interface에 접근하기를 원하면서 tracefs라는 새 interface가 만들어졌다. tracefs는 독립 filesystem이며 일반적으로 /sys/kernel/tracing에 mount한다.
오래된 tool이 계속 동작하도록 debugfs를 mount할 때 tracefs도 debugfs의 tracing directory에 자동으로 mount되었다. tracefs interface는 2015년 1월 Linux v4.1에 추가되었다.
이제 모든 tool은 tracefs를 직접 사용해야 한다. debugfs의 tracing directory는 2030년 1월까지 제거해야 한다.
debugfs tracing 경로에서 독립 tracefs로
automount-tracefs-debugfs:1-20ftrace가 debugfs 하위에서 시작한 뒤 독립 tracefs로 분리되었지만, 오래된 도구를 위해 debugfs mount 시 tracing directory에 tracefs를 자동 mount해 온 호환 ABI입니다.
새 도구는 /sys/kernel/tracing을 직접 사용해야 하며 debugfs의 호환 directory는 2030년 1월까지 제거하는 일정이 제시되어 있습니다.