PMINDOM_BUILD(3)
β¨ PMINDOM_BUILD(3) β bestie edition β¨
ok so this is a page about the helper methods for manipulating instance domain identifiers in PCP, and honestly? it's giving tiny-but-mighty. three little functions, zero drama, all vibes. let's get into it π«Ά
π NAME π
pmInDom_build, pmInDom_domain, pmInDom_serial β the lil helper squad for manipulating instance domain identifiers. no cap, that's the whole job. β¨
π C SYNOPSIS π
first thing's first, bestie, you gotta pull in the header:
#include <pcp/pmapi.h>
then here's the whole crew, exactly as they show up:
pmInDom pmInDom_build(unsigned int domain, unsigned int serial);
unsigned int pmInDom_domain(pmInDom indom);
unsigned int pmInDom_serial(pmInDom indom);
and when you link, you link like this:
cc ... -lpcp
that's it. that's the entry point. π
πΈ DESCRIPTION πΈ
okay so context, because you deserve it:
Inside the Performance Co-Pilot (aka PCP), every single instance domain gets assigned its own unique Instance Domain Identifier β written as a pmInDom. Iconic. Internally, a pmInDom is built out of 2 fields:
- the domain number β of the associated Performance Metrics Domain Agent, or PMDA
- the serial number β assigned by the PMDA
two fields, one identifier, main character energy. π¦
now the functions themselves:
pmInDom_buildβ constructs apmInDomfromdomainandserial. you bring the two pieces, it hands you the whole vibe. β¨pmInDom_domainandpmInDom_serialβ these two are the reverse-engineering besties: they return the respective fields out ofindom. lowkey the most satisfying pair ever. π
π SEE ALSO π
go read these next, i'm literally obsessed with them:
ngl this page is short and sweet, but every detail here matters β the two fields, the PMDA serial, the linking flag. don't skip the vibes check. π
ok bye bestie, that's the whole page!! π this one comes from Performance Co-Pilot (PCP) and yeah, it's PMINDOM_BUILD(3). mwah, go forth and build your in-doms. π§π
π¦ 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