1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/// This describes how pages in the region can ba ccessed.
/// There are four different permissions, lets assume that
/// we have region with permissions == `r-xp` .
/// Our `RegionPermissions` will have `readable` and
/// `executable` fields set to **true**, so `writeable`
/// and `shared` will be false, obviously.
///
/// You can find more detailed permissions description
/// in `MemoryRegion.permissions` field documentation.
/// Each row in /proc/\[pid\]/maps describes a region of
/// contiguous virtual memory in a process or thread.
// Each row has the following fields:
// address perms offset dev inode pathname
// 08048000-08056000 r-xp 00000000 03:0c 64593 /usr/sbin/gpm