Linux kernel Analysis Job 3: Trace analysis of the boot process of the Linux kernel

Source: Internet
Author: User

Kernel Source Directory

1, Arch: recorded x86 focus on

2. Init: Start_kernel in MAIN.C under directory is the starting point of the boot kernel

3. IPC: Directory of inter-process communication

Experiment

Open the shell with a virtual machine in the lab building

CD linuxkernel/

Qemu-kernel LINUX-3.18.6/ARCH/X86/BOOT/BZIMAGE-INITRD rootfs.img

Use gdb Trace Debug Kernel

qemu -kernel linux-3.18 . 6 /arch/x86/boot/bzImage -initrd rootfs.img  - s  -S  #

Load Symbol table

Set breakpoints

Summary:understanding of the "Linux system startup process"

The Start_kernel in MAIN.C under the Init directory is the starting point for booting the kernel. Start of process Init in Strat_kernel

Li Hai Empty original works reprint please indicate the source "Linux kernel Analysis" MOOC course http://mooc.study.163.com/course/USTC-1000029000

Linux kernel Analysis Job 3: Trace analysis of the boot process of the Linux kernel

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.