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

NAME

6       pmFreeEventResult, pmFreeHighResEventResult - release storage allocated
7       for unpacked event records
8

C SYNOPSIS

10       #include <pcp/pmapi.h>
11
12       void pmFreeEventResult(pmResult **rset);
13       void pmFreeHighResEventResult(pmHighResResult **hrset);
14
15       cc ... -lpcp
16

DESCRIPTION

18       When processing event records, if pmUnpackEventRecords(3)  is  used  to
19       unpack  event  records from a metric within a pmResult structure with a
20       value of type PM_TYPE_EVENT then the structure returned from  pmUnpack‐
21       EventRecords(3) is a NULL pointer terminated array of pointers to pmRe‐
22       sult structures, one for each event record.
23
24       pmFreeEventResult is a convenience method that frees all of  the  pmRe‐
25       sult structures and the array of pointers (rset).
26
27       Similarly,  pmFreeHighResEventResult may be used to free the pmHighRes‐
28       Result structures and  array  returned  from  the  pmUnpackHighResEven‐
29       tRecords routine when using PM_TYPE_HIGHRES_EVENT metrics.
30

SEE ALSO

32       PMAPI(3) and pmUnpackEventRecords(3).
33
34
35
36Performance Co-Pilot                  PCP                 PMFREEEVENTRESULT(3)
Impressum