<!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
<title>SPARC Architectural Model: User Commands
</title>
<body bgcolor=
"#FFFFFF" LANG=
"en-US">
<div STYLE=
"margin-bottom: 0cm"></div>
-cpu
<i>cpu-set
</i> - specifies the set of cpus used by a command
The -cpu
flag overrides the default set of cpus used by a command.
This set of cpus can be a single cpu or many cpus.
Each command documents whether it accepts one or multiple cpus.
The -cpu flag may appear multiple times on a command line. The last
(rightmost) instance of -cpu overrides all previous appearances.
The -cpu
flag accepts three formats as argument:
<th>Format
</th><th>Example
</i></th><th>Meaning
</i></th>
<td valign=
"top">all
</td><td>-cpu
all
</td>
<td>Specifies all enabled cpus.
</td>
<td valign=
"top"><i>cpu-num
</i></td><td valign=
"top">-cpu
2</td>
<td>Specifies a single cpu
<i>cpu-num
</i>.
</td>
<td valign=
"top"><i>cpu-range1
</i>,
<i>cpu-range2
</i>,...
</td><td>-cpu
7.
.15</td>
<td>Specifies one or more cpu ranges.
</td>
where
<i>cpu-range
</i> is one of:
<th>Format
</th><th>Example
</i></th><th>Meaning
</i></th>
<i>cpu-num
</i></td><td>-cpu
5</td>
<td>Specifies a single cpu
<i>cpu-num
</i>.
</td>
<td><i>cpu-num1
</i>..
<i>cpu-num2
</i></td>
<td>Specifies the cpus between
<i>cpu-num1
</i> and
<i>cpu-num2
</i> inclusive.
</td>
<td><i>cpu-num1
</i>..
<i>cpu-num2
</i>:
<i>stride
</i>
</td><td valign=
"top">-cpu
0.
.31:
2</td>
<td>Specifies the cpus between
<i>cpu-num1
</i> and
<i>cpu-num2
</i> inclusive,
skipping by
<i>stride
</i>.
</td>
The different formats for a cpu range may be freely combined by
separating with commas. For example, the cpu range
0.
.15:
2,
31.
.63,
0x7f specifies all the even numbered cpus from
0 to
14, all cpus from
31 to
63, and cpu
127. Overlapping ranges accumlate
without warning or error.