- 1、本文档共19页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Linux Kernel Debugging
Linux Technology
Center
Linux Kernel Debugging
Oops, Now What?
Ross Mikosh James Washer
Linux Technology
Center
Types of Problems
Tools
Error and Debug Messages
Handling Failures
Kernel Investigation
Handling a System Crash
Oops Analysis Example
LKCD/Lcrash
More Information
Outline
Linux Technology
Center
Debuggers
gdb
kdb
others?
Built-In
Oops data upon a panic/crash
Dump Facility
Linux? Kernel Crash Dump - lkcd
Linux Trace Toolkit
ltt
Custom Kernel Instrumentation
dprobes
Special console functions
Magic SysReq key
Tools
Linux Technology
Center
System error logs
/var/log/*
dmesg
Syslog
Console
Application or Module debug level
Error/Debug Messages
Linux Technology
Center
System Crash
Collect and analyze oops/panic data
Collect and analyze dump with lkcd
System Hang
Use Magic SysReq key
NMI invoking a dump using lkcd
S/390 - invoke a stand-alone dump
Handling Failures
Linux Technology
Center
Debuggers
Gdb and /proc/kcore
Remote kernel debugging - gdb serial connection
Kdb
Lcrash on running system
Adding printks in the kernel
Programming a debug module or a new /proc file
Appropriate for customer/production environment ?
Kernel Investigation
Linux Technology
Center
Occurs when a critical system failure is detected
Kernel routines call die()
Attempts to report/record system state
Information is limited
Better to have an entire system memory dump
LKCD project on SourceForge
Thorough analysis and investigation can be done
Handling a System Crash
Linux Technology
Center
Panic/Oops Analysis
Steps
Collect oops output, System.map, /proc/ksyms, vmlinux, /proc/modules
Use ksymoops to interpret oops
Instructions is /usr/src/linux/Documentation/oops-tracing.txt
Ksymoops(8) man page
Be Careful...
Brief analysis
Ksymoops disassembles the code section
The EIP points to the failing instruction
The call trace section shows how you got there
Caution: Noise on the stack?
How to find failing line of code?
Oops Example
Unable to handle kernel NULL pointer dereference at virtual ad
您可能关注的文档
- hspice讲义-入门最好.pdf
- HST Absolute Spectrophotometry of Vega from the Far-UV to the IR.pdf
- HST Stellar Standards with 1% Accuracy in Absolute Flux.pdf
- HSV在肿瘤治疗中的优势.pdf
- HUAWEI ME909 Series LTE LGA Module Brief Hardware Guide_V0.2.pdf
- Human being is a living random number generator.pdf
- Human Effort and Machine Learnability in Computer Aided Translation.pdf
- Human IL-12(P70)ELISA Kit说明书.pdf
- human_muscle_stem_cell.pdf
- Hybrid hot strip rolling force prediction using a bayesian trained artificial neural networ.pdf
文档评论(0)