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 2014 Andrew Stormont.
  26 #
  27 
  28 set name=pkg.fmri value=pkg:/diagnostic/cpu-counters@$(PKGVERS)
  29 set name=pkg.description \
  30     value="CPU Performance Counter libraries and utilities"
  31 set name=pkg.summary value="CPU Performance Counter libraries and utilities"
  32 set name=info.classification value=org.opensolaris.category.2008:System/Core
  33 set name=variant.arch value=$(ARCH)
  34 dir path=usr group=sys
  35 dir path=usr/bin
  36 $(i386_ONLY)dir path=usr/bin/$(ARCH32)
  37 $(BUILD64)dir path=usr/bin/$(ARCH64)
  38 dir path=usr/include
  39 dir path=usr/include/sys
  40 dir path=usr/kernel group=sys
  41 dir path=usr/kernel/pcbe group=sys
  42 dir path=usr/kernel/pcbe/$(ARCH64) group=sys
  43 dir path=usr/lib
  44 $(BUILD64)dir path=usr/lib/$(ARCH64)
  45 dir path=usr/sbin
  46 dir path=usr/share/man/man1
  47 dir path=usr/share/man/man1m
  48 dir path=usr/share/man/man3cpc
  49 dir path=usr/share/man/man3lib
  50 $(i386_ONLY)file path=usr/bin/$(ARCH32)/cputrack mode=0555
  51 $(BUILD64)file path=usr/bin/$(ARCH64)/cputrack mode=0555
  52 file path=usr/include/libcpc.h
  53 file path=usr/include/libpctx.h
  54 $(sparc_ONLY)file path=usr/kernel/pcbe/$(ARCH64)/pcbe.4.6 group=sys mode=0755
  55 $(sparc_ONLY)file path=usr/kernel/pcbe/$(ARCH64)/pcbe.62 group=sys mode=0755
  56 $(i386_ONLY)file path=usr/kernel/pcbe/$(ARCH64)/pcbe.AuthenticAMD group=sys \
  57     mode=0755
  58 $(i386_ONLY)file path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.15 group=sys \
  59     mode=0755
  60 $(i386_ONLY)file path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.6 group=sys \
  61     mode=0755
  62 $(i386_ONLY)file path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.6.15 \
  63     group=sys mode=0755
  64 $(i386_ONLY)file path=usr/kernel/pcbe/pcbe.AuthenticAMD group=sys mode=0755
  65 $(i386_ONLY)file path=usr/kernel/pcbe/pcbe.GenuineIntel.15 group=sys mode=0755
  66 $(i386_ONLY)file path=usr/kernel/pcbe/pcbe.GenuineIntel.6 group=sys mode=0755
  67 $(i386_ONLY)file path=usr/kernel/pcbe/pcbe.GenuineIntel.6.15 group=sys \
  68     mode=0755
  69 $(BUILD64)file path=usr/lib/$(ARCH64)/libcpc.so.1
  70 $(BUILD64)file path=usr/lib/$(ARCH64)/libpctx.so.1
  71 $(BUILD64)file path=usr/lib/$(ARCH64)/llib-lcpc.ln
  72 $(BUILD64)file path=usr/lib/$(ARCH64)/llib-lpctx.ln
  73 file path=usr/lib/libcpc.so.1
  74 file path=usr/lib/libpctx.so.1
  75 file path=usr/lib/llib-lcpc
  76 file path=usr/lib/llib-lcpc.ln
  77 file path=usr/lib/llib-lpctx
  78 file path=usr/lib/llib-lpctx.ln
  79 file path=usr/sbin/cpustat mode=0555
  80 file path=usr/share/man/man1/cputrack.1
  81 file path=usr/share/man/man1m/cpustat.1m
  82 file path=usr/share/man/man3cpc/cpc.3cpc
  83 file path=usr/share/man/man3cpc/cpc_access.3cpc
  84 file path=usr/share/man/man3cpc/cpc_bind_curlwp.3cpc
  85 file path=usr/share/man/man3cpc/cpc_bind_event.3cpc
  86 file path=usr/share/man/man3cpc/cpc_buf_create.3cpc
  87 file path=usr/share/man/man3cpc/cpc_count_usr_events.3cpc
  88 file path=usr/share/man/man3cpc/cpc_enable.3cpc
  89 file path=usr/share/man/man3cpc/cpc_event.3cpc
  90 file path=usr/share/man/man3cpc/cpc_event_diff.3cpc
  91 file path=usr/share/man/man3cpc/cpc_getcpuver.3cpc
  92 file path=usr/share/man/man3cpc/cpc_npic.3cpc
  93 file path=usr/share/man/man3cpc/cpc_open.3cpc
  94 file path=usr/share/man/man3cpc/cpc_pctx_bind_event.3cpc
  95 file path=usr/share/man/man3cpc/cpc_set_create.3cpc
  96 file path=usr/share/man/man3cpc/cpc_seterrfn.3cpc
  97 file path=usr/share/man/man3cpc/cpc_seterrhndlr.3cpc
  98 file path=usr/share/man/man3cpc/cpc_shared_open.3cpc
  99 file path=usr/share/man/man3cpc/cpc_strtoevent.3cpc
 100 file path=usr/share/man/man3cpc/cpc_version.3cpc
 101 file path=usr/share/man/man3cpc/generic_events.3cpc
 102 file path=usr/share/man/man3cpc/pctx_capture.3cpc
 103 file path=usr/share/man/man3cpc/pctx_set_events.3cpc
 104 file path=usr/share/man/man3lib/libcpc.3lib
 105 file path=usr/share/man/man3lib/libpctx.3lib
 106 hardlink path=usr/bin/cputrack target=../lib/isaexec
 107 $(sparc_ONLY)hardlink path=usr/kernel/pcbe/$(ARCH64)/pcbe.23 target=pcbe.62
 108 $(sparc_ONLY)hardlink path=usr/kernel/pcbe/$(ARCH64)/pcbe.4.7 target=pcbe.4.6
 109 $(i386_ONLY)hardlink path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.5 \
 110     target=pcbe.GenuineIntel.6
 111 $(i386_ONLY)hardlink path=usr/kernel/pcbe/pcbe.GenuineIntel.5 \
 112     target=pcbe.GenuineIntel.6
 113 legacy pkg=SUNWcpcu desc="CPU Performance Counter libraries and utilities" \
 114     name="CPU Performance Counter libraries and utilities"
 115 license cr_Sun license=cr_Sun
 116 license lic_CDDL license=lic_CDDL
 117 $(i386_ONLY)license usr/src/uts/intel/pcbe/THIRDPARTYLICENSE \
 118     license=usr/src/uts/intel/pcbe/THIRDPARTYLICENSE
 119 $(sparc_ONLY)license usr/src/uts/sun4u/pcbe/THIRDPARTYLICENSE \
 120     license=usr/src/uts/sun4u/pcbe/THIRDPARTYLICENSE
 121 $(i386_ONLY)link path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.6.23 \
 122     target=pcbe.GenuineIntel.6.15
 123 $(i386_ONLY)link path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.6.26 \
 124     target=pcbe.GenuineIntel.6.15
 125 $(i386_ONLY)link path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.6.28 \
 126     target=pcbe.GenuineIntel.6.15
 127 $(i386_ONLY)link path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.6.29 \
 128     target=pcbe.GenuineIntel.6.15
 129 $(i386_ONLY)link path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.6.30 \
 130     target=pcbe.GenuineIntel.6.15
 131 $(i386_ONLY)link path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.6.31 \
 132     target=pcbe.GenuineIntel.6.15
 133 $(i386_ONLY)link path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.6.37 \
 134     target=pcbe.GenuineIntel.6.15
 135 $(i386_ONLY)link path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.6.44 \
 136     target=pcbe.GenuineIntel.6.15
 137 $(i386_ONLY)link path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.6.46 \
 138     target=pcbe.GenuineIntel.6.15
 139 $(i386_ONLY)link path=usr/kernel/pcbe/$(ARCH64)/pcbe.GenuineIntel.6.47 \
 140     target=pcbe.GenuineIntel.6.15
 141 $(i386_ONLY)link path=usr/kernel/pcbe/pcbe.GenuineIntel.6.23 \
 142     target=pcbe.GenuineIntel.6.15
 143 $(i386_ONLY)link path=usr/kernel/pcbe/pcbe.GenuineIntel.6.26 \
 144     target=pcbe.GenuineIntel.6.15
 145 $(i386_ONLY)link path=usr/kernel/pcbe/pcbe.GenuineIntel.6.28 \
 146     target=pcbe.GenuineIntel.6.15
 147 $(i386_ONLY)link path=usr/kernel/pcbe/pcbe.GenuineIntel.6.29 \
 148     target=pcbe.GenuineIntel.6.15
 149 $(i386_ONLY)link path=usr/kernel/pcbe/pcbe.GenuineIntel.6.30 \
 150     target=pcbe.GenuineIntel.6.15
 151 $(i386_ONLY)link path=usr/kernel/pcbe/pcbe.GenuineIntel.6.31 \
 152     target=pcbe.GenuineIntel.6.15
 153 $(i386_ONLY)link path=usr/kernel/pcbe/pcbe.GenuineIntel.6.37 \
 154     target=pcbe.GenuineIntel.6.15
 155 $(i386_ONLY)link path=usr/kernel/pcbe/pcbe.GenuineIntel.6.44 \
 156     target=pcbe.GenuineIntel.6.15
 157 $(i386_ONLY)link path=usr/kernel/pcbe/pcbe.GenuineIntel.6.46 \
 158     target=pcbe.GenuineIntel.6.15
 159 $(i386_ONLY)link path=usr/kernel/pcbe/pcbe.GenuineIntel.6.47 \
 160     target=pcbe.GenuineIntel.6.15
 161 $(BUILD64)link path=usr/lib/$(ARCH64)/libcpc.so target=./libcpc.so.1
 162 $(BUILD64)link path=usr/lib/$(ARCH64)/libpctx.so target=./libpctx.so.1
 163 link path=usr/lib/libcpc.so target=./libcpc.so.1
 164 link path=usr/lib/libpctx.so target=./libpctx.so.1
 165 link path=usr/share/man/man3cpc/cpc_bind_cpu.3cpc target=cpc_bind_curlwp.3cpc
 166 link path=usr/share/man/man3cpc/cpc_bind_pctx.3cpc target=cpc_bind_curlwp.3cpc
 167 link path=usr/share/man/man3cpc/cpc_buf_add.3cpc target=cpc_buf_create.3cpc
 168 link path=usr/share/man/man3cpc/cpc_buf_copy.3cpc target=cpc_buf_create.3cpc
 169 link path=usr/share/man/man3cpc/cpc_buf_destroy.3cpc \
 170     target=cpc_buf_create.3cpc
 171 link path=usr/share/man/man3cpc/cpc_buf_get.3cpc target=cpc_buf_create.3cpc
 172 link path=usr/share/man/man3cpc/cpc_buf_hrtime.3cpc target=cpc_buf_create.3cpc
 173 link path=usr/share/man/man3cpc/cpc_buf_set.3cpc target=cpc_buf_create.3cpc
 174 link path=usr/share/man/man3cpc/cpc_buf_sub.3cpc target=cpc_buf_create.3cpc
 175 link path=usr/share/man/man3cpc/cpc_buf_tick.3cpc target=cpc_buf_create.3cpc
 176 link path=usr/share/man/man3cpc/cpc_buf_zero.3cpc target=cpc_buf_create.3cpc
 177 link path=usr/share/man/man3cpc/cpc_caps.3cpc target=cpc_npic.3cpc
 178 link path=usr/share/man/man3cpc/cpc_cciname.3cpc target=cpc_npic.3cpc
 179 link path=usr/share/man/man3cpc/cpc_close.3cpc target=cpc_open.3cpc
 180 link path=usr/share/man/man3cpc/cpc_count_sys_events.3cpc \
 181     target=cpc_count_usr_events.3cpc
 182 link path=usr/share/man/man3cpc/cpc_cpuref.3cpc target=cpc_npic.3cpc
 183 link path=usr/share/man/man3cpc/cpc_disable.3cpc target=cpc_enable.3cpc
 184 link path=usr/share/man/man3cpc/cpc_event_accum.3cpc \
 185     target=cpc_event_diff.3cpc
 186 link path=usr/share/man/man3cpc/cpc_eventtostr.3cpc target=cpc_strtoevent.3cpc
 187 link path=usr/share/man/man3cpc/cpc_getcciname.3cpc target=cpc_getcpuver.3cpc
 188 link path=usr/share/man/man3cpc/cpc_getcpuref.3cpc target=cpc_getcpuver.3cpc
 189 link path=usr/share/man/man3cpc/cpc_getnpic.3cpc target=cpc_getcpuver.3cpc
 190 link path=usr/share/man/man3cpc/cpc_getusage.3cpc target=cpc_getcpuver.3cpc
 191 link path=usr/share/man/man3cpc/cpc_pctx_invalidate.3cpc \
 192     target=cpc_pctx_bind_event.3cpc
 193 link path=usr/share/man/man3cpc/cpc_pctx_rele.3cpc \
 194     target=cpc_pctx_bind_event.3cpc
 195 link path=usr/share/man/man3cpc/cpc_pctx_take_sample.3cpc \
 196     target=cpc_pctx_bind_event.3cpc
 197 link path=usr/share/man/man3cpc/cpc_rele.3cpc target=cpc_bind_event.3cpc
 198 link path=usr/share/man/man3cpc/cpc_request_preset.3cpc \
 199     target=cpc_bind_curlwp.3cpc
 200 link path=usr/share/man/man3cpc/cpc_set_add_request.3cpc \
 201     target=cpc_set_create.3cpc
 202 link path=usr/share/man/man3cpc/cpc_set_destroy.3cpc \
 203     target=cpc_set_create.3cpc
 204 link path=usr/share/man/man3cpc/cpc_set_restart.3cpc \
 205     target=cpc_bind_curlwp.3cpc
 206 link path=usr/share/man/man3cpc/cpc_set_sample.3cpc target=cpc_buf_create.3cpc
 207 link path=usr/share/man/man3cpc/cpc_shared_bind_event.3cpc \
 208     target=cpc_shared_open.3cpc
 209 link path=usr/share/man/man3cpc/cpc_shared_close.3cpc \
 210     target=cpc_shared_open.3cpc
 211 link path=usr/share/man/man3cpc/cpc_shared_rele.3cpc \
 212     target=cpc_shared_open.3cpc
 213 link path=usr/share/man/man3cpc/cpc_shared_take_sample.3cpc \
 214     target=cpc_shared_open.3cpc
 215 link path=usr/share/man/man3cpc/cpc_take_sample.3cpc \
 216     target=cpc_bind_event.3cpc
 217 link path=usr/share/man/man3cpc/cpc_unbind.3cpc target=cpc_bind_curlwp.3cpc
 218 link path=usr/share/man/man3cpc/cpc_walk_attrs.3cpc target=cpc_npic.3cpc
 219 link path=usr/share/man/man3cpc/cpc_walk_events_all.3cpc target=cpc_npic.3cpc
 220 link path=usr/share/man/man3cpc/cpc_walk_events_pic.3cpc target=cpc_npic.3cpc
 221 link path=usr/share/man/man3cpc/cpc_walk_generic_events_all.3cpc \
 222     target=cpc_npic.3cpc
 223 link path=usr/share/man/man3cpc/cpc_walk_generic_events_pic.3cpc \
 224     target=cpc_npic.3cpc
 225 link path=usr/share/man/man3cpc/cpc_walk_names.3cpc target=cpc_getcpuver.3cpc
 226 link path=usr/share/man/man3cpc/cpc_walk_requests.3cpc \
 227     target=cpc_set_create.3cpc
 228 link path=usr/share/man/man3cpc/pctx_create.3cpc target=pctx_capture.3cpc
 229 link path=usr/share/man/man3cpc/pctx_release.3cpc target=pctx_capture.3cpc
 230 link path=usr/share/man/man3cpc/pctx_run.3cpc target=pctx_capture.3cpc