[lkml]   [1997]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectkernel data structures
>>>>> "Gernot" == Gernot Kerschbaumer <> writes:

Gernot> Hello all!

Gernot> I would like to examine some kernel data structures. The
Gernot> proc man page told me under "kcore" that with an
Gernot> unstripped kernel binary /usr/src/linux/tools/zSystem gdb
Gernot> can be used to examine these data structures. I have the
Gernot> source code of my linux system 2.0.0, but in the linux
Gernot> directory there is no directory named tools and there's no
Gernot> file zSystem anywhere.

Gernot> Can anyone please direct me where to get that unstripped
Gernot> kernel binary? btw, what does this mean, an "unstripped"
Gernot> kernel binary?

The man pages are a bit old ...

zSystem is now /usr/src/linux/vmlinux and is the image of the
vmlinuz executable after being decompressed.

So, you just have to compile the whole kernel with "-g", boot it,
and run "gdb vmlinux /proc/kcore" to examine kernel data structures
(*no* breakpoints, here :-)

Herve Regad-Pellagru

SEX: Software EXchange. A technique invented by the blue-green algae
hundreds of millions of years ago to speed up their evolution, which
had been terribly slow up until then.

 \ /
  Last update: 2005-03-22 13:38    [W:0.022 / U:1.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site