PMID_BUILD(3)
π PMID_BUILD(3) π
ok so this is a Library Functions Manual page, bestie, and it's all about pmID_build, pmID_domain, pmID_cluster, pmID_item β the lil helper squad for messing with PMIDs β¨
πΈ NAME πΈ
pmID_build, pmID_domain, pmID_cluster, pmID_item β helper methods for manipulating PMIDs π«Ά
β¨ C SYNOPSIS β¨
ok here's the whole vibe, copy it exactly bestie:
#include <pcp/pmapi.h>
pmID pmID_build(unsigned int domain, unsigned int cluster,
unsigned int item);
unsigned int pmID_domain(pmID pmid);
unsigned int pmID_cluster(pmID pmid);
unsigned int pmID_item(pmID pmid);
cc ... -lpcp
π DESCRIPTION π
so inside the Performance Co-Pilot (aka PCP) every single metric gets its own unique lil name tag, and that's the Performance Metric Identifier β the pmID π iconic, no notes.
and lowkey the way a pmID is built internally? it's 3 fields, periodt:
- the domain number β that's the domain of the Performance Metrics Domain Agent it belongs to, aka the PMDA
- the cluster number
- the item number
and just so you know, those last two are assigned by the PMDA itself, fr fr π¦
pmID_buildβ constructs apmIDout ofdomain,clusteranditem. it's giving assembly line but make it cute β¨pmID_domain,pmID_clusterandpmID_itemβ these three return the respective fields frompmid. like little peek-holes into the struct, we love to see it π
π SEE ALSO π
PMAPI(3) and pmIDStr(3) π go read those too, bestie, they're relevant i promise
ok that's the whole page!! this one came from Performance Co-Pilot, version PCP β shoutout to the source, mwah π thanks for reading, stan pmID_build π
πβ¨
π¦ 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: libpcp4-dev 7.1.1-1
- ubuntu stonking: libpcp4-dev 7.2.1-2build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms