PMID_BUILD(3)

πŸ“¦
version 7.2.2 Β· 2 versions
, in arch rolling, centos-stream 10, fedora 43, fedora 44, ubuntu resolute, ubuntu stonking

πŸ’– 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 a pmID out of domain, cluster and item. it's giving assembly line but make it cute ✨
  • pmID_domain, pmID_cluster and pmID_item β€” these three return the respective fields from pmid. 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