This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: kernel read fault using task_state()
- From: David Smith <dsmith at redhat dot com>
- To: Frits Hoogland <frits dot hoogland at gmail dot com>
- Cc: "systemtap at sourceware dot org" <systemtap at sourceware dot org>
- Date: Wed, 12 Aug 2009 09:37:46 -0500
- Subject: Re: kernel read fault using task_state()
- References: <fbb8fbcd0908120636h14acafa0s649993bb025fd5e@mail.gmail.com> <4A82CC19.1020700@redhat.com> <fbb8fbcd0908120723s6e468727w684f06df3802945c@mail.gmail.com>
(Note that I've cc'ed the systemtap list)
On 08/12/2009 09:23 AM, Frits Hoogland wrote:
> thank you for the answer!
>
> unfortunately, there's no function pid2task(), probably because of the
> version of systemtap (0.7.2). any idea how I can lookup the task when
> I use the pid?
You've got several choices:
- grab the pid2task() definition out of current systemtap source (you
can use gitweb:
<http://sources.redhat.com/git/gitweb.cgi?p=systemtap.git;a=summary>)
and stick it in your script
- grab the version of systemtap (0.9.7) going into rhel5.4 betas and
install it on your system
- check out the current version of systemtap and build/install it on
your system
--
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)