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 2023 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
36link path=usr/bin/$(ARCH64)/cputrack target=../../bin/cputrack
37file path=usr/bin/cputrack mode=0555
38dir  path=usr/include
39file path=usr/include/libcpc.h
40file path=usr/include/libpctx.h
41dir  path=usr/include/sys
42dir  path=usr/kernel group=sys
43dir  path=usr/kernel/pcbe group=sys
44dir  path=usr/kernel/pcbe/$(ARCH64) group=sys
45$(i386_ONLY)file path=usr/kernel/pcbe/$(ARCH64)/pcbe.AuthenticAMD group=sys \
46    mode=0755
47$(i386_ONLY)file path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.15 group=sys \
48    mode=0755
49$(i386_ONLY)file path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.6.15 \
50    group=sys mode=0755
51$(i386_ONLY)link path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.6.23 \
52    target=pcbe.GenuineIntel.6.15
53$(i386_ONLY)link path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.6.26 \
54    target=pcbe.GenuineIntel.6.15
55$(i386_ONLY)link path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.6.28 \
56    target=pcbe.GenuineIntel.6.15
57$(i386_ONLY)link path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.6.29 \
58    target=pcbe.GenuineIntel.6.15
59$(i386_ONLY)link path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.6.30 \
60    target=pcbe.GenuineIntel.6.15
61$(i386_ONLY)link path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.6.31 \
62    target=pcbe.GenuineIntel.6.15
63$(i386_ONLY)link path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.6.37 \
64    target=pcbe.GenuineIntel.6.15
65$(i386_ONLY)link path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.6.44 \
66    target=pcbe.GenuineIntel.6.15
67$(i386_ONLY)link path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.6.46 \
68    target=pcbe.GenuineIntel.6.15
69$(i386_ONLY)link path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.6.47 \
70    target=pcbe.GenuineIntel.6.15
71$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.122 \
72    target=pcbe.GenuineIntel.6.15
73$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.126 \
74    target=pcbe.GenuineIntel.6.15
75$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.134 \
76    target=pcbe.GenuineIntel.6.15
77$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.140 \
78    target=pcbe.GenuineIntel.6.15
79$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.141 \
80    target=pcbe.GenuineIntel.6.15
81$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.142 \
82    target=pcbe.GenuineIntel.6.15
83$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.158 \
84    target=pcbe.GenuineIntel.6.15
85$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.165 \
86    target=pcbe.GenuineIntel.6.15
87$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.166 \
88    target=pcbe.GenuineIntel.6.15
89$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.38 \
90    target=pcbe.GenuineIntel.6.15
91$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.39 \
92    target=pcbe.GenuineIntel.6.15
93$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.42 \
94    target=pcbe.GenuineIntel.6.15
95$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.45 \
96    target=pcbe.GenuineIntel.6.15
97$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.53 \
98    target=pcbe.GenuineIntel.6.15
99$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.54 \
100    target=pcbe.GenuineIntel.6.15
101$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.55 \
102    target=pcbe.GenuineIntel.6.15
103$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.58 \
104    target=pcbe.GenuineIntel.6.15
105$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.60 \
106    target=pcbe.GenuineIntel.6.15
107$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.61 \
108    target=pcbe.GenuineIntel.6.15
109$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.62 \
110    target=pcbe.GenuineIntel.6.15
111$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.63 \
112    target=pcbe.GenuineIntel.6.15
113$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.69 \
114    target=pcbe.GenuineIntel.6.15
115$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.70 \
116    target=pcbe.GenuineIntel.6.15
117$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.71 \
118    target=pcbe.GenuineIntel.6.15
119$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.76 \
120    target=pcbe.GenuineIntel.6.15
121$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.77 \
122    target=pcbe.GenuineIntel.6.15
123$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.78 \
124    target=pcbe.GenuineIntel.6.15
125$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.79 \
126    target=pcbe.GenuineIntel.6.15
127$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.85 \
128    target=pcbe.GenuineIntel.6.15
129$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.86 \
130    target=pcbe.GenuineIntel.6.15
131$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.92 \
132    target=pcbe.GenuineIntel.6.15
133$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.94 \
134    target=pcbe.GenuineIntel.6.15
135$(i386_ONLY)link path=usr/kernel/pcbe/amd64/pcbe.GenuineIntel.6.95 \
136    target=pcbe.GenuineIntel.6.15
137dir  path=usr/lib
138dir  path=usr/lib/$(ARCH64)
139link path=usr/lib/$(ARCH64)/libcpc.so target=./libcpc.so.1
140file path=usr/lib/$(ARCH64)/libcpc.so.1
141link path=usr/lib/$(ARCH64)/libpctx.so target=./libpctx.so.1
142file path=usr/lib/$(ARCH64)/libpctx.so.1
143link path=usr/lib/libcpc.so target=./libcpc.so.1
144file path=usr/lib/libcpc.so.1
145link path=usr/lib/libpctx.so target=./libpctx.so.1
146file path=usr/lib/libpctx.so.1
147dir  path=usr/sbin
148file path=usr/sbin/cpustat mode=0555
149dir  path=usr/share/man/man1
150file path=usr/share/man/man1/cputrack.1
151dir  path=usr/share/man/man3cpc
152$(i386_ONLY)file path=usr/share/man/man3cpc/amd_f17h_zen1_events.3cpc
153$(i386_ONLY)file path=usr/share/man/man3cpc/amd_f17h_zen2_events.3cpc
154$(i386_ONLY)file path=usr/share/man/man3cpc/amd_f19h_zen3_events.3cpc
155$(i386_ONLY)file path=usr/share/man/man3cpc/amd_f19h_zen4_events.3cpc
156$(i386_ONLY)file path=usr/share/man/man3cpc/bdw_de_events.3cpc
157$(i386_ONLY)file path=usr/share/man/man3cpc/bdw_events.3cpc
158$(i386_ONLY)file path=usr/share/man/man3cpc/bdx_events.3cpc
159$(i386_ONLY)file path=usr/share/man/man3cpc/bnl_events.3cpc
160$(i386_ONLY)file path=usr/share/man/man3cpc/clx_events.3cpc
161file path=usr/share/man/man3cpc/cpc.3cpc
162file path=usr/share/man/man3cpc/cpc_access.3cpc
163link path=usr/share/man/man3cpc/cpc_bind_cpu.3cpc target=cpc_bind_curlwp.3cpc
164file path=usr/share/man/man3cpc/cpc_bind_curlwp.3cpc
165file path=usr/share/man/man3cpc/cpc_bind_event.3cpc
166link path=usr/share/man/man3cpc/cpc_bind_pctx.3cpc target=cpc_bind_curlwp.3cpc
167link path=usr/share/man/man3cpc/cpc_buf_add.3cpc target=cpc_buf_create.3cpc
168link path=usr/share/man/man3cpc/cpc_buf_copy.3cpc target=cpc_buf_create.3cpc
169file path=usr/share/man/man3cpc/cpc_buf_create.3cpc
170link path=usr/share/man/man3cpc/cpc_buf_destroy.3cpc target=cpc_buf_create.3cpc
171link path=usr/share/man/man3cpc/cpc_buf_get.3cpc target=cpc_buf_create.3cpc
172link path=usr/share/man/man3cpc/cpc_buf_hrtime.3cpc target=cpc_buf_create.3cpc
173link path=usr/share/man/man3cpc/cpc_buf_set.3cpc target=cpc_buf_create.3cpc
174link path=usr/share/man/man3cpc/cpc_buf_sub.3cpc target=cpc_buf_create.3cpc
175link path=usr/share/man/man3cpc/cpc_buf_tick.3cpc target=cpc_buf_create.3cpc
176link path=usr/share/man/man3cpc/cpc_buf_zero.3cpc target=cpc_buf_create.3cpc
177link path=usr/share/man/man3cpc/cpc_caps.3cpc target=cpc_npic.3cpc
178link path=usr/share/man/man3cpc/cpc_cciname.3cpc target=cpc_npic.3cpc
179link path=usr/share/man/man3cpc/cpc_close.3cpc target=cpc_open.3cpc
180link path=usr/share/man/man3cpc/cpc_count_sys_events.3cpc \
181    target=cpc_count_usr_events.3cpc
182file path=usr/share/man/man3cpc/cpc_count_usr_events.3cpc
183link path=usr/share/man/man3cpc/cpc_cpuref.3cpc target=cpc_npic.3cpc
184link path=usr/share/man/man3cpc/cpc_disable.3cpc target=cpc_enable.3cpc
185file path=usr/share/man/man3cpc/cpc_enable.3cpc
186file path=usr/share/man/man3cpc/cpc_event.3cpc
187link path=usr/share/man/man3cpc/cpc_event_accum.3cpc target=cpc_event_diff.3cpc
188file path=usr/share/man/man3cpc/cpc_event_diff.3cpc
189link path=usr/share/man/man3cpc/cpc_eventtostr.3cpc target=cpc_strtoevent.3cpc
190link path=usr/share/man/man3cpc/cpc_getcciname.3cpc target=cpc_getcpuver.3cpc
191link path=usr/share/man/man3cpc/cpc_getcpuref.3cpc target=cpc_getcpuver.3cpc
192file path=usr/share/man/man3cpc/cpc_getcpuver.3cpc
193link path=usr/share/man/man3cpc/cpc_getnpic.3cpc target=cpc_getcpuver.3cpc
194link path=usr/share/man/man3cpc/cpc_getusage.3cpc target=cpc_getcpuver.3cpc
195file path=usr/share/man/man3cpc/cpc_npic.3cpc
196file path=usr/share/man/man3cpc/cpc_open.3cpc
197file path=usr/share/man/man3cpc/cpc_pctx_bind_event.3cpc
198link path=usr/share/man/man3cpc/cpc_pctx_invalidate.3cpc \
199    target=cpc_pctx_bind_event.3cpc
200link path=usr/share/man/man3cpc/cpc_pctx_rele.3cpc \
201    target=cpc_pctx_bind_event.3cpc
202link path=usr/share/man/man3cpc/cpc_pctx_take_sample.3cpc \
203    target=cpc_pctx_bind_event.3cpc
204link path=usr/share/man/man3cpc/cpc_rele.3cpc target=cpc_bind_event.3cpc
205link path=usr/share/man/man3cpc/cpc_request_preset.3cpc \
206    target=cpc_bind_curlwp.3cpc
207link path=usr/share/man/man3cpc/cpc_set_add_request.3cpc \
208    target=cpc_set_create.3cpc
209file path=usr/share/man/man3cpc/cpc_set_create.3cpc
210link path=usr/share/man/man3cpc/cpc_set_destroy.3cpc target=cpc_set_create.3cpc
211link path=usr/share/man/man3cpc/cpc_set_restart.3cpc target=cpc_bind_curlwp.3cpc
212link path=usr/share/man/man3cpc/cpc_set_sample.3cpc target=cpc_buf_create.3cpc
213file path=usr/share/man/man3cpc/cpc_seterrfn.3cpc
214file path=usr/share/man/man3cpc/cpc_seterrhndlr.3cpc
215link path=usr/share/man/man3cpc/cpc_shared_bind_event.3cpc \
216    target=cpc_shared_open.3cpc
217link path=usr/share/man/man3cpc/cpc_shared_close.3cpc \
218    target=cpc_shared_open.3cpc
219file path=usr/share/man/man3cpc/cpc_shared_open.3cpc
220link path=usr/share/man/man3cpc/cpc_shared_rele.3cpc target=cpc_shared_open.3cpc
221link path=usr/share/man/man3cpc/cpc_shared_take_sample.3cpc \
222    target=cpc_shared_open.3cpc
223file path=usr/share/man/man3cpc/cpc_strtoevent.3cpc
224link path=usr/share/man/man3cpc/cpc_take_sample.3cpc target=cpc_bind_event.3cpc
225link path=usr/share/man/man3cpc/cpc_unbind.3cpc target=cpc_bind_curlwp.3cpc
226file path=usr/share/man/man3cpc/cpc_version.3cpc
227link path=usr/share/man/man3cpc/cpc_walk_attrs.3cpc target=cpc_npic.3cpc
228link path=usr/share/man/man3cpc/cpc_walk_events_all.3cpc target=cpc_npic.3cpc
229link path=usr/share/man/man3cpc/cpc_walk_events_pic.3cpc target=cpc_npic.3cpc
230link path=usr/share/man/man3cpc/cpc_walk_generic_events_all.3cpc \
231    target=cpc_npic.3cpc
232link path=usr/share/man/man3cpc/cpc_walk_generic_events_pic.3cpc \
233    target=cpc_npic.3cpc
234link path=usr/share/man/man3cpc/cpc_walk_names.3cpc target=cpc_getcpuver.3cpc
235link path=usr/share/man/man3cpc/cpc_walk_requests.3cpc \
236    target=cpc_set_create.3cpc
237file path=usr/share/man/man3cpc/generic_events.3cpc
238$(i386_ONLY)file path=usr/share/man/man3cpc/glm_events.3cpc
239$(i386_ONLY)file path=usr/share/man/man3cpc/glp_events.3cpc
240$(i386_ONLY)file path=usr/share/man/man3cpc/hsw_events.3cpc
241$(i386_ONLY)file path=usr/share/man/man3cpc/hsx_events.3cpc
242$(i386_ONLY)file path=usr/share/man/man3cpc/icl_events.3cpc
243$(i386_ONLY)file path=usr/share/man/man3cpc/ivb_events.3cpc
244$(i386_ONLY)file path=usr/share/man/man3cpc/ivt_events.3cpc
245$(i386_ONLY)file path=usr/share/man/man3cpc/jkt_events.3cpc
246$(i386_ONLY)file path=usr/share/man/man3cpc/nhm_ep_events.3cpc
247$(i386_ONLY)file path=usr/share/man/man3cpc/nhm_ex_events.3cpc
248file path=usr/share/man/man3cpc/pctx_capture.3cpc
249link path=usr/share/man/man3cpc/pctx_create.3cpc target=pctx_capture.3cpc
250link path=usr/share/man/man3cpc/pctx_release.3cpc target=pctx_capture.3cpc
251link path=usr/share/man/man3cpc/pctx_run.3cpc target=pctx_capture.3cpc
252file path=usr/share/man/man3cpc/pctx_set_events.3cpc
253$(i386_ONLY)file path=usr/share/man/man3cpc/skl_events.3cpc
254$(i386_ONLY)file path=usr/share/man/man3cpc/skx_events.3cpc
255$(i386_ONLY)file path=usr/share/man/man3cpc/slm_events.3cpc
256$(i386_ONLY)file path=usr/share/man/man3cpc/snb_events.3cpc
257$(i386_ONLY)file path=usr/share/man/man3cpc/snr_events.3cpc
258$(i386_ONLY)file path=usr/share/man/man3cpc/tgl_events.3cpc
259$(i386_ONLY)file path=usr/share/man/man3cpc/wsm_ep_dp_events.3cpc
260$(i386_ONLY)file path=usr/share/man/man3cpc/wsm_ep_sp_events.3cpc
261$(i386_ONLY)file path=usr/share/man/man3cpc/wsm_ex_events.3cpc
262dir  path=usr/share/man/man3lib
263file path=usr/share/man/man3lib/libcpc.3lib
264file path=usr/share/man/man3lib/libpctx.3lib
265dir  path=usr/share/man/man8
266file path=usr/share/man/man8/cpustat.8
267legacy pkg=SUNWcpcu desc="CPU Performance Counter libraries and utilities" \
268    name="CPU Performance Counter libraries and utilities"
269license cr_Sun license=cr_Sun
270license lic_CDDL license=lic_CDDL
271$(i386_ONLY)license usr/src/data/perfmon/THIRDPARTYLICENSE \
272    license=usr/src/data/perfmon/THIRDPARTYLICENSE
273$(i386_ONLY)license usr/src/uts/intel/pcbe/THIRDPARTYLICENSE \
274    license=usr/src/uts/intel/pcbe/THIRDPARTYLICENSE
275