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]

Dereferencing simple pointers


Hello Folks,
I am playing around with systemtap and am quite impressed. But there is one thing that confuses me. Is there any way that I can derefernce a single pointer from a function parameter inside a probe?

Example:

# Function from current Kernel (drivers/char/random.c:1049):
urandom_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos)
{
       return extract_entropy_user(&nonblocking_pool, buf, nbytes);
}

# My Probe Attempt without success:
probe kernel.function("urandom_read") {
        printf("%s\n", *($ppos));
}

I can't believe that this isn't possible...

Thanks in advance,
Daniel Kay


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