Debian Codegraph @

testsuite/systemtap.context/uprobe_uaddr_mark.stp

raw
1 probe process("uprobe_uaddr_mark").mark("uprobe_uaddr_mark") {
2 // Check that uaddr() is the same address as the pp() statement.
3 statement = sprintf(".statement(%#x)", uaddr())
4 if (isinstr(pp(), statement))
5 println("success")
6 else
7 printf("failure: %#x doesn't match %s\n", uaddr(), pp())
8 }