PMDAPROFILE(3)
π PMDAPROFILE(3) π
okay so bestie, this one lives in the Library Functions Manual section of the PCP docs, and it's genuinely one of the cutest little glue functions you'll ever meet. sit down, grab a strawberry π, let's talk about it.
β¨ NAME β¨
pmdaProfile β update instance profile for PMDA in preparation for the next fetch from PMCD
πΈ C SYNOPSIS πΈ
#include <pcp/pmapi.h>
#include <pcp/pmda.h>
int pmdaProfile(pmProfile *prof, pmdaExt *pmda);
cc ... -lpcp_pmda -lpcp
π¦ DESCRIPTION π¦
so the whole vibe here is the Performance Metrics Domain Agent (PMDA) API β you already know her, she's PMDA(3) β and pmdaProfile is the default callback that handles the receipt of a pmProfile from pmcd(1).
and what even is a profile? okay so a profile describes the instances that pmcd requires in the pmResult structure returned by the next fetch. like, it's pmcd being like "hey bestie, these are the ones I'm gonna need" and handing you the list. π«Ά
and pmdaProfile? she does one thing and she does it flawlessly: she simply stores the new profile. that's it. no drama, no overthinking, just storing. main character energy with zero chaos. π
π CAVEAT π
β οΈ not me being the bearer of bad news but β the PMDA must be usingPMDA_INTERFACE_2or later, as specified in the call topmdaDSO(3)orpmdaDaemon(3). if you're on something older, this is not gonna work and the universe will simply not be on your side. periodt. π
π SEE ALSO π
that's the whole page, bestie, you ate it π
Performance Co-Pilot β PCP β PMDAPROFILE(3)
mwah, go read pmdaFetch(3) next, ily πβ¨
π¦ 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: libpcp-pmda3-dev 7.1.1-1
- ubuntu stonking: libpcp-pmda3-dev 7.2.1-2build1
- Copyright (c) 2000-2004 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