Re: Linux Source Code Exploration - Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jesper Juhl wrote:
On boot time, which part of the source code actually
gets executed?


arch/i386/boot/setup.S is one of the first very first bits.
but, the boot code is usually not that interresting, it doesn't change
much, is written in asm, not C, and the job it does is actually pretty
boring. Stuff like the scheduler, memory management, network code,
driver core etc is usually more interresting to look at.

Hari,

Try looking at start_kernel() in init/main.c

It can be difficult to trace through all the routines to see how
stuff is initialized (lots of times calls are made through
function pointers).  One method to try and trace things is to sprinkle
your own printk's through the code and see them get executed.  If
you're interested in bootup time, try adding "time" to the kernel
command line, and you can see the time for each printk.

Hope this helps,
 -- Tim

=============================
Tim Bird
Architecture Group Chair, CE Linux Forum
Senior Staff Engineer, Sony Electronics
=============================


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux