aboutsummaryrefslogtreecommitdiff
path: root/ja_JP.eucJP/man/man4/man4.i386/perfmon.4
blob: 16d20578b07d3a1a01de9e47e24ee33724e0c231 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
.\"
.\" Copyright 1996 Massachusetts Institute of Technology
.\"
.\" Permission to use, copy, modify, and distribute this software and
.\" its documentation for any purpose and without fee is hereby
.\" granted, provided that both the above copyright notice and this
.\" permission notice appear in all copies, that both the above
.\" copyright notice and this permission notice appear in all
.\" supporting documentation, and that the name of M.I.T. not be used
.\" in advertising or publicity pertaining to distribution of the
.\" software without specific, written prior permission.  M.I.T. makes
.\" no representations about the suitability of this software for any
.\" purpose.  It is provided "as is" without express or implied
.\" warranty.
.\" 
.\" THIS SOFTWARE IS PROVIDED BY M.I.T. ``AS IS''.  M.I.T. DISCLAIMS
.\" ALL EXPRESS OR IMPLIED WARRANTIES WITH REGARD TO THIS SOFTWARE,
.\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT
.\" SHALL M.I.T. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
.\" LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
.\" USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
.\" ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
.\" OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\"	%Id: perfmon.4,v 1.6 1998/03/12 07:30:36 charnier Exp %
.\" $FreeBSD$
.Dd March 26, 1996
.Dt PERFMON 4 i386
.Os FreeBSD 2.2
.Sh ̾
.Nm perfmon
.Nd CPU ǽ˥󥰤򤹤륤󥿥ե
.Sh 
.Cd cpu \&"I586_CPU\&"
.Cd cpu \&"I686_CPU\&"
.Cd options PERFMON
.Sh 
.Nm perfmon
ɥ饤Фˤ
.Tn Intel

.Tn Pentium

.Tn "Pentium Pro"

CPU ǽ˥󥰵ǽ˥Ǥޤ
Υץåˤ¿̤ʥ٥ȤˤĤȯޤ
(CPU Ǥ) ³֤Τɤ餫¬ꤹ褦Ǥ
2 Ĥ󥿤ȡƱå
1 ĤΥ륫󥿤Ƥޤ
.Nm
ɥ饤ФǤϤεǽФƥǥХˤ륤󥿥ե
ޤ
.Pp
ǽ˥󥰤򤹤륫󥿤ؤƤΥ
ǥХüե
.Dq Pa /dev/perfmon
޲Ȥƽޤ
ΥǥХ󶡤
.Xr ioctl 2
ꥯȤ¿
.Aq Pa machine/perfmon.h
졢Υեˤ
.Tn Pentium

