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: problems displaying offsets...


On 05/18/2010 08:20 AM, Steve Dickson wrote:
> In need of a second pair of eyes... 
> 
> probe kernel.function("kernel_sendpage")
> {
>     size = ulong_arg(4)
>     printf("kernel_sendpage: offset %d size %d\n", $offset, size);
> }
> 
> From some reason the offset displayed is always zero in the
> above probe and I know for fact its not always zero... 
> 
> I'm have the same problem in I/O probes in the nfsd.proc.commit 
> probe... Does anybody see what I'm doing wrong?

Hmm.  I don't really see anything too odd here.  Why are you using 'size
= ulong_arg(4)' instead of just $size?

-- 
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]