User space system tap probing

Gadre Nayan gadrenayan at gmail.com
Thu May 11 09:08:59 EDT 2017


Hi,

I am trying to probe a user space binary:

probe process("/usr/sbin/bconfig").function("parse_line")
{
        print("PARSE_LINE\n")
        printf("Arguments: CP: %s]\n", $cp)
        print("-----------------------------\n")
}

Here cp is a char* argument passed to parse_line. Which I need to print.

However I get the following error:
semantic error: unresolved target-symbol expression: identifier '$cp' at
utrace.stp:7:33
        source:         printf("Arguments: CP: %s]\n", $cp)

How can I print parameters passed to function, I am able to do this in
kernel space.

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20170511/b4f2d3d6/attachment.html 


More information about the Kernelnewbies mailing list