Research and Primitive Implementation of Backtracking Debugging Based on Process Snapshotting in Kernel Mode
- Author
- LuoZuo
- Advisor
- BoJiaJun , ChenHua
- School
- Zhejiang University
- Major
- Applied Computer Technology
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2008
- Downloads
- 88
- Citations
- 3
Abstract
In software development , the developer has spent a lot of time in debugging . The ordinary debugger provides a lot of help , but debugging is still a daunting task . To this end , the developers based snapshot retrospective debugging technology , including snapshot technology is a lot in user mode to achieve . In this paper , we modify the kernel on the basis of gdb realized prototype debugger based on a snapshot of kernel mode processes can be traced back . The snapshot is widely used in fault-tolerant technology to reduce wasted CPU resume operation after the crash of the application run-time . A means to modify the kernel to achieve processes snapshot , and the snapshot and debugging tools combine the methods discussed in this paper . This paper first introduces the debugging technology at home and abroad and the process snapshot technology progress , then achieved by modifying the Linux kernel process snapshot . This paper focuses on the kernel - mode process snapshot retrospective debugging techniques , mainly composed of two parts : by modifying the kernel realization process snapshots and snapshot technology integrated into the research and realization of the gdb debugger . Modify the kernel to achieve processes snapshot snapshot file format based on the the elf format of the snap process , save and restore process user mode and kernel mode information , and the design of the the tools dump_snap View snapshot generate the tools generate_snap and the snap file . Add binfmt_elf_snap.ko module file by modifying the kernel , the kernel process snap snapshot file can be loaded directly . In the the integrated process snapshot technology gdb debugger study discussed gdb architecture , and through the expansion of gdb gdb debug support from the the snap file read symbol information . In addition, some commands have been added in gdb gdb to be able to generate a snapshot file and switch to a snapshot points for debugging . The experimental results show that this method can be easily traceback debugging , and greatly improve the debugging efficiency in the debugger .
Table of contents
Abstract 3-4
Abstract 4-10
Chapter 1 Introduction 10-15
the 1.1 research background and significance 10
Project Background
1.2 topics 10-13
1.3 of this paper mainly work 13-14
1.4 of this article organizational structure 14
1.5 This chapter Summary 14-15
Chapter 2 Commissioning and the snapshot related technical overview 15-23
2.1 debugging techniques Introduction 15-17
2.1.1 debugging technology Research 15
of 2.1.2 Error Locating delta debugging techniques 15-16
2.1.3 backtracking debugging and other debugging techniques 16-17
2.1.4 open source debugging gdb About 17
the
the 2.2 snapshot technology About 17-22
2.2.1 snapshot technology Introduction 17-18
the 2.2.2 checkpoint libraries libckpt About 18-19
2.2.3 core dump core dump Technical Overview 19-20
2.2.4 snapshot application - process migration 20-22
2.3 This chapter Summary 22-23
the process snapshot
Chapter 3 generation technology research 23-33
3.1 process snapshot method 23
3.2 process snapshot generated whole idea 23
3.3 user virtual address space preservation methods 23-24
3.4 process kernel state information saved method 24-25
3.4.1 related kernel state information About 24
information preservation program of the 3.4.2 kernel mode 24-25
3.5 generation custom snap file format 25-28
3.5.1 custom the snap file format designed 25-26
3.5.2 custom the snap files need to meet the requirements 26
3.5.3 custom the snap file several design 26-28
3.5.4 snapshot files are generated optimize 28
3.6 process status information recovery method 28-31
3.6.1 process state to restore the two programs 28-29
3.6.2 process user state information recovery process 29-30
3.6.3 process kernel state information recovery process 30-31
3.6.4 on security improvements 31
3.7 This chapter Summary 31-33
Chapter 4 can be traced back to the snapshot based on the kernel-mode process debugging techniques 33-40
4.1 kernel-mode process snapshot-based basic idea can be traced back debugging 33
4.2 open source debugger gdb software architecture design 33-37
Introduction to the overall structure of the
4.2.1 open source debugging gdb 33-34
4.2.2 open source debugging gdb process tracking to achieve 34-35
4.2.3 open source debugger gdb the breakpoints set of algorithm to achieve 35-36
4.2.4 open source debugger the gdb single-step debugging algorithm 36-37
4.3 snapshot based on the kernel-mode process can be traced back debugging technology integration in gdb 37-39
4.4 This chapter Summary 39-40
the Chapter 5 backtracking debug prototype system to achieve 40-58
5.1 process-based snap snapshot files generated 40-47
5.1.1 kernel state information to obtain 40
5.1.2 Related elf file format Introduction 40-42
5.1.3 from the defined snap file specific design 42-45
5.1.4 generation process snap snapshot file algorithm 45-47
5.1.5 Development snap file parsing tools 47
5.2 from the process snapshot snap file recovery process run 47-49
the 5.3 process snapshot Technology and the gdb integration 49-50
5.4 Experimental results 50-55
5.5 Performance Evaluation 55-57
5.6 This chapter Summary 57-58
Chapter 6 Summary and Outlook 58-60
6.1 summarizes 58
6.2 Looking 58-60
the
References 60-63
Acknowledgements 63-64
of resume The 64
Related dissertations
- Research on VM-based Incremental Checkpoint and Execution Replay
- The Credit Process Optimization of A Bank
- Yunnan Local Taxation Bureau Collection and Managemeng Process Reengineering
- Constructing the system of comprehensive budget management in service enterprises
- Study on Optimizing Organization and Decision-making Based on Supply Chain Process of a Telecom Equipment Company
- Bank of Beijing Tianjin Branch Customer Service Marketing Strategy
- Simulation of Employee Turnover Behavior in IT Enterprise Based on Catastrophe Theory
- The Research of ERP Project Implementation in a Large Enterprise
- Research on 4W menu management Sichuan Meishan sales company
- Research on Standard System Integration of Company E
- Coship Electronics Corporation Integrated Product Development and Management Mode Research
- Research of Export Business Process in A Electric Co.
- A Research on Developing Suburban Agricultural in Fushan District
- An Optimization Research on Distribution Center of Logistics System in Hengshui Tobacco
- Regulation and Development:the Motive Power of Chinese TV Drama’s Industrial Process Research
- The Programing and Development of Automatic Control System for Alpha Gypsum Powder Production Line
- CAD/CAM System for Gem Grinding&Carving Robot
- Simulation and Optimization Research on the Steel Production Based on Arena
- Research and Implementation of Fault Recovery Mechanism in Large-scale Graph Processing System Based on BSP
- Journal Design and Implementation of Cappella Distributed File System