PMLOOKUPINDOMARCHIVE(3)
π PMLOOKUPINDOMARCHIVE(3) π
okay bestie, so this one lives in the Library Functions Manual and it's literally the glow-up era of pmLookupInDomArchive β it's the archived-archive version, the β¨specializedβ¨ one. Let's get into it π«Ά
πΈ NAME πΈ
pmLookupInDomArchive β translate an instance name into an instance identifier
no cap, that's the whole job. name in, id out. π
π C SYNOPSIS π
#include <pcp/pmapi.h>
int pmLookupInDomArchive(pmInDom indom, const char *name);
cc ... -lpcp
so you include <pcp/pmapi.h>, you call it with a pmInDom and a const char *name, and when you link you gotta bring -lpcp along for the ride or it will simply not build. that's just the vibe. π¦
β¨ DESCRIPTION β¨
okay so here's the tea β β provided the current Performance Metrics Application Programming Interface (PMAPI) context is associated with a set of archives, pmLookupInDomArchive will scan the union of all the instance domain metadata for the instance domain indom, locate the first instance with the external identification given by name, and hand you back the internal instance identifier. iconic behaviour honestly. π
This routine is a specialized version of the more general PMAPI routine pmLookupInDom. it's giving "same energy, but archives only" π
Only the leading non-space characters of name will be used to identify the instance. so like, trim your whitespace mentally, she's not gonna do it for you π
The value for the instance domain indom is typically extracted from a pmDesc structure, following a call to pmLookupDesc(3) for a particular performance metric. that's the pipeline, bestie β desc first, then this. π
pmLookupInDomArchive will return a positive instance identifier on success. positive vibes only, literally β¨
π DIAGNOSTICS π
these are the "it didn't work" era moments, and you need to know them fr fr:
PM_ERR_NOTARCHIVEβ the current PMAPI context is not associated with a set of archives. wrong context, wrong energy, not it. πPM_ERR_INDOM_LOGβindomis not a defined instance domain identifier for the set of archives. that domain? unknown to her. πPM_ERR_INST_LOGβ the external instance name is not known for the instance domainindomin the set of archives. the name you're looking for is not in the group chat π«
bestie please actually check these. guessing at error codes is not the main character move. π
π¦ SEE ALSO π¦
PMAPI(3)pmGetConfig(3)pmGetInDomArchive(3)pmLookupDesc(3)pmLookupInDom(3)pmNameInDomArchive(3)pcp.conf(5)pcp.env(5)
go read these too, they're all part of the same friend group, iykyk π
and that's the whole page, bestie!! π this slay of a manual page came to you from Performance Co-Pilot (PCP), and it's filed under PMLOOKUPINDOMARCHIVE(3). obsessed. 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: libpcp4-dev 7.1.1-1
- ubuntu stonking: libpcp4-dev 7.2.1-2build1
- Copyright (c) 2016 Red Hat
- Copyright (c) 2000 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