Given a Performance Metric Identifier (PMID) via pmid, pmNameAll will
determine all the corresponding metric names, if any, in the
Performance Metrics Name Space (PMNS), and return these via nameset.
The resulting list of pointers namesetand the values (the relative
names) that the pointers reference will have been allocated by
pmNameAll with a single call to malloc(3), and it is the
responsibility of the pmNameAll caller to free(nameset) to release
the space when it is no longer required.
In the absence of errors, pmNameAll returns the number of names in
For many examples of a PMNS, there will be a 1:1 mapping between a
name and a PMID, and under these circumstances, pmNameID(3) provides
a slightly simpler interface in the absence of duplicate names for a
Failed to access a PMNS for operation. Note that if the
application hasn't a priori called pmLoadNameSpace(3) and
wants to use the distributed PMNS, then a call to pmNameAll
must be made after the creation of a context (see
PM_ERR_PMIDpmid does not correspond to a defined PMID in the PMNS.
Other diagnostics are for protocol failures when accessing the
This page is part of the PCP (Performance Co-Pilot) project.
Information about the project can be found at ⟨http://www.pcp.io/⟩.
If you have a bug report for this manual page, send it to
email@example.com. This page was obtained from the project's upstream
Git repository ⟨git://git.pcp.io/pcp⟩ on 2017-03-13. If you discover
any rendering problems in this HTML version of the page, or you
believe there is a better or more up-to-date source for the page, or
you have corrections or improvements to the information in this
COLOPHON (which is not part of the original manual page), send a mail
Performance Co-Pilot PCP PMNAMEALL(3)