Interface Libraries libpctx(3LIB)
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 allowdevelopers to construct tools that can manipulate CPU per-
formance counters in other processes. The cputrack(1) util-
ity is an example of such a tool. INTERFACESThe shared object libpctx.so.1 provides the public inter-
faces 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 attri-
butes:SunOS 5.11 Last change: 22 May 2003 1
Interface Libraries libpctx(3LIB)
________________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_________________________________|
| Availability | diagnostic/cpu-counters (32-bit)|
|_____________________________|_________________________________|
| | SUNWcpcux (64-bit) |
|_____________________________|_________________________________|
| MT-Level | Safe |
|_____________________________|_________________________________|
SEE ALSO
cputrack(1), Intro(3), cpc(3CPC), libcpc(3LIB), proc(4), attributes(5)SunOS 5.11 Last change: 22 May 2003 2