-
Notifications
You must be signed in to change notification settings - Fork 1
/
ipi.d
executable file
·58 lines (47 loc) · 948 Bytes
/
ipi.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
#!/usr/sbin/dtrace -s
#pragma D option quiet
syscall::kill:entry
{
self->ksys = timestamp;
}
syscall::kill:return
{
self->ksys_done = timestamp;
@ksys = lquantize(self->ksys_done - self->ksys, 0, 20000, 100);
}
syscall::thr_kill:entry
{
self->ksys = timestamp;
}
syscall::thr_kill:return
{
self->ksys_done = timestamp;
@ksys = lquantize(self->ksys_done - self->ksys, 0, 20000, 100);
}
fbt:kernel:tdsendsignal:entry
{
self->tdss = timestamp;
}
fbt:kernel:tdsendsignal:return
{
self->tdss_done = timestamp;
@tdss = lquantize(self->tdss_done - self->tdss, 0, 10000, 100);
}
fbt:kernel:ipi_cpu:entry
{
self->ipi = timestamp;
}
fbt:kernel:ipi_cpu:return
{
self->ipi_done = timestamp;
@ipicpu = lquantize(self->ipi_done - self->ipi, 0, 10000, 100);
}
END
{
printf("kill\n");
printa(@ksys);
printf("tdsendsignal\n");
printa(@tdss);
printf("ipi_cpu\n");
printa(@ipicpu);
}