'\" te .\" Copyright (c) 2008, 2000, Oracle and/or its affiliates. All rights reserved. .TH libcpc 3LIB "11 Feb 2011" "SunOS 5.11" "Interface Libraries" .SH NAME libcpc \- CPU performance counter library .SH SYNOPSIS .LP .nf cc [ \fIflag\fR... ] \fIfile\fR... \fB-lcpc\fR [ \fIlibrary\fR... ] .fi .SH DESCRIPTION .sp .LP Functions in this library provide access to CPU performance counters on platforms that contain the appropriate hardware. .SH INTERFACES .sp .LP The shared object \fBlibcpc.so.1\fR provides the public interfaces defined below. See \fBIntro\fR(3) for additional information on shared object interfaces. .sp .sp .TS tab(); lw(2.75i) lw(2.75i) lw(2.75i) lw(2.75i) . \fBcpc_access\fR\fBcpc_bind_cpu\fR \fBcpc_bind_curlwp\fR\fBcpc_bind_event\fR \fBcpc_bind_pctx\fR\fBcpc_buf_add\fR \fBcpc_buf_copy\fR\fBcpc_buf_create\fR \fBcpc_buf_destroy\fR\fBcpc_buf_get\fR \fBcpc_buf_hrtime\fR\fBcpc_buf_set\fR \fBcpc_buf_smpl_get_item\fR\fBcpc_buf_smpl_get_record\fR \fBcpc_buf_smpl_rec_count\fR\fBcpc_buf_sub\fR \fBcpc_buf_tick\fR\fBcpc_buf_zero\fR \fBcpc_caps\fR\fBcpc_cciname\fR \fBcpc_close\fR\fBcpc_cpuref\fR \fBcpc_count_sys_events\fR\fBcpc_count_usr_events\fR \fBcpc_disable\fR\fBcpc_enable\fR \fBcpc_event_accum\fR\fBcpc_event_diff\fR \fBcpc_eventtostr\fR\fBcpc_get_smpl_max_rec_count\fR \fBcpc_getcciname\fR\fBcpc_getcpuref\fR \fBcpc_getcpuver\fR\fBcpc_getnpic\fR \fBcpc_getusage\fR\fBcpc_npic\fR \fBcpc_open\fR\fBcpc_pctx_bind_event\fR \fBcpc_pctx_invalidate\fR\fBcpc_pctx_rele\fR \fBcpc_pctx_take_sample\fR\fBcpc_rele\fR \fBcpc_request_preset\fR\fBcpc_set_add_request\fR \fBcpc_set_create\fR\fBcpc_set_destroy\fR \fBcpc_set_restart\fR\fBcpc_set_sample\fR \fBcpc_seterrfn\fR\fBcpc_seterrhndlr\fR \fBcpc_shared_bind_event\fR\fBcpc_shared_close\fR \fBcpc_shared_open\fR\fBcpc_shared_rele\fR \fBcpc_shared_take_sample\fR\fBcpc_smpl_npic\fR \fBcpc_smpl_iname\fR\fBcpc_strtoevent\fR \fBcpc_take_sample\fR\fBcpc_unbind\fR \fBcpc_version\fR\fBcpc_walk_attrs\fR \fBcpc_walk_attrs_common\fR\fBcpc_walk_events_all\fR \fBcpc_walk_events_all_common\fR\fBcpc_walk_events_pic\fR \fBcpc_walk_events_pic_common\fR\fBcpc_walk_generic_events_all\fR \fBcpc_walk_generic_events_pic\fR\fBcpc_walk_names\fR \fBcpc_walk_requests\fR\fBcpc_walk_smpl_recitems\fR \fBcpc_walk_smpl_recitems_req\fR .TE .SH FILES .sp .ne 2 .mk .na \fB\fB/usr/lib/libcpc.so.1\fR\fR .ad .RS 27n .rt shared object .RE .sp .ne 2 .mk .na \fB\fB/usr/lib/64/libcpc.so.1\fR\fR .ad .RS 27n .rt 64-bit shared object .RE .SH ATTRIBUTES .sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp .TS tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPEATTRIBUTE VALUE _ Availabilitydiagnostic/cpu-counters MT-LevelSafe .TE .SH SEE ALSO .sp .LP \fBcputrack\fR(1), \fBcpustat\fR(1M), \fBIntro\fR(3), \fBcpc\fR(3CPC), \fBattributes\fR(5)