Re: Kernel message



On Sat, 2 Jun 2007, umesh@xxxxxxxxxxxxxxxx wrote:

Can anyone send me the documentation about dmesg message that how
can we understand by it. I am searching good document which can
explain each and every line of dmesg.

umesh

this is really more of a kernel newbie question that belongs on the
newbie list but, if you really want to know the meaning of each line,
you might want to trace the code from kernel startup to see when each
of those lines is printed to see what they represent.

starting in init/main.c, find the routine "start_kernel" around line
500 and several lines in, you'll see:

...
printk(KERN_NOTICE);
printk(linux_banner);
...

(why these two printk's are broken over two lines is a mystery but ...
whatever.)

then if you go to init/version.c, you can verify that linux_banner
does indeed represent the normal first line in /var/log/dmesg, such
as:

Linux version 2.6.20-1.2948.fc6
(brewbuilder@xxxxxxxxxxxxxxxxxxxxxxxxxxx) (gcc version 4.1.1 20070105
(Red Hat 4.1.1-51)) #1 SMP Fri Apr 27 19:48:40 EDT 2007

at that point, start following the code to see where each line in
dmesg comes from.

rday

p.s. please use a better subject line than just "Kernel message".
that doesn't tell anyone what you're actually asking about.

--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: USB regression (and other failures) in 2.6.2[45]*
    ... In my current testing kernel, which I believe is the one with which I ... captured the sole successful non-2.6.23.1 dmesg so far, ... then none of your USB devices would be able to run at high speed. ... That would require me to learn enough of how git works, ...
    (Linux-Kernel)
  • Lost Ticks on x86_64
    ... I've had this problem on every kernel I've tried running (as far as I ... error appears in my dmesg usually after a CPU-intensive task (glxgears ... this machine has an Adaptec 2100S SCSI controller ... the nVidia SMBus, the nVidia USB controller, and the TI IEEE1394 ...
    (Linux-Kernel)
  • Re: Optimizationn questions?
    ... a look at dmesg output - for example, Intel Celeron 400Mhz is a 686 ... class processor (I686_CPU in the kernel configuration file): ... I signal to gcc to unroll loops ... Gary Kline kline@xxxxxxxxxxx www.thought.org Public Service Unix ...
    (freebsd-questions)
  • Re: ACPI Panic on Current, AMD64
    ... capture the full dmesg, please let me know. ... way it still to get serial console working. ... to try if you can compile your own kernel (you can do in on the 7.x ... partition, just compile kernel for 8-CURRENT, set it to boot with ...
    (freebsd-current)
  • USB external CD-RW and FreeBSD 5.3
    ... Here is a partial DMESG with some kernel log messages; ... usb2: OHCI version 1.0 ... Nov 3 10:47:26 tarkhil kernel: GEOM: new disk da0 ...
    (freebsd-stable)