1PMDASTORE(3) Library Functions Manual PMDASTORE(3)
2
3
4
6 pmdaStore - store a value into a metric for a PMDA
7
9 #include <pcp/pmapi.h>
10 #include <pcp/pmda.h>
11
12 int pmdaStore(pmResult *result, pmdaExt *pmda);
13
14 cc ... -lpcp_pmda -lpcp
15
17 As part of the Performance Metrics Domain Agent (PMDA) API (see
18 PMDA(3)), pmdaStore is the generic callback for storing a value into a
19 metric. pmdaStore is usually a no-op as, by default, no metrics can be
20 altered. Also, the implementation of a store callback which does per‐
21 mit metrics to be altered by pmstore(1) is very application dependent.
22
24 The PMDA must be using PMDA_PROTOCOL_2 or later, as specified in the
25 call to pmdaDSO(3) or pmdaDaemon(3).
26
28 pmdaStore returns PM_ERR_PERMISSION to indicate that no metrics may be
29 modified.
30
32 pmstore(1), PMAPI(3), PMDA(3), pmdaDaemon(3), pmdaDSO(3) and pm‐
33 Store(3).
34
35
36
37Performance Co-Pilot PCP PMDASTORE(3)