2 .\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH LIBCPC 3LIB "Oct 8, 2008"
8 libcpc \- CPU performance counter library
12 cc [ \fIflag\fR... ] \fIfile\fR... \fB-lcpc\fR [ \fIlibrary\fR... ]
18 Functions in this library provide access to CPU performance counters on
19 platforms that contain the appropriate hardware.
23 The shared object \fBlibcpc.so.1\fR provides the public interfaces defined
24 below. See \fBIntro\fR(3) for additional information on shared object
32 \fBcpc_access\fR \fBcpc_bind_cpu\fR
33 \fBcpc_bind_curlwp\fR \fBcpc_bind_event\fR
34 \fBcpc_bind_pctx\fR \fBcpc_buf_add\fR
35 \fBcpc_buf_copy\fR \fBcpc_buf_create\fR
36 \fBcpc_buf_destroy\fR \fBcpc_buf_get\fR
37 \fBcpc_buf_hrtime\fR \fBcpc_buf_set\fR
38 \fBcpc_buf_sub\fR \fBcpc_buf_tick\fR
39 \fBcpc_buf_zero\fR \fBcpc_caps\fR
40 \fBcpc_cciname\fR \fBcpc_close\fR
41 \fBcpc_cpuref\fR \fBcpc_count_sys_events\fR
42 \fBcpc_count_usr_events\fR \fBcpc_disable\fR
43 \fBcpc_enable\fR \fBcpc_event_accum\fR
44 \fBcpc_event_diff\fR \fBcpc_eventtostr\fR
45 \fBcpc_getcciname\fR \fBcpc_getcpuref\fR
46 \fBcpc_getcpuver\fR \fBcpc_getnpic\fR
47 \fBcpc_getusage\fR \fBcpc_npic\fR
48 \fBcpc_open\fR \fBcpc_pctx_bind_event\fR
49 \fBcpc_pctx_invalidate\fR \fBcpc_pctx_rele\fR
50 \fBcpc_pctx_take_sample\fR \fBcpc_rele\fR
51 \fBcpc_request_preset\fR \fBcpc_set_add_request\fR
52 \fBcpc_set_create\fR \fBcpc_set_destroy\fR
53 \fBcpc_set_restart\fR \fBcpc_set_sample\fR
54 \fBcpc_seterrfn\fR \fBcpc_seterrhndlr\fR
55 \fBcpc_shared_bind_event\fR \fBcpc_shared_close\fR
56 \fBcpc_shared_open\fR \fBcpc_shared_rele\fR
57 \fBcpc_shared_take_sample\fR \fBcpc_strtoevent\fR
58 \fBcpc_take_sample\fR \fBcpc_unbind\fR
59 \fBcpc_version\fR \fBcpc_walk_attrs\fR
60 \fBcpc_walk_events_all\fR \fBcpc_walk_events_pic\fR
61 \fBcpc_walk_generic_events_all\fR \fBcpc_walk_generic_events_pic\fR
62 \fBcpc_walk_names\fR \fBcpc_walk_requests\fR
69 \fB\fB/usr/lib/libcpc.so.1\fR\fR
78 \fB\fB/usr/lib/64/libcpc.so.1\fR\fR
87 See \fBattributes\fR(5) for descriptions of the following attributes:
95 ATTRIBUTE TYPE ATTRIBUTE VALUE
102 \fBcputrack\fR(1), \fBcpustat\fR(1M), \fBIntro\fR(3), \fBcpc\fR(3CPC),
103 \fBattributes\fR(5), \fBxVM\fR(5)
107 There is no support for access to performance counters in the \fBxVM\fR(5)
108 environment. The \fB-h\fR operations for \fBcputrack\fR(1) are not enabled.