PMLOOKUPINDOMTEXT(3)
π PMLOOKUPINDOMTEXT(3) π
okay so bestie, welcome to the Library Functions Manual page for pmLookupInDomText β yes that's the whole vibe, we're in the PCP girlies' section of the man pages and it's iconic β¨
πΈ NAME πΈ
pmLookupInDomText β return text describing a performance metrics instance domain
π C SYNOPSIS π
#include <pcp/pmapi.h>
int pmLookupInDomText(pmInDom indom, int level, char **buffer);
cc ... -lpcp
β¨ DESCRIPTION β¨
So what this does, fr fr: it grabs descriptive text about the performance metrics instance domain that's identified by indom. π¦
The value for the instance domain indom is typically pulled out of a pmDesc structure, right after you call pmLookupDesc(3) for a particular performance metric. like, that's the normal way you'd get it, no cap. π
Now, the level argument β you gotta pick your vibe:
PM_TEXT_ONELINEif you want a cute one-line summary π«- otherwise
PM_TEXT_HELPfor a more verbose description, the kind that's suited to a help dialog π
and the space pointed to by buffer? that's been allocated inside pmLookupInDomText using malloc(3). so heads up, it is your responsibility as the caller to free(3) that space once you don't need it anymore. don't leave it hanging, bestie, that's a leak π
pmLookupInDomText returns zero on success. slay. π
π DIAGNOSTICS π
PM_ERR_NOTHOSTβ for archives created with versions of PCP prior to4.0, if the current PMAPI context is an archive (help and one-line text was previously not maintained in the archives)
lowkey a throwback error. if you're poking at old archives, this one's gonna find you π
π SEE ALSO π
chkhelp(1), newhelp(1), PMAPI(3), pmGetConfig(3), pmLookupDesc(3), pmLookupLabels(3), pmLookupText(3), pcp.conf(5) and pcp.env(5).
and that's the whole page, periodt π«Ά this came to you from Performance Co-Pilot (PCP), filed under PMLOOKUPINDOMTEXT(3) β go read the source, ily, bye ππ§ββοΈ
π¦ 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) 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