User space system tap probing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux