요약·해설, 영어 원문, 전체 번역을 구분해 실었습니다. API 이름, 코드 심벌, 소스 경로는 원문 표기를 유지합니다.
1. 요약·해설
원문의 핵심 내용을 정리하고 커널 프로그래밍에 필요한 설명을 덧붙였습니다. 아래의 전체 번역과는 별도로 작성한 해설입니다.
2. 영어 원문 전체
번역에 사용한 Linux v6.18.37 원문입니다. 줄 번호는 해당 버전의 소스 파일을 기준으로 합니다.
원문 전체 펼치기
1
What: /sys/kernel/vmcoreinfo
2
Date: October 2007
3
KernelVersion: 2.6.24
4
Contact: Ken'ichi Ohmichi <[email protected]>
5
Kexec Mailing List <[email protected]>
6
Vivek Goyal <[email protected]>
7
Description:
8
Shows physical address and size of vmcoreinfo ELF note.
9
First value contains physical address of note in hex and
10
second value contains the size of note in hex. This ELF
11
note info is parsed by second kernel and exported to user
12
space as part of ELF note in /proc/vmcore file. This note
13
contains various information like struct size, symbol
14
values, page size etc.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미에 맞춰 전체 내용을 번역했습니다. 코드, 함수명, 코드 심벌, URL은 원문 표기를 유지합니다.
vmcoreinfo ELF note sysfs ABI: vmcoreinfo
1-14| 항목 | 한국어 전문 번역 |
|---|---|
| What | /sys/kernel/vmcoreinfo |
| Date | 2007년 10월 |
| KernelVersion | 2.6.24 |
| Contact | Ken'ichi Ohmichi <[email protected]> Kexec Mailing List <[email protected]> Vivek Goyal <[email protected]> |
| Description | `/sys/kernel/vmcoreinfo`는 vmcoreinfo ELF note의 physical address와 size를 표시합니다. 첫 번째 hexadecimal value는 note의 physical address이고 두 번째 hexadecimal value는 note의 size입니다. 두 번째 kernel은 이 정보를 parsing해 `/proc/vmcore` file의 ELF note 일부로 userspace에 export합니다. 이 note에는 struct size, symbol values, page size 등의 정보가 들어 있습니다. |
Physical address + size in sysfs→Second kernel parses vmcoreinfo note→/proc/vmcore ELF note→Userspace crash analysis
첫 번째 kernel이 남긴 note 위치를 두 번째 kernel이 해석해 vmcore ELF note로 전달합니다.
Crash kernel이 해석할 ELF note 위치
sysfs-kernel-vmcoreinfo:1-14Kernel crash dump에서 필요한 구조체 크기와 symbol 값을 복구할 수 있도록 vmcoreinfo note의 물리 주소와 크기를 연결합니다.