-
Notifications
You must be signed in to change notification settings - Fork 6
/
rest.d
executable file
·66 lines (58 loc) · 1.78 KB
/
rest.d
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/usr/sbin/dtrace -s
#pragma D option quiet
restify*:::route-start
{
printf("route-start at %lx nsecs:\n", timestamp);
printf(" args[0] = %s\n", copyinstr(arg0));
printf(" args[1] = %s\n", copyinstr(arg1));
printf(" args[2] = %d\n", arg2);
printf(" args[3] = %s\n", copyinstr(arg3));
printf(" args[4] = %s\n", copyinstr(arg4));
printf(" args[5] = %s\n", copyinstr(arg5));
}
restify*:::handler-start
{
printf("handler-start at %lx nsecs:\n", timestamp);
printf(" args[0] = %s\n", copyinstr(arg0));
printf(" args[1] = %s\n", copyinstr(arg1));
printf(" args[2] = %s\n", copyinstr(arg2));
printf(" args[3] = %d\n", arg3);
}
restify*:::handler-done
{
printf("handler-done at %lx nsecs:\n", timestamp);
printf(" args[0] = %s\n", copyinstr(arg0));
printf(" args[1] = %s\n", copyinstr(arg1));
printf(" args[2] = %s\n", copyinstr(arg2));
printf(" args[3] = %d\n", arg3);
}
restify*:::route-done
{
printf("route-done at %lx nsecs:\n", timestamp);
printf(" args[0] = %s\n", copyinstr(arg0));
printf(" args[1] = %s\n", copyinstr(arg1));
printf(" args[2] = %d\n", arg2);
printf(" args[3] = %d\n", arg3);
printf(" args[4] = %s\n", copyinstr(arg4));
}
restify*:::client-request
{
printf("client-request at %lx nsecs:\n", timestamp);
printf(" args[0] = %s\n", copyinstr(arg0));
printf(" args[1] = %s\n", copyinstr(arg1));
printf(" args[2] = %s\n", copyinstr(arg2));
printf(" args[3] = %d\n", arg3);
}
restify*:::client-response
{
printf("client-response at %lx nsecs:\n", timestamp);
printf(" args[0] = %d\n", arg0);
printf(" args[1] = %d\n", arg1);
printf(" args[2] = %s\n", copyinstr(arg2));
}
restify*:::client-error
{
printf("client-error at %lx nsecs:\n", timestamp);
printf(" args[0] = %s\n", copyinstr(arg0));
printf(" args[1] = %s\n", copyinstr(arg1));
}