summaryrefslogtreecommitdiff
path: root/src/uio-region-rw.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/uio-region-rw.c')
-rw-r--r--src/uio-region-rw.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/uio-region-rw.c b/src/uio-region-rw.c
new file mode 100644
index 0000000..96cac49
--- /dev/null
+++ b/src/uio-region-rw.c
@@ -0,0 +1,13 @@
+#include "cli/proc-region-rw.h"
+#include "io/io.h"
+
+// This region-rw uses uio
+// It needs recent kernel, but may be racy as it reads / writes while process is running.
+// Ideal for realtime memory tools.
+// It's recommended to `setcap cap_sys_ptrace=eip uio-region-rw` to run this tool without sudo
+
+int
+main(int argc, const char *argv[])
+{
+ return proc_region_rw(argc, argv, io_uio_init);
+}