HP Caliper User's Guide

possible is to kernel modules. Therefore, this
qualifier makes sense only if the privilege
level is kernel or all.
When the scope is system, the command-line
arguments program and program_args should
not be provided.
pset
pset_id[:pset_id:...]
The subject of measurement is user and kernel
activity on all CPUs belonging to the specified
processor sets (psets). (You can change the
privilege level using the --event-defaults
option). For example, --scope pset 0:1
measures all CPUs belonging to psets 0 and 1.
You can use the psrset -i command to find
the processor assignment for all processor sets
in the system.
For details on how to use --scope system, see Using --scope system for System-Wide
Measurements.”
Using --scope system for System-Wide Measurements
When the scope is system, you can specify whether you want the samples to be
attributed to the processes they belong to, or to the processes and the modules of those
processes, or not attributed. Using --scope system is a good first measurement
method, allowing you to drill down and measure individual applications.
With --scope system, the reports for processes and modules look similar to
per-process HP Caliper collection runs. A report is produced for each process or module
that HP Caliper recognizes as a process or module. In addition, a report for the system
as a whole is produced, which contains samples that HP Caliper could not attribute to
any individual process.
When --scope system is used, for most measurements, HP Caliper measures all
user and kernel activity: either all user and kernel activity or individual processes or
the modules of those processes.
When --scope system is used, HP Caliper continues collecting data until you stop
it with Ctrl-C. You can also specify the number of seconds to collect data with the -e
option.
For example, to create a Flat Profile (fprof) report for all activity on the system for 20
seconds:
$ caliper fprof -o fprof.txt --event-defaults PLM-kernel --scope system -e 20
HP Caliper also provides two options (used only with the --scope system option)
that help you limit the information it collects. For more information, see
“--exclude-caliper ” (p. 81) and “--exclude-idle ” (p. 81).
94 HP Caliper Options