Date: Fri, 09 Mar 2001 19:05:59 +1030 (CST) From: "Daniel O'Connor" <doconnor@gsoft.com.au> To: Mikhail Kruk <meshko@cs.brandeis.edu> Cc: stable@freebsd.org, Andrew Hesford <ajh3@chmod.ath.cx> Subject: Re: top/systat Message-ID: <XFMail.010309190559.doconnor@gsoft.com.au> In-Reply-To: <Pine.LNX.4.30.0103090326150.23474-100000@daedalus.cs.brandeis.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On 09-Mar-01 Mikhail Kruk wrote: > > In either case, the kernel symbols aren't loaded, and top relies on > > them. > > btw this doesn't seem to make sense. I'd appreciate if you point me to > something that would clarify this to me. I don't understand how top and > friends use the symbols in kernel and I feel that I would like to know > that. top et al open /dev/kmem (which is a file by which you can read kernel memory) and then look for these symbols and read the data straight out of kernel space.. Efficient but gross :) --- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010309190559.doconnor>