PMSPECLOCALPMDA(3) | Library Functions Manual | PMSPECLOCALPMDA(3) |
pmSpecLocalPMDA - process command-line argument for the table of DSO PMDAs
#include "pmapi.h"
#include "libpcp.h"
char *pmSpecLocalPMDA(const char *spec);
cc ... -lpcp
For Performance Co-Pilot (PCP) applications, contexts of type PM_CONTEXT_LOCAL are used by clients that wish to fetch metrics directly from one or more PMDAs on the local host without involving pmcd(1).
pmSpecLocalPMDA provides a convenience wrapper to be used by applications that wish to use a command line argument (usually with -K) to control the DSO PMDAs that are available for a PM_CONTEXT_LOCAL context.
The spec argument specifies actions for one or more DSO PMDAs using up to four fields separated by commas (``,''), namely:
All fields are required to add a new entry. To delete an entry the opcode is required plus either or both of the domain number and path fields. To clear all entries, only the opcode is required.
If spec is parsed successfully, then the DSO table is updated with the extracted fields.
On success, pmSpecLocalPMDA will return NULL.
On error or failure, pmSpecLocalPMDA will return a pointer to a static error message.
Some examples of valid spec strings:
pmcd(1), PMAPI(3) and pmNewContext(3).
Performance Co-Pilot |