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