blob: 528dd1d56a52b6240210db540fe21a7d7ec4bf05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
define vmmap
if $argc > 0
set $proc = proc_lookup($arg0)
if $proc != NULL
printf "Process %i (%s):\n", $proc->p_pid, $proc->p_name
set $vmmap = $proc->p_vmmap
else
printf "No process with PID %i exists\n", $arg0
set $vmmap = NULL
end
else
printf "Current process %i (%s):\n", curproc->p_pid, curproc->p_name
set $vmmap = curproc->p_vmmap
end
if $vmmap != NULL
kinfo vmmap_mapping_info $vmmap
end
end
document pagetable
Without arguments displays current mappings. Takes an optional integer
argument to specify the PID of a process whose mappings should be
printed instead.
end
|