systemtap/tests/Regression/utrace-taskfinder-misses-events/pthreadtestcase.stp
Martin Cermak 8d5d041590 Include downstream/RHEL tests
Find new home for downstream RHEL tests.  Upstream them.  The set of
tests used for fedora gating stays intact:  The gating tests are only
those having the tier1 tag set in their main.fmf file.  The testplan
plans/ci.fmf filters the others out from gating.

The set of Fedora gating tests stays the same as it was before this
change.
2022-05-10 09:56:18 +02:00

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)
}