openbsd-misc
[Top] [All Lists]

Re: kvm programming tutorial

To: Andreas Schuldei <andreas@schuldei.org>
Subject: Re: kvm programming tutorial
From: Markus Friedl <markus.friedl@informatik.uni-erlangen.de>
Date: Sat, 17 Feb 2001 20:31:57 +0100
Cc: misc <misc@openbsd.org>
In-reply-to: <20010217132604.A22843@sigrid.schuldei.com>; from andreas@schuldei.org on Sat, Feb 17, 2001 at 01:26:04PM +0100
References: <20010217132604.A22843@sigrid.schuldei.com>
Sender: owner-misc@openbsd.org
User-agent: Mutt/1.2.5i
pstat is easy, just check the KGET* macros.
kvm(3) and kvm_read(3) tell you all what
you need.

the return data is just the number of bytes
at the requested address. that's it.

if you need to get the address of symbols,
you have to use kvm_nlist(3). just look
at all setgid-kmem binaries.

On Sat, Feb 17, 2001 at 01:26:04PM +0100, Andreas Schuldei wrote:
> I am looking for a straight forward example/tutorial of kvm
> programming.
> 
> I looked at ps and top src and do NOT consider them easy to
> understand.
> 
> I want to understand the organisation and structure of the
> returned data and how to use it.
> 

<Prev in Thread] Current Thread [Next in Thread>