User Guide

Contents

cpu-mask

Specify CPU(s) for a collect or collect-with action.

Syntax

-cpu-mask
=
<cpu_mask1>
,
<cpu_mask3>
-
<cpu_mask5>
...
Arguments
CPU number or a range of numbers.
Default
ALL
The hardware event-based sampling collector collects data on all CPUs in the system.
Actions Modified
Description
This option specifies the CPU(s) for which data will be collected during hardware event-based sampling collection. Specify a list of comma-separated CPU IDs (with no spaces) and/or the range(s) of CPU IDs. A range is represented by a beginning and ending ID, separated by a dash.
This example collects samples on four CPUs (1, 3, 4, and 5) for a Linux
sample
application.
vtune
-collect hotspots -knob sampling-mode=hw -cpu-mask 1,3-5 -- /home/test/sample

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804