введение в библиотеки Performance Co-Pilot (PCP) (introduction to the Performance Co-Pilot (PCP) libraries)
Вступление (Introduction)
Performance Co-Pilot (PCP) is a toolkit designed for monitoring
and managing system-level performance.
The PCP libraries support the APIs required to create new
performance monitoring tools and new agents (or PMDAs) to export
performance data. The libpcp
library is used in both cases. The
libpcp_pmda
library is used only for PMDAs.
Individual library routines are documented in their own manual
page entries.
Most routines return an integer value; greater than equal to zero
for success and less than zero for an error. The error codes
have symbolic names defined in <pcp/pmapi.h>
. Other negative
values are used to encode errors that can be mapped to the
traditional errno values defined in <errno.h>
, with the value
negated. To translate all PCP error codes into useful messages
use either pmerr(1) or pmErrStr(3); the latter may also be used
to decode the -errno cases.