1 .\" Copyright (c) 2003 Joseph Koshy. All rights reserved.
3 .\" Redistribution and use in source and binary forms, with or without
4 .\" modification, are permitted provided that the following conditions
6 .\" 1. Redistributions of source code must retain the above copyright
7 .\" notice, this list of conditions and the following disclaimer.
8 .\" 2. Redistributions in binary form must reproduce the above copyright
9 .\" notice, this list of conditions and the following disclaimer in the
10 .\" documentation and/or other materials provided with the distribution.
12 .\" This software is provided by Joseph Koshy ``as is'' and
13 .\" any express or implied warranties, including, but not limited to, the
14 .\" implied warranties of merchantability and fitness for a particular purpose
15 .\" are disclaimed. in no event shall Joseph Koshy be liable
16 .\" for any direct, indirect, incidental, special, exemplary, or consequential
17 .\" damages (including, but not limited to, procurement of substitute goods
18 .\" or services; loss of use, data, or profits; or business interruption)
19 .\" however caused and on any theory of liability, whether in contract, strict
20 .\" liability, or tort (including negligence or otherwise) arising in any way
21 .\" out of the use of this software, even if advised of the possibility of
31 .Nd "control hardware performance monitoring counters"
34 .Oo Fl c Ar cpu | Fl d Ar pmc | Fl e Ar pmc Oc ...
44 utility controls the operation of the system's hardware performance
49 utility processes options in command line order, so later options modify
50 the effect of earlier ones.
51 The following options are available:
52 .Bl -tag -width indent
54 Subsequent enable and disable options affect the CPU
59 is either a number denoting a CPU number in the system, or the string
61 denoting all CPUs in the system.
65 on the CPU specified by
67 preventing it from being used till subsequently re-enabled.
70 is either a number denoting a specified PMC, or the string
72 denoting all the PMCs on the specified CPU.
74 Only idle PMCs may be disabled.
75 .\" XXX this probably needs to be fixed.
79 on the CPU specified by
81 allowing it to be used in the future.
84 is either a number denoting a specified PMC, or the string
86 denoting all the PMCs on the specified CPU.
89 is already enabled, this option has no effect.
91 List available hardware performance counters and their current
94 List available hardware performance counter classes and their
95 supported event names.
97 Print driver statistics maintained by
101 To disable all PMCs on all CPUs, use the command:
104 To enable all PMCs on all CPUs, use:
107 To disable PMCs 0 and 1 on CPU 2, use:
108 .Dl "pmccontrol -c2 -d0 -d1"
110 To disable PMC 0 of CPU 0 only, and enable all other PMCS on all other
112 .Dl "pmccontrol -c* -e* -c0 -d0"
124 utility first appeared in
127 .An Joseph Koshy Aq jkoshy@FreeBSD.org