pmwhichcontext(3)

pmwhichcontext3

Identify the current pmapi context

Part of pmWhichContext(3).

C synopsis

#include <pcp/pmapi.h>

int pmWhichContext(void);

cc ... -lpcp

Overview

An application using the Performance Metrics Application Programming Interface (PMAPI) may manipulate several concurrent contexts, each associated with a source of performance metrics, e.g. pmcd(1) on some host, or an archive log of performance metrics as created by pmlogger(1).

pmWhichContext returns a handle for the current PMAPI context, that may be used in the associated PMAPI routines that require a handle to identify a PMAPI context.

Diagnostics

PM_ERR_NOCONTEXT

no current context

From libpcp3-dev 4.3.2+really4.3.1-0.1 in Debian 10 (Buster). Parsed by carta from the page's man source.