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

// This address-rw uses uio
// It needs recent kernel, but may be racy as it reads / writes while process is running.
// Ideal for realtime memory tools, however uio can't write non-writable memory(!).
// 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_address_rw(argc, argv, mem_io_uio_init);
}