.Tn "Pentium Pro"
ץåξοʥ󥿤⤢ޤ
.Pp
.Sy ջ:
Ѳǽʥ٥Ȥνϥץå˰ۤʤޤ
Ѥ륤٥ȥɤ¬ꤵ CPU ηФ
ŬǤ뤳Ȥǧ뤳ȤϥץޤǤǤ
.Pp
ʲ
.Xr ioctl 2
ꥯȤƤޤ:
.Bl -tag -width PMIOTSTAMP
.It Dv PMIOSETUP
.Pq Li "struct pmc"
¤ΤƤѥ᡼ȥե饰ǥ󥿤ꤷޤ
ʲΥեɤ
.Li struct pmc
Ƥޤ:
.Bl -tag -width "u_char pmc_eventx"
.It Li "int pmc_num"
ꤹ륫ֹǤ
.Dv NPMC
(ߤ 2) 꾮ʤФʤޤ
.It Li "u_char pmc_event"
˥٤Υ٥ȥɤǡ
.Aq Pa machine/perfmon.h
Ƥޤ
.It Li "u_char pmc_unit"
٥Ȥηб֤ΥޥͤǤ (
.Tn Intel
ʸ򻲾)
.It Li "u_char pmc_flags"
󥿤Ưѹե饰 () Ǥ
.It Li "u_char pmc_mask"
󥿤ΥޥͤǤĤޤꡢ衢ͤϻꤵ줿Υå
ʾ (ϰʲ) δַ³륤٥Ȥ˥Ȥ¤٤˻Ѥ뤷
Ǥ
.El
.Pp
Τ褦
.Li pmc_flags
ͤƤޤ:
.Bl -tag -compact -width PMCF_USRxx
.It Dv PMCF_USR
٥Ȥ桼⡼ɤǥȤޤ
.It Dv PMCF_OS
٥Ȥ򥫡ͥ⡼ɤǥȤޤ
.It Dv PMCF_E
٥Ȥ³֤ǤϤʤοǥȤޤ
.It Dv PMCF_INV
󥿤ΥޥӤΰ̣žޤ
.El
.It Dv PMIOGET
.Pq Li "struct pmc"
ꤵ줿󥿤θߤ֤ޤ
.It Dv PMIOSTART
.It Dv PMIOSTOP
.Pq Li int
ꤷ󥿤ư () ޤϡɥη٤ˤꡢֹ
ưߤ򤷤ʤФʤޤ
(¨ 0 ɬޤ 1 ߤƤߤʤФʤޤ)
ɥ饤ФǤϤ
.Sy Ƥޤ
(ȸΤ⾭ CPU ǤϤϤʤʤ뤫Τޤ)
.It Dv PMIORESET
.Pq Li int
ꤵ줿󥿤 0 ˥ꥻåȤޤ󥿤ϥꥻåȤ
.Dv PMIOSTOP
ˤߤʤФʤޤƤΥ󥿤ϼưŪ
.Dv PMIOSETUP
ˤäƥꥻåȤޤ
.It Dv PMIOREAD
.Pq Li "struct pmc_data"
󥿤θߤͤФޤ
.Li pmc_data
¤ΤˤϼΤ褦 2 ĤΥեɤƤޤ:
.Pp
.Bl -tag -compact -width "quad_t pmcd_value"
.It Li "int pmcd_num"
ɤ߽Ф󥿤ֹ档
.It Li "int pmcd_value"
64 ӥåȤդǤνλ͡
.El
.Pp
衢
.Tn "Pentium Pro"
ץå
󥿤ľɤ߽Ф٤
.Li RDPMC
̿ѽͤˤʤǤ礦
.It Dv PMIOTSTAMP
.Pq Li "struct pmc_tstamp"
ॹץ󥿤ɤ߽Фޤ
.Li pmc_tstamp
¤ΤǤ 2 ĤΥեɤƤޤ:
.Pp
.Bl -tag -compact -width "quad_t pmct_value"
.It Li "int pmct_rate"
󥿤 MHz ǤΤ褽®٤Ǥ
.It Li "quad_t pmct_value"
64 ӥåǤΥ󥿤θߤͤǤ
.El
.Pp
.Li pmct_rate
եɤͿ륫󥿤®٤ϡ
ʻ䥯åοʹԤԴʰ٤ˡ
ˤΤǤϤʤȤդڤǤ
ΥեɤˤĤƤ
å®٤ºݤɽΤȤ
꤬꤫Ŭθ餤˹ͤ٤Ǥ
.El
.Sh Ϣե
.Bl -tag -compact -width "/usr/include/machine/perfmon.h"
.It Pa /dev/perfmon
󥿤ؤʸǥХΥ󥿥ե
.It Pa /usr/include/machine/perfmon.h
¤Τȥ٥ȥɤƤ륤󥯥롼ɥե
.It Pa /usr/share/examples/perfmon
Ƥ
.Fn ioctl
ޥɤλѤŪ㼨ץΥ
.El
.Sh Ϣ
.Xr ioctl 2
.Rs
.%A Intel Corporation
.%B Pentium Pro Family Developer's Manual
.%D January 1996
.%V vol. 3
.%O Operating System Writer's Manual
.Re
.\"
.Rs
.%A ƥ른ѥ
.%B Pentium Pro եߥ꡼ ǥ٥åѡ ޥ˥奢
.%D January 1996
.%V 
.%O ڥ졼ƥ ƥ 饤 ޥ˥奢
.Re
.\"
.Sh 
The
.Nm
ǥХ
.Fx 2.2
ǽƸޤ
.Sh 
.Nm
ɥ饤Ф
.An Garrett A. Wollman ,
MIT Laboratory for Computer Science
񤭤ޤ
.\"Translated by Tetsuro Furuya <ht5t-fry@asahi-net.or.jp>, Dec. 1999.
.\"ML Checked by Tetsuya Isaki (ů) <isaki@net.ipc.hiroshima-u.ac.jp>,
.\"              Satoru Koizumi (  )<koizumi@cms.phys.s.u-tokyo.ac.jp>
.\"Final Checked by