29 lines
591 B
Plaintext
29 lines
591 B
Plaintext
|
#! /usr/bin/env stap
|
||
|
|
||
|
probe timer.sec(180)
|
||
|
{
|
||
|
printf("EXITONTIMEOUT\n");
|
||
|
exit()
|
||
|
}
|
||
|
|
||
|
probe process("./pthreadtestcase").function("square")
|
||
|
{
|
||
|
printf("USERSPACEFUNCTIONENTER\n")
|
||
|
printf("=> %s(%s)\n", probefunc(), $$parms)
|
||
|
}
|
||
|
|
||
|
probe process("./pthreadtestcase").function("square").return
|
||
|
{
|
||
|
printf("USERSPACEFUNCTIONLEAVE\n")
|
||
|
printf("<= %s\n", probefunc())
|
||
|
exit()
|
||
|
}
|
||
|
|
||
|
probe process("./pthreadtestcase").statement("*@pthreadtestcase.cpp:7")
|
||
|
{
|
||
|
printf("USERSPACEREACHEDLINE\n")
|
||
|
#printf(" x=%d, sqr=%d\n\n", $x, $sqr)
|
||
|
printf(" x=%d\n\n", $x)
|
||
|
}
|
||
|
|