This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: kernel read fault using task_state()


I've pulled the pid2task() function from the source on the web:
http://sources.redhat.com/git/gitweb.cgi?p=systemtap.git;a=blob;f=tapset/task.stp;h=8776a0147220cb5ffc087cb949479e2ac207af0a;hb=HEAD
just as you advised.

and simply included the function into my systemtap-file.
it requires guru mode to run, but now I can translate my pid to a task number!

thank you!

frits

On Wed, Aug 12, 2009 at 4:37 PM, David Smith<dsmith@redhat.com> wrote:
> (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)
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]