Hi,
I am trying to probe a user space binary:
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.
How can I print parameters passed to function, I am able to do this in kernel space.
However I get the following error:
semantic error: unresolved target-symbol _expression_: identifier '$cp' at utrace.stp:7:33
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
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies