summaryrefslogtreecommitdiffstats
path: root/runtime/probes/test4/README
blob: 20a1ad23beff9a689e7c1f80875d40c96a011138 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Sample probe.

This is a translation of on an old dtr probe:

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;
}