PMDADESC(3)
π NAME π
pmdaDesc β bestie, it literally gets the description of a metric from a PMDA π«Ά
β¨ C SYNOPSIS β¨
okay so first you gotta pull in the headers, no skipping:
#include <pcp/pmapi.h>
#include <pcp/pmda.h>
int pmdaDesc(pmID pmid, pmDesc *desc, pmdaExt *pmda);
cc ... -lpcp_pmda -lpcp
and yeah, you gotta link it up with -lpcp_pmda -lpcp or it's giving β¨undefined referenceβ¨ energy and we do NOT want that π
πΈ DESCRIPTION πΈ
so here's the vibe: pmdaDesc rolls up using the standard PMDA(3) data structures and hands you back the pmDesc description in desc for whichever metric you pointed at with pmid. that's it. that's the whole job. lowkey iconic, honestly π
think of pmid as the name tag and desc as the whole personality profile that comes with it π
π CAVEAT π
real talk, bestie β this only works if your PMDA is runningPMDA_INTERFACE_2or later. and not just vibes-later, like actually specified in the call topmdaDSO(3)orpmdaDaemon(3). if you're on something older than that, this is not your era and it will not slay π
π₯ DIAGNOSTICS π₯
if the pmid doesn't match any metric your PMDA actually supports, pmdaDesc returns PM_ERR_PMID. not a crash, not a mystery, just a very direct "girl that metric does not exist here" π
π¦ SEE ALSO π¦
go read them, they're all part of the same friend group iykyk π«Ά
this whole page came to you courtesy of Performance Co-Pilot (aka PCP) β the <pink>PMDADESC(3)</pink> entry, bestie π thanks for reading, now go describe some metrics, periodt β¨π
π¦ where this page comes from
- arch rolling: pcp 7.2.2-2 Β· GPL-2.0-or-later AND LGPL-2.1-or-later AND CC-BY-3.0
- centos-stream 10: pcp-doc 7.1.5-6.el10 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 43: pcp-doc 7.0.1-1.fc43 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 43: pcp-doc 7.2.1-1.fc43
- fedora 43: pcp-doc 7.2.2-1.fc43
- fedora 43: pcp-doc 7.2.2-2.fc43 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 44: pcp-doc 7.1.0-6.fc44 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 44: pcp-doc 7.2.1-1.fc44
- fedora 44: pcp-doc 7.2.2-1.fc44
- fedora 44: pcp-doc 7.2.2-2.fc44 Β· GPL-2.0-or-later AND CC-BY-3.0
- ubuntu resolute: libpcp-pmda3-dev 7.1.1-1
- ubuntu stonking: libpcp-pmda3-dev 7.2.1-2build1
- Copyright (c) 2000-2004 Silicon Graphics, Inc. All Rights Reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms