Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!constellation!paladin.american.edu!zombie.ncsc.mil!news.duke.edu!eff!usenet.ins.cwru.edu!news.ecn.bgu.edu!psuvax1!news.pop.psu.edu!news.cac.psu.edu!newsserver.jvnc.net!raffles.technet.sg!nuscc.nus.sg!isc10032
From: isc10032@leonis.nus.sg (PEH LI SHIUAN)
Newsgroups: comp.unix.bsd
Subject: Full description of symbol table from the kernel image
Date: 30 Jun 1994 08:02:15 GMT
Organization: National University of Singapore
Lines: 36
Message-ID: <2utu67$klk@nuscc.nus.sg>
NNTP-Posting-Host: leonis.nus.sg
X-Newsreader: TIN [version 1.2 PL0]
Subject: Full description of symbol table from the kernel image
Newsgroups: comp.unix.wizards
Summary:
Keywords:
Am developing a load information manager which needs to delve into the
kernel for resource queue lengths to form a load index.
I use kvm_open to initialise the running kernel file /dev/kmem or
/dev/mem and then kvm_nlist to get the list of symbols we want to access
from vmunix. One of the inputs to kvm_nlist is an array of struct nlist,
which is of the following structure :-
struct nlist *nl {
n_name /*This is the name of symbols which we want to read
from the kernel -- input to kvm_nlist*/
n_type /*If the named symbol is present in the kernel symbol table
*/ n_value /*the type and value will be placed in these 2 fields */
}
I can then use kvm_read to extract these symbol values from the kernel.
I am now able to list the symbol names inside vmunix (e.g. _cp_time)
using the nm command. However, the problem is, these symbol names are
very brief and vague. Hence, I am unable to pinpoint the symbols which I
need. Does anyone know of a way of getting their full descriptions??
Thanks a lot...
From: Vicki Peh
National University of Singapore
isc10032@leonis.nus.sg