summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.base/target_set.stp
blob: 002ba8974be97cf0c30548c84195e36e5536c940 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
probe begin
{
	stp_pid = stp_pid()
	printf("%d\n%d begat %d\n", stp_pid, stp_pid, target())
}

probe syscall.nanosleep, syscall.compat_nanosleep ?
{
	if (target_set_pid(pid()) && $rqtp->tv_sec == $1)
		target_set_report()
}

probe end
{
	target_set_report()
}