summaryrefslogtreecommitdiff
path: root/src/ptrace-region-rw.c
blob: 2e6d124c1864c3b62f8a692ed856ae67190d3325 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include "cli/cli.h"
#include "mem/io.h"

// This region-rw uses ptrace
// This works with older kernels, but it also ensures non racy read/writes, as it stops the process.

int
main(int argc, const char *argv[])
{
   return proc_region_rw(argc, argv, mem_io_ptrace_init);
}