forked from dtrace4linux/linux
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathz5
executable file
·37 lines (33 loc) · 1010 Bytes
/
z5
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
sync
root build/dtrace -n '
BEGIN {
cnt = 0;
tstart = timestamp;
}
syscall::: {
this->pid = pid;
this->ppid = ppid;
this->execname = execname;
this->arg0 = stringof(0x000f);
this->arg0 = stringof(0x00f0);
this->arg0 = stringof(0x0f00);
this->arg0 = stringof(0xf000);
this->arg0 = stringof(0x000f0000);
this->arg0 = stringof(0x00f00000);
this->arg0 = stringof(0x0f000000);
this->arg0 = stringof(0xf0000000);
this->arg0 = stringof(0x000f00000000);
this->arg0 = stringof(0x00f000000000);
this->arg0 = stringof(0x0f0000000000);
this->arg0 = stringof(0xf00000000000);
this->arg0 = stringof(0x000f000000000000);
this->arg0 = stringof(0x00f0000000000000);
this->arg0 = stringof(0x0f00000000000000);
this->arg0 = stringof(0xf000000000000000);
cnt++;
}
/* syscall::: /timestamp - tstart > 15 * 1000 * 1000 * 1000 / {exit(0);}
tick-1ms /timestamp - tstart > 15 * 1000 * 1000 * 1000 / {exit(0);}*/
tick-1s { printf("count so far: %d", cnt); }
tick-5s { exit(0); }
'