1PMWHICHCONTEXT(3)          Library Functions Manual          PMWHICHCONTEXT(3)
2
3
4

NAME

6       pmWhichContext - identify the current PMAPI context
7

C SYNOPSIS

9       #include <pcp/pmapi.h>
10
11       int pmWhichContext(void);
12
13       cc ... -lpcp
14

DESCRIPTION

16       An  application  using  the Performance Metrics Application Programming
17       Interface (PMAPI) may manipulate several concurrent contexts, each  as‐
18       sociated  with  a  source  of performance metrics, e.g. pmcd(1) on some
19       host, or an archive of performance metrics as created by pmlogger(1).
20
21       pmWhichContext returns a handle for the current PMAPI context, that may
22       be used in the associated PMAPI routines that require a handle to iden‐
23       tify a PMAPI context.
24

DIAGNOSTICS

26       PM_ERR_NOCONTEXT
27              no current context
28

SEE ALSO

30       PMAPI(3),  pmDestroyContext(3),  pmDupContext(3),  pmNewContext(3)  and
31       pmUseContext(3).
32
33
34
35Performance Co-Pilot                  PCP                    PMWHICHCONTEXT(3)
Impressum