summaryrefslogtreecommitdiff
path: root/usr/src/man/man3cpc/cpc_enable.3cpc
diff options
context:
space:
mode:
authorYuri Pankov <yuri.pankov@nexenta.com>2011-10-03 04:36:40 -0700
committerYuri Pankov <yuri.pankov@nexenta.com>2011-10-03 04:36:40 -0700
commited22c7109fc5dd9e1b7a5d0333bdc7ad2718e2ab (patch)
tree3b2f488c4a03bda877119449bd63c01fa32aa6f2 /usr/src/man/man3cpc/cpc_enable.3cpc
parentaf8dc4373b25cce2c0bbb80f24e791f99eccbb6f (diff)
downloadillumos-gate-ed22c7109fc5dd9e1b7a5d0333bdc7ad2718e2ab.tar.gz
1502 Remove conversion cruft from manpages
Reviewed by: Alexander Eremin <alexander.eremin@nexenta.com> Reviewed by: Gordon Ross <gordon.w.ross@gmail.com> Reviewed by: Garrett D'Amore <garrett.damore@gmail.com>
Diffstat (limited to 'usr/src/man/man3cpc/cpc_enable.3cpc')
-rw-r--r--usr/src/man/man3cpc/cpc_enable.3cpc29
1 files changed, 12 insertions, 17 deletions
diff --git a/usr/src/man/man3cpc/cpc_enable.3cpc b/usr/src/man/man3cpc/cpc_enable.3cpc
index eebbd23911..34f549719d 100644
--- a/usr/src/man/man3cpc/cpc_enable.3cpc
+++ b/usr/src/man/man3cpc/cpc_enable.3cpc
@@ -3,13 +3,13 @@
.\" 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.
.\" 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.
.\" 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]
-.TH cpc_enable 3CPC "31 Jan 2005" "SunOS 5.11" "CPU Performance Counters Library Functions"
+.TH CPC_ENABLE 3CPC "Jan 31, 2005"
.SH NAME
cpc_enable, cpc_disable \- enable and disable performance counters
.SH SYNOPSIS
.LP
.nf
-cc [ \fIflag\fR\&.\|.\|. ] \fIfile\fR\&.\|.\|. \fB-lcpc\fR [ \fIlibrary\fR\&.\|.\|. ]
+cc [ \fIflag\fR\&.\|.\|. ] \fIfile\fR\&.\|.\|. \fB-lcpc\fR [ \fIlibrary\fR\&.\|.\|. ]
#include <libcpc.h>
\fBint\fR \fBcpc_enable\fR(\fBcpc_t *\fR\fIcpc\fR);
@@ -39,24 +39,20 @@ Upon successful completion, \fBcpc_enable()\fR and \fBcpc_disable()\fR return
These functions will fail if:
.sp
.ne 2
-.mk
.na
\fB\fBEAGAIN\fR\fR
.ad
.RS 10n
-.rt
The associated performance counter context has been invalidated by another
process.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBEINVAL\fR\fR
.ad
.RS 10n
-.rt
No performance counter context has been created for the calling LWP.
.RE
@@ -87,15 +83,15 @@ main(int argc, char *argv[])
{
cpc_t *cpc = cpc_open(CPC_VER_CURRENT);
/* ... application code ... */
-
+
if (cpc != NULL)
(void) cpc_enable(cpc);
-
+
/* ==> Code to be measured goes here <== */
-
+
if (cpc != NULL)
(void) cpc_disable(cpc);
-
+
/* ... other application code */
}
.fi
@@ -109,15 +105,14 @@ See \fBattributes\fR(5) for descriptions of the following attributes:
.sp
.TS
-tab() box;
-cw(2.75i) |cw(2.75i)
-lw(2.75i) |lw(2.75i)
-.
-ATTRIBUTE TYPEATTRIBUTE VALUE
+box;
+c | c
+l | l .
+ATTRIBUTE TYPE ATTRIBUTE VALUE
_
-Interface StabilityEvolving
+Interface Stability Evolving
_
-MT-LevelSafe
+MT-Level Safe
.TE
.SH SEE ALSO