summaryrefslogtreecommitdiffstats
path: root/sunrpc/call_status.stp
blob: 56976cd8e51293ebdc6d8e3aad1c700b60d15171 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
 * stap -g -I../tapset call_status.stp
 */
probe module("sunrpc").function("call_connect_status")
{
	terror = task_status($task);
	if (terror)
		printf("call_connect_status:%s:%s: error %d (%s)\n", 
			cl_server($task), cl_prog($task), terror, errno_str(terror));
}
probe module("sunrpc").function("call_bind_status")
{
	terror = task_status($task);
	if (terror)
		printf("call_bind_status:%s:%s: error %d (%s)\n", 
			cl_server($task), cl_prog($task), terror, errno_str(terror));
}
probe module("sunrpc").function("call_connect_status")
{
	terror = task_status($task);
	if (terror)
		printf("call_connect_status:%s:%s: error %d (%s)\n", 
			cl_server($task), cl_prog($task), terror, errno_str(terror));
}
probe module("sunrpc").function("xs_tcp_finish_connecting").return
{
	if ($return)
		printf("xs_tcp_finish_connecting: error %d (%s)\n", 
			$return, errno_str($return));
}
probe begin { log("starting  call_status probe") }
probe end { log("ending call_status probe") }