[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 4

procmap Command

Purpose

Prints the address space map of processes.

Syntax

procmap [ -F ] [ ProcessID ] ...

Description

The /proc filesystem provides a mechanism to control processes. It also gives access to information about the current state of processes and threads, but in binary form. The proctools commands provide ascii reports based on some of the available information.

Most of the commands take a list of process IDs or /proc/ProcessID strings as input. The shell expansion /proc/* can therefore be used to specify all processes in the system.

Each of the proctools commands gathers information from /proc for the specified processes and displays it to the user. The proctools commands like procrun and procstop start and stop a process using the /proc interface.

The information gathered by the commands from /proc is a snapshot of the current state of processes, and therefore can vary at any instant except for stopped processes.

The procmap command prints the address space map of processes. It displays the starting address and size of each of the mapped segments in the process. It gets all the information necessary from the /proc/ProcessID/map files.

Flags

-F Forces procmap to take control of the target process even if another process has control.
ProcessID Specifies the process id.

Examples

  1. To display the address space of process 11928, enter:
    procmap 11928
    The output of this command might look like this:
    11928 : -sh                                                          
    10000000         235K  read/exec         sh
    20000ca0          31K  read/write        sh                          
    d0072000          11K  read/exec         /usr/lib/nls/loc/en_US      
    d0075130           8K  read/write        /usr/lib/nls/loc/en_US      
    d00710f8           2K  read/exec         /usr/lib/libcrypt.a         
    f00c5530           0K  read/write        /usr/lib/libcrypt.a         
    d01ba240        1895K  read/exec         /usr/lib/libc.a             
    f0042220         519K  read/write        /usr/lib/libc.a             
       Total        2705K

Files

/proc Contains the /proc filesystem.

Related Information

The proccred command, procfiles command, procflags command, procldd command, procrun command, procsig command, procstack command, procstop command, proctree command, procwait command, procwdx command.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]