libcpc.3lib (ed22c710) libcpc.3lib (d0e58ef5)
1'\" te
2.\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved.
1'\" te
2.\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved.
3.\" Copyright 2019 Joyent, Inc.
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]
4.\" 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.
5.\" 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.
6.\" 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"
7.TH LIBCPC 3LIB "March 25, 2019"
7.SH NAME
8libcpc \- CPU performance counter library
9.SH SYNOPSIS
10.LP
11.nf
12cc [ \fIflag\fR... ] \fIfile\fR... \fB-lcpc\fR [ \fIlibrary\fR... ]
13.fi
14
15.SH DESCRIPTION
8.SH NAME
9libcpc \- CPU performance counter library
10.SH SYNOPSIS
11.LP
12.nf
13cc [ \fIflag\fR... ] \fIfile\fR... \fB-lcpc\fR [ \fIlibrary\fR... ]
14.fi
15
16.SH DESCRIPTION
16.sp
17.LP
18Functions in this library provide access to CPU performance counters on
17.LP
18Functions in this library provide access to CPU performance counters on
19platforms that contain the appropriate hardware.
19platforms that contain the appropriate hardware. A more detailed
20explanation of the library and a list of processor-specific events is
21available in \fBcpc\fR(3CPC).
20.SH INTERFACES
22.SH INTERFACES
21.sp
22.LP
23The shared object \fBlibcpc.so.1\fR provides the public interfaces defined
24below. See \fBIntro\fR(3) for additional information on shared object
25interfaces.
26.sp
27
28.sp
29.TS

--- 28 unchanged lines hidden (view full) ---

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
63.TE
64
65.SH FILES
23.LP
24The shared object \fBlibcpc.so.1\fR provides the public interfaces defined
25below. See \fBIntro\fR(3) for additional information on shared object
26interfaces.
27.sp
28
29.sp
30.TS

--- 28 unchanged lines hidden (view full) ---

59\fBcpc_take_sample\fR \fBcpc_unbind\fR
60\fBcpc_version\fR \fBcpc_walk_attrs\fR
61\fBcpc_walk_events_all\fR \fBcpc_walk_events_pic\fR
62\fBcpc_walk_generic_events_all\fR \fBcpc_walk_generic_events_pic\fR
63\fBcpc_walk_names\fR \fBcpc_walk_requests\fR
64.TE
65
66.SH FILES
66.sp
67.ne 2
68.na
69\fB\fB/usr/lib/libcpc.so.1\fR\fR
70.ad
71.RS 27n
72shared object
73.RE
74
75.sp
76.ne 2
77.na
78\fB\fB/usr/lib/64/libcpc.so.1\fR\fR
79.ad
80.RS 27n
8164-bit shared object
82.RE
83
84.SH ATTRIBUTES
67.ne 2
68.na
69\fB\fB/usr/lib/libcpc.so.1\fR\fR
70.ad
71.RS 27n
72shared object
73.RE
74
75.sp
76.ne 2
77.na
78\fB\fB/usr/lib/64/libcpc.so.1\fR\fR
79.ad
80.RS 27n
8164-bit shared object
82.RE
83
84.SH ATTRIBUTES
85.sp
86.LP
87See \fBattributes\fR(5) for descriptions of the following attributes:
88.sp
89
90.sp
91.TS
92box;
93c | c
94l | l .
95ATTRIBUTE TYPE ATTRIBUTE VALUE
96MT-Level Safe
97.TE
98
99.SH SEE ALSO
85.LP
86See \fBattributes\fR(5) for descriptions of the following attributes:
87.sp
88
89.sp
90.TS
91box;
92c | c
93l | l .
94ATTRIBUTE TYPE ATTRIBUTE VALUE
95MT-Level Safe
96.TE
97
98.SH SEE ALSO
100.sp
101.LP
102\fBcputrack\fR(1), \fBcpustat\fR(1M), \fBIntro\fR(3), \fBcpc\fR(3CPC),
103\fBattributes\fR(5), \fBxVM\fR(5)
104.SH NOTES
99.LP
100\fBcputrack\fR(1), \fBcpustat\fR(1M), \fBIntro\fR(3), \fBcpc\fR(3CPC),
101\fBattributes\fR(5), \fBxVM\fR(5)
102.SH NOTES
105.sp
106.LP
107There is no support for access to performance counters in the \fBxVM\fR(5)
108environment. The \fB-h\fR operations for \fBcputrack\fR(1) are not enabled.
103.LP
104There is no support for access to performance counters in the \fBxVM\fR(5)
105environment. The \fB-h\fR operations for \fBcputrack\fR(1) are not enabled.