Documentation/ABI/obsolete/automount-tracefs-debugfs GitHub 원문 ↗

Linux 6.18.37 · ABI / obsolete

debugfs 아래 tracefs 자동 mount ABI

과거 /sys/kernel/debug/tracing 호환 mount가 도입된 배경과 tracefs 직접 사용으로의 전환 일정을 설명합니다.

Source pathDocumentation/ABI/obsolete/automount-tracefs-debugfs
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설, 영어 원문, 전체 번역을 구분해 실었습니다. API 이름, 코드 심벌, 소스 경로는 원문 표기를 유지합니다.

1. 요약·해설

원문의 핵심 내용을 정리하고 커널 프로그래밍에 필요한 설명을 덧붙였습니다. 아래의 전체 번역과는 별도로 작성한 해설입니다.

debugfs tracing 경로에서 독립 tracefs로

automount-tracefs-debugfs:1-20

ftrace가 debugfs 하위에서 시작한 뒤 독립 tracefs로 분리되었지만, 오래된 도구를 위해 debugfs mount 시 tracing directory에 tracefs를 자동 mount해 온 호환 ABI입니다.

새 도구는 /sys/kernel/tracing을 직접 사용해야 하며 debugfs의 호환 directory는 2030년 1월까지 제거하는 일정이 제시되어 있습니다.

2. 영어 원문 전체

번역에 사용한 Linux v6.18.37 원문입니다. 줄 번호는 해당 버전의 소스 파일을 기준으로 합니다.

원문 전체 펼치기
1 What: /sys/kernel/debug/tracing
2 Date: May 2008
3 KernelVersion: 2.6.27
5 Description:
6
7 The ftrace was first added to the kernel, its interface was placed
8 into the debugfs file system under the "tracing" directory. Access
9 to the files were in /sys/kernel/debug/tracing. As systems wanted
10 access to the tracing interface without having to enable debugfs, a
11 new interface was created called "tracefs". This was a stand alone
12 file system and was usually mounted in /sys/kernel/tracing.
13
14 To allow older tooling to continue to operate, when mounting
15 debugfs, the tracefs file system would automatically get mounted in
16 the "tracing" directory of debugfs. The tracefs interface was added
17 in January 2015 in the v4.1 kernel.
18
19 All tooling should now be using tracefs directly and the "tracing"
20 directory in debugfs should be removed by January 2030.
21

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미에 맞춰 전체 내용을 번역했습니다. 코드, 함수명, 코드 심벌, URL은 원문 표기를 유지합니다.

/sys/kernel/debug/tracing 호환 ABI

1-20
항목값
What/sys/kernel/debug/tracing
Date2008년 5월
KernelVersion2.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월까지 제거해야 한다.