Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Thursday, June 13, 2019
 
 

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(5) 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(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
diagnostic/cpu-counters
MT-Level
Safe

See Also

cputrack(1), cpc(3CPC), libcpc(3LIB), intro(3), proc(5), attributes(7)