pmctl Command
Purpose
Starts, resets, or stops generating Performance Monitor events.
Syntax
pmctl [ { [ -E [ mode ] ] [ -f interval ] {[ -y command ]} } | [ -h ] | [ -r ] | [ -S ] ] [ -s ] [ { -a -y command [ -f interval ] }]
Description
The pmctl command starts, stops, or resets the generation of Performance Monitor events in the PMAPI subsystem to support manual offline mode with the tprof -E command. It also reports the current status of the PMAPI subsystem.
Flags
Item | Description |
---|---|
-a | Turns on large page analysis. |
-E [ mode ] | Enables event-based profiling. You can specify one of the following modes:
|
-f interval | Specifies the sampling interval to use.
|
-h | Prints man page information. |
-r | Releases and resets the PMAPI subsystem. |
-S | Stops generating Performance Monitor events. |
-s | Prints the current status of the PMAPI subsystem. |
-y command | Turns on the event-based profiling only for the specified command and its descendents. |
Security
Attention RBAC users and Trusted AIX® users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.
Examples
- To stop generating Performance Monitoring events, enter the following
command:
pmctl –S
- To reset generating Performance Monitoring events, enter the following
command:
pmctl –r
- To report the current status of the PMAPI subsystem, enter the
following command:
pmctl –s
- To start generating Performance Monitoring events, enter the following
command:
pmctl –E
- To start generating Performance Monitoring events only for the
specified workload command and its descendents, enter the following
command:
pmctl –E –y workload
- To support the tprof -E command in manual offline mode,
enter the following command:
trace -adf -o mydata.trc trcon pmctl –E sleep 10; trcstop gensyms > mydata.syms tprof –suker mydata
- To support the tprof -E command in manual offline mode
profiling for the specified workload command and its descendents,
enter the following command:
trace -adf -o mydata.trc trcon pmctl –E –y workload trcstop gensyms > mydata.syms tprof –suker mydata