System information

98 System Analysis and Tuning Guide
pfmon -v --system-wide
...
selected CPUs (2 CPU in set, 2 CPUs online): CPU0 CPU1
2 Delimit your session. The following list describes options which are used in the ex-
amples below (refer to the man page for more details):
-e/--events
Profile only selected events. See Section7.3.1, “Getting Event
Information” (page96) for how to get a list.
--cpu-list
Specifies the list of processors to monitor. Without this options, all available
processors are monitored.
-t/--session-timeout
Specifies the duration of the monitor session expressed in seconds.
Use one of the three methods to start your profile session.
Use the default events:
pfmon --cpu-list=0-2 --system-wide -k -e
CPU_OP_CYCLES_ALL,IA64_INST_RETIRED
<press ENTER to stop session>
CPU0 7670609 CPU_OP_CYCLES_ALL
CPU0 4380453 IA64_INST_RETIRED
CPU1 7061159 CPU_OP_CYCLES_ALL
CPU1 4143020 IA64_INST_RETIRED
CPU2 7194110 CPU_OP_CYCLES_ALL
CPU2 4168239 IA64_INST_RETIRED
Use a timeout expressed in seconds:
pfmon --cpu-list=0-2 --system-wide --session-timeout=10 -k -e
CPU_OP_CYCLES_ALL,IA64_INST_RETIRED
<session to end in 10 seconds>
CPU0 69263547 CPU_OP_CYCLES_ALL
CPU0 38682141 IA64_INST_RETIRED
CPU1 87189093 CPU_OP_CYCLES_ALL
CPU1 54684852 IA64_INST_RETIRED
CPU2 64441287 CPU_OP_CYCLES_ALL
CPU2 37883915 IA64_INST_RETIRED
Execute a command. The session is automatically started when the program
starts and automatically stopped when the program is finished: