summaryrefslogtreecommitdiffstats
path: root/runtime/probes/test4/README
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/probes/test4/README')
-rw-r--r--runtime/probes/test4/README20
1 files changed, 20 insertions, 0 deletions
diff --git a/runtime/probes/test4/README b/runtime/probes/test4/README
new file mode 100644
index 00000000..20a1ad23
--- /dev/null
+++ b/runtime/probes/test4/README
@@ -0,0 +1,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;
+}