1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21
22#
23# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
24# Copyright 2012 Nexenta Systems, Inc. All rights reserved.
25# Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
26# Copyright 2021 Oxide Computer Company
27#
28
29set name=pkg.fmri value=pkg:/diagnostic/cpu-counters@$(PKGVERS)
30set name=pkg.summary value="CPU Performance Counter libraries and utilities"
31set name=pkg.description value="CPU Performance Counter libraries and utilities"
32set name=info.classification value=org.opensolaris.category.2008:System/Core
33set name=variant.arch value=$(ARCH)
34dir  path=usr group=sys
35dir  path=usr/bin
36$(i386_ONLY)dir path=usr/bin/$(ARCH32)
37$(i386_ONLY)file path=usr/bin/$(ARCH32)/cputrack mode=0555
38dir  path=usr/bin/$(ARCH64)
39file path=usr/bin/$(ARCH64)/cputrack mode=0555
40hardlink path=usr/bin/cputrack target=../lib/isaexec
41dir  path=usr/include
42file path=usr/include/libcpc.h
43file path=usr/include/libpctx.h
44dir  path=usr/include/sys
45dir  path=usr/kernel group=sys
46dir  path=usr/kernel/pcbe group=sys
47dir  path=usr/kernel/pcbe/$(ARCH64) group=sys
48$(sparc_ONLY)hardlink path=usr/kernel/pcbe/$(ARCH64)/pcbe.23 target=pcbe.62
49$(sparc_ONLY)file path=usr/kernel/pcbe/$(ARCH64)/pcbe.4.6 group=sys mode=0755
50$(sparc_ONLY)hardlink path=usr/kernel/pcbe/$(ARCH64)/pcbe.4.7 target=pcbe.4.6
51$(sparc_ONLY)file path=usr/kernel/pcbe/$(ARCH64)/pcbe.62 group=sys mode=0755
52$(i386_ONLY)file path=usr/kernel/pcbe/$(ARCH64)/pcbe.AuthenticAMD group=sys \
53    mode=0755
54$(i386_ONLY)file path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.15 group=sys \
55    mode=0755
56$(i386_ONLY)file path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.6.15 \
57    group=sys mode=0755
58$(i386_ONLY)link path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.6.23 \
59    target=pcbe.GenuineIntel.6.15
60$(i386_ONLY)link path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.6.26 \
61    target=pcbe.GenuineIntel.6.15
62$(i386_ONLY)link path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.6.28 \
63    target=pcbe.GenuineIntel.6.15
64$(i386_ONLY)link path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.6.29 \
65    target=pcbe.GenuineIntel.6.15
66$(i386_ONLY)link path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.6.30 \
67    target=pcbe.GenuineIntel.6.15
68$(i386_ONLY)link path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.6.31 \
69    target=pcbe.GenuineIntel.6.15
70$(i386_ONLY)link path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.6.37 \
71    target=pcbe.GenuineIntel.6.15
72$(i386_ONLY)link path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.6.44 \
73    target=pcbe.GenuineIntel.6.15
74$(i386_ONLY)link path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.6.46 \
75    target=pcbe.GenuineIntel.6.15
76$(i386_ONLY)link path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.6.47 \
77    target=pcbe.GenuineIntel.6.15
78$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.122 \
79    target=pcbe.GenuineIntel.6.15
80$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.126 \
81    target=pcbe.GenuineIntel.6.15
82$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.134 \
83    target=pcbe.GenuineIntel.6.15
84$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.140 \
85    target=pcbe.GenuineIntel.6.15
86$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.141 \
87    target=pcbe.GenuineIntel.6.15
88$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.142 \
89    target=pcbe.GenuineIntel.6.15
90$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.158 \
91    target=pcbe.GenuineIntel.6.15
92$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.165 \
93    target=pcbe.GenuineIntel.6.15
94$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.166 \
95    target=pcbe.GenuineIntel.6.15
96$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.38 \
97    target=pcbe.GenuineIntel.6.15
98$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.39 \
99    target=pcbe.GenuineIntel.6.15
100$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.42 \
101    target=pcbe.GenuineIntel.6.15
102$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.45 \
103    target=pcbe.GenuineIntel.6.15
104$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.53 \
105    target=pcbe.GenuineIntel.6.15
106$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.54 \
107    target=pcbe.GenuineIntel.6.15
108$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.55 \
109    target=pcbe.GenuineIntel.6.15
110$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.58 \
111    target=pcbe.GenuineIntel.6.15
112$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.60 \
113    target=pcbe.GenuineIntel.6.15
114$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.61 \
115    target=pcbe.GenuineIntel.6.15
116$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.62 \
117    target=pcbe.GenuineIntel.6.15
118$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.63 \
119    target=pcbe.GenuineIntel.6.15
120$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.69 \
121    target=pcbe.GenuineIntel.6.15
122$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.70 \
123    target=pcbe.GenuineIntel.6.15
124$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.71 \
125    target=pcbe.GenuineIntel.6.15
126$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.76 \
127    target=pcbe.GenuineIntel.6.15
128$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.77 \
129    target=pcbe.GenuineIntel.6.15
130$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.78 \
131    target=pcbe.GenuineIntel.6.15
132$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.79 \
133    target=pcbe.GenuineIntel.6.15
134$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.85 \
135    target=pcbe.GenuineIntel.6.15
136$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.86 \
137    target=pcbe.GenuineIntel.6.15
138$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.92 \
139    target=pcbe.GenuineIntel.6.15
140$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.94 \
141    target=pcbe.GenuineIntel.6.15
142$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.95 \
143    target=pcbe.GenuineIntel.6.15
144dir  path=usr/lib
145dir  path=usr/lib/$(ARCH64)
146link path=usr/lib/$(ARCH64)/libcpc.so target=./libcpc.so.1
147file path=usr/lib/$(ARCH64)/libcpc.so.1
148link path=usr/lib/$(ARCH64)/libpctx.so target=./libpctx.so.1
149file path=usr/lib/$(ARCH64)/libpctx.so.1
150link path=usr/lib/libcpc.so target=./libcpc.so.1
151file path=usr/lib/libcpc.so.1
152link path=usr/lib/libpctx.so target=./libpctx.so.1
153file path=usr/lib/libpctx.so.1
154dir  path=usr/sbin
155file path=usr/sbin/cpustat mode=0555
156dir  path=usr/share/man/man1
157file path=usr/share/man/man1/cputrack.1
158dir  path=usr/share/man/man1m
159file path=usr/share/man/man1m/cpustat.1m
160dir  path=usr/share/man/man3cpc
161$(i386_ONLY)file path=usr/share/man/man3cpc/amd_f17h_zen1_events.3cpc
162$(i386_ONLY)file path=usr/share/man/man3cpc/amd_f17h_zen2_events.3cpc
163$(i386_ONLY)file path=usr/share/man/man3cpc/amd_f19h_zen3_events.3cpc
164$(i386_ONLY)file path=usr/share/man/man3cpc/bdw_de_events.3cpc
165$(i386_ONLY)file path=usr/share/man/man3cpc/bdw_events.3cpc
166$(i386_ONLY)file path=usr/share/man/man3cpc/bdx_events.3cpc
167$(i386_ONLY)file path=usr/share/man/man3cpc/bnl_events.3cpc
168$(i386_ONLY)file path=usr/share/man/man3cpc/clx_events.3cpc
169file path=usr/share/man/man3cpc/cpc.3cpc
170file path=usr/share/man/man3cpc/cpc_access.3cpc
171link path=usr/share/man/man3cpc/cpc_bind_cpu.3cpc target=cpc_bind_curlwp.3cpc
172file path=usr/share/man/man3cpc/cpc_bind_curlwp.3cpc
173file path=usr/share/man/man3cpc/cpc_bind_event.3cpc
174link path=usr/share/man/man3cpc/cpc_bind_pctx.3cpc target=cpc_bind_curlwp.3cpc
175link path=usr/share/man/man3cpc/cpc_buf_add.3cpc target=cpc_buf_create.3cpc
176link path=usr/share/man/man3cpc/cpc_buf_copy.3cpc target=cpc_buf_create.3cpc
177file path=usr/share/man/man3cpc/cpc_buf_create.3cpc
178link path=usr/share/man/man3cpc/cpc_buf_destroy.3cpc target=cpc_buf_create.3cpc
179link path=usr/share/man/man3cpc/cpc_buf_get.3cpc target=cpc_buf_create.3cpc
180link path=usr/share/man/man3cpc/cpc_buf_hrtime.3cpc target=cpc_buf_create.3cpc
181link path=usr/share/man/man3cpc/cpc_buf_set.3cpc target=cpc_buf_create.3cpc
182link path=usr/share/man/man3cpc/cpc_buf_sub.3cpc target=cpc_buf_create.3cpc
183link path=usr/share/man/man3cpc/cpc_buf_tick.3cpc target=cpc_buf_create.3cpc
184link path=usr/share/man/man3cpc/cpc_buf_zero.3cpc target=cpc_buf_create.3cpc
185link path=usr/share/man/man3cpc/cpc_caps.3cpc target=cpc_npic.3cpc
186link path=usr/share/man/man3cpc/cpc_cciname.3cpc target=cpc_npic.3cpc
187link path=usr/share/man/man3cpc/cpc_close.3cpc target=cpc_open.3cpc
188link path=usr/share/man/man3cpc/cpc_count_sys_events.3cpc \
189    target=cpc_count_usr_events.3cpc
190file path=usr/share/man/man3cpc/cpc_count_usr_events.3cpc
191link path=usr/share/man/man3cpc/cpc_cpuref.3cpc target=cpc_npic.3cpc
192link path=usr/share/man/man3cpc/cpc_disable.3cpc target=cpc_enable.3cpc
193file path=usr/share/man/man3cpc/cpc_enable.3cpc
194file path=usr/share/man/man3cpc/cpc_event.3cpc
195link path=usr/share/man/man3cpc/cpc_event_accum.3cpc target=cpc_event_diff.3cpc
196file path=usr/share/man/man3cpc/cpc_event_diff.3cpc
197link path=usr/share/man/man3cpc/cpc_eventtostr.3cpc target=cpc_strtoevent.3cpc
198link path=usr/share/man/man3cpc/cpc_getcciname.3cpc target=cpc_getcpuver.3cpc
199link path=usr/share/man/man3cpc/cpc_getcpuref.3cpc target=cpc_getcpuver.3cpc
200file path=usr/share/man/man3cpc/cpc_getcpuver.3cpc
201link path=usr/share/man/man3cpc/cpc_getnpic.3cpc target=cpc_getcpuver.3cpc
202link path=usr/share/man/man3cpc/cpc_getusage.3cpc target=cpc_getcpuver.3cpc
203file path=usr/share/man/man3cpc/cpc_npic.3cpc
204file path=usr/share/man/man3cpc/cpc_open.3cpc
205file path=usr/share/man/man3cpc/cpc_pctx_bind_event.3cpc
206link path=usr/share/man/man3cpc/cpc_pctx_invalidate.3cpc \
207    target=cpc_pctx_bind_event.3cpc
208link path=usr/share/man/man3cpc/cpc_pctx_rele.3cpc \
209    target=cpc_pctx_bind_event.3cpc
210link path=usr/share/man/man3cpc/cpc_pctx_take_sample.3cpc \
211    target=cpc_pctx_bind_event.3cpc
212link path=usr/share/man/man3cpc/cpc_rele.3cpc target=cpc_bind_event.3cpc
213link path=usr/share/man/man3cpc/cpc_request_preset.3cpc \
214    target=cpc_bind_curlwp.3cpc
215link path=usr/share/man/man3cpc/cpc_set_add_request.3cpc \
216    target=cpc_set_create.3cpc
217file path=usr/share/man/man3cpc/cpc_set_create.3cpc
218link path=usr/share/man/man3cpc/cpc_set_destroy.3cpc target=cpc_set_create.3cpc
219link path=usr/share/man/man3cpc/cpc_set_restart.3cpc target=cpc_bind_curlwp.3cpc
220link path=usr/share/man/man3cpc/cpc_set_sample.3cpc target=cpc_buf_create.3cpc
221file path=usr/share/man/man3cpc/cpc_seterrfn.3cpc
222file path=usr/share/man/man3cpc/cpc_seterrhndlr.3cpc
223link path=usr/share/man/man3cpc/cpc_shared_bind_event.3cpc \
224    target=cpc_shared_open.3cpc
225link path=usr/share/man/man3cpc/cpc_shared_close.3cpc \
226    target=cpc_shared_open.3cpc
227file path=usr/share/man/man3cpc/cpc_shared_open.3cpc
228link path=usr/share/man/man3cpc/cpc_shared_rele.3cpc target=cpc_shared_open.3cpc
229link path=usr/share/man/man3cpc/cpc_shared_take_sample.3cpc \
230    target=cpc_shared_open.3cpc
231file path=usr/share/man/man3cpc/cpc_strtoevent.3cpc
232link path=usr/share/man/man3cpc/cpc_take_sample.3cpc target=cpc_bind_event.3cpc
233link path=usr/share/man/man3cpc/cpc_unbind.3cpc target=cpc_bind_curlwp.3cpc
234file path=usr/share/man/man3cpc/cpc_version.3cpc
235link path=usr/share/man/man3cpc/cpc_walk_attrs.3cpc target=cpc_npic.3cpc
236link path=usr/share/man/man3cpc/cpc_walk_events_all.3cpc target=cpc_npic.3cpc
237link path=usr/share/man/man3cpc/cpc_walk_events_pic.3cpc target=cpc_npic.3cpc
238link path=usr/share/man/man3cpc/cpc_walk_generic_events_all.3cpc \
239    target=cpc_npic.3cpc
240link path=usr/share/man/man3cpc/cpc_walk_generic_events_pic.3cpc \
241    target=cpc_npic.3cpc
242link path=usr/share/man/man3cpc/cpc_walk_names.3cpc target=cpc_getcpuver.3cpc
243link path=usr/share/man/man3cpc/cpc_walk_requests.3cpc \
244    target=cpc_set_create.3cpc
245file path=usr/share/man/man3cpc/generic_events.3cpc
246$(i386_ONLY)file path=usr/share/man/man3cpc/glm_events.3cpc
247$(i386_ONLY)file path=usr/share/man/man3cpc/glp_events.3cpc
248$(i386_ONLY)file path=usr/share/man/man3cpc/hsw_events.3cpc
249$(i386_ONLY)file path=usr/share/man/man3cpc/hsx_events.3cpc
250$(i386_ONLY)file path=usr/share/man/man3cpc/icl_events.3cpc
251$(i386_ONLY)file path=usr/share/man/man3cpc/ivb_events.3cpc
252$(i386_ONLY)file path=usr/share/man/man3cpc/ivt_events.3cpc
253$(i386_ONLY)file path=usr/share/man/man3cpc/jkt_events.3cpc
254$(i386_ONLY)file path=usr/share/man/man3cpc/nhm_ep_events.3cpc
255$(i386_ONLY)file path=usr/share/man/man3cpc/nhm_ex_events.3cpc
256file path=usr/share/man/man3cpc/pctx_capture.3cpc
257link path=usr/share/man/man3cpc/pctx_create.3cpc target=pctx_capture.3cpc
258link path=usr/share/man/man3cpc/pctx_release.3cpc target=pctx_capture.3cpc
259link path=usr/share/man/man3cpc/pctx_run.3cpc target=pctx_capture.3cpc
260file path=usr/share/man/man3cpc/pctx_set_events.3cpc
261$(i386_ONLY)file path=usr/share/man/man3cpc/skl_events.3cpc
262$(i386_ONLY)file path=usr/share/man/man3cpc/skx_events.3cpc
263$(i386_ONLY)file path=usr/share/man/man3cpc/slm_events.3cpc
264$(i386_ONLY)file path=usr/share/man/man3cpc/snb_events.3cpc
265$(i386_ONLY)file path=usr/share/man/man3cpc/snr_events.3cpc
266$(i386_ONLY)file path=usr/share/man/man3cpc/tgl_events.3cpc
267$(i386_ONLY)file path=usr/share/man/man3cpc/wsm_ep_dp_events.3cpc
268$(i386_ONLY)file path=usr/share/man/man3cpc/wsm_ep_sp_events.3cpc
269$(i386_ONLY)file path=usr/share/man/man3cpc/wsm_ex_events.3cpc
270dir  path=usr/share/man/man3lib
271file path=usr/share/man/man3lib/libcpc.3lib
272file path=usr/share/man/man3lib/libpctx.3lib
273legacy pkg=SUNWcpcu desc="CPU Performance Counter libraries and utilities" \
274    name="CPU Performance Counter libraries and utilities"
275license cr_Sun license=cr_Sun
276license lic_CDDL license=lic_CDDL
277$(i386_ONLY)license usr/src/data/perfmon/THIRDPARTYLICENSE \
278    license=usr/src/data/perfmon/THIRDPARTYLICENSE
279$(i386_ONLY)license usr/src/uts/intel/pcbe/THIRDPARTYLICENSE \
280    license=usr/src/uts/intel/pcbe/THIRDPARTYLICENSE
281$(sparc_ONLY)license usr/src/uts/sun4u/pcbe/THIRDPARTYLICENSE \
282    license=usr/src/uts/sun4u/pcbe/THIRDPARTYLICENSE
283