blob: 75d4be100da0c662dd91bca43d06306ce506ad0c (
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
|
/** @dir test4
This example probe tracks file opens, reads and writes.
It demonstrates maps, stats, and iterators.
This is a translation of on an old dtr probe. Original source is
\verbatim
global {
long @opens[string];
sum @reads[string], @writes[string];
}
probe sys_open:entry {
@opens[current->comm]++;
}
probe sys_read:entry {
@reads[current->comm] << count;
}
probe sys_write:entry {
@writes[current->comm] << count;
}
\endverbatim
*/
|