summaryrefslogtreecommitdiffstats
path: root/runtime/tests/test4_probe/README
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/tests/test4_probe/README')
-rw-r--r--runtime/tests/test4_probe/README23
1 files changed, 23 insertions, 0 deletions
diff --git a/runtime/tests/test4_probe/README b/runtime/tests/test4_probe/README
new file mode 100644
index 00000000..a503c28e
--- /dev/null
+++ b/runtime/tests/test4_probe/README
@@ -0,0 +1,23 @@
+Sample probe.
+
+To build, edit the path in buildit and the addresses in struct dtr_probes
+in dtr.c Then "source buildit"
+
+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;
+}