Re: /dev/kmem

From: George Anzinger (george@pioneer.net)
Date: Sat May 06 2000 - 05:41:52 EST


Keith Owens wrote:
>
> On Sat, 06 May 2000 03:13:07 -0700,
> George Anzinger <george@pioneer.net> wrote:
> >Tigran Aivazian wrote:
> >> ksymoops -s map < /dev/null
> >...............snip............
> >Ok, the basic idea is to look at the System.map file right?
>
> System.map plus modules.
>
> >Now I am doing a lot of kernel testing and have more than one kernel on
> >a system, using lilo to pick and choose. What is the usual method used
> >to insure that the correct System.map file is avaiable to each system?
>
> Up to you, ksymoops and user space files are under the control of the
> sysadmin, not the kernel. FWIW, my method is to copy .config and
> System.map to /lib/modules/xxx after doing make modules_install for
> kernel xxx. Other people like to store System.map in /boot and name it
> System.map-xxx. Whatever works for you, just pass the name of your map
> to ksymoops with the -m option.

I am more interested in making kernel symbols and their values available
to programs. For example I currently need the value of
"delay_at_last_interrupt" a wonderful value that the time.c keeps.

I assume that I can clip code from ksymoops to fetch the symbol address
and hopefully its value. Since this thing changes each 10ms I need to
get it in a hurry.

George

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun May 07 2000 - 21:00:19 EST