May 11, 2017
1:08 p.m.
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