PMDERIVEDERRSTR(3)
π PMDERIVEDERRSTR(3) β pmDerivedErrStr π
okay bestie, listen up β this is the Library Functions Manual page for pmDerivedErrStr, and honestly? She's tiny but she's mighty. π
β¨ NAME β¨
pmDerivedErrStr β return error message from failure to parse derived metric definition π«Ά
πΈ C SYNOPSIS πΈ
#include <pcp/pmapi.h>
char *pmDerivedErrStr(void);
cc ... -lpcp
yes she takes no args, yes she returns a char *, no we are not overthinking it π
π¦ DESCRIPTION π¦
So here's the vibe. When you call pmRegisterDerived(3) to add a new derived metric definition, and something goes wrong β like, an error happens, bestie, it's giving chaos π β you can then call pmDerivedErrStr to get the associated error message back. That's the whole job. She's the receipts. π§Ύβ¨
like, pmRegisterDerived throws the party and things go sideways, and pmDerivedErrStr is the one who tells you what went sideways.
Also, lowkey important: the pmRegisterDerivedMetric interface is a convenience wrapper around both pmRegisterDerived and pmDerivedErrStr. So if you're feeling lazy (valid, no judgment π), that one does the two-step for you. Iconic behaviour honestly. π
π SEE ALSO π
and that's the whole page, bestie β short, sweet, and she ate π β¨ This one comes to you from Performance Co-Pilot, living under the name PMDERIVEDERRSTR(3). No date on the footer, so don't come for me, I'm just telling you what she said. ππ«Άπ
π¦ 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) 2009 Ken McDonell. All Rights Reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms