Go to main content

Oracle® Solaris 11.4 DTrace (Dynamic Tracing) Guide

Exit Print View

Updated: September 2020
 
 

Displaying DTrace Consumers

To extract DTrace data from a DTrace consumer, you must first determine the DTrace consumer of interest by running the ::dtrace_state MDB dcmd:

> ::dtrace_state
    ADDR MINOR     PROC NAME                 FILE
ccaba400     2        - <anonymous>             -
ccab9d80     3 d1d6d7e0 intrstat         cda37078
cbfb56c0     4 d71377f0 dtrace           ceb51bd0
ccabb100     5 d713b0c0 lockstat         ceb51b60
d7ac97c0     6 d713b7e8 dtrace           ceb51ab8

    This command displays a table of DTrace state structures. Each row of the table consists of the following information:

  • The address of the state structure

  • The minor number associated with the dtrace device

  • The address of the process structure that corresponds to the DTrace consumer

  • The name of the DTrace consumer (or <anonymous> for anonymous consumers)

  • The name of the file structure that corresponds to the open dtrace device

To obtain further information about a specific DTrace consumer, specify the address of its process structure to the ::ps dcmd:

> d71377f0::ps
S    PID   PPID   PGID    SID    UID      FLAGS     ADDR NAME
R 100647 100642 100647 100638      0 0x00004008 d71377f0 dtrace