xref: /titanic_44/usr/src/man/man3lib/libpctx.3lib (revision 45ba3153cd6c019703d2e98425b7cae2b12b5f21)
te
Copyright (c) 2003, Sun Microsystems, Inc. All Rights Reserved.
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]
LIBPCTX 3LIB "May 22, 2003"
NAME
libpctx - process context library
SYNOPSIS

cc [ flag... ] file... -lpctx [ library... ]
DESCRIPTION

Functions in this library provide a simple means to access the underlying facilities of proc(4) to allow a controlling process to manipulate the state of a controlled process.

This library is primarily for use in conjunction with the libcpc(3LIB) library. Used together, these libraries allow developers to construct tools that can manipulate CPU performance counters in other processes. The cputrack(1) utility is an example of such a tool.

INTERFACES

The shared object libpctx.so.1 provides the public interfaces defined below. See Intro(3) for additional information on shared object interfaces.

pctx_capture pctx_create
pctx_release pctx_run
pctx_set_events
FILES
/usr/lib/libpctx.so.1

shared object

/usr/lib/64/libpctx.so.1

64-bit shared object

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
MT-Level Safe
SEE ALSO

cputrack(1), Intro(3), cpc(3CPC), libcpc(3LIB), proc(4), attributes(5)