PMAPUTLOG(3)
π pmaPutLog β the PMAPUTLOG(3) page, but make it cute π
okay bestie, so this is pmaPutLog(3) from the Library Functions Manual, and it's one of those internal PCP things. Let's get into it π«Ά
β¨ NAME β¨
pmaPutLog β direct write of the next record from an archive file. yes that's the whole name, it does what it says on the tin π
πΈ C SYNOPSIS πΈ
#include <pcp/pmapi.h>
#include <pcp/libpcp.h>
#include <pcp/archive.h>
void pmaPutLog(FILE *f, __int32_t *rbuf);
cc ... -lpcp_archive -lpcp
so you're pulling in three headers, calling it with a FILE *f and a __int32_t *rbuf, and you link against -lpcp_archive and -lpcp. that's the whole vibe β¨
β οΈ CAVEAT β οΈ
okay so listen, this is important:
- This documentation is intended for internal Performance Co-Pilot (PCP) developer use.
- These interfaces are not part of the PCP APIs that are guaranteed to remain fixed across releases, and they may not work, or may provide different semantics at some point in the future.
so likeβ¦ it's giving "for the girlies on the inside only" π do not build your whole personality on this API staying the same, fr fr.
π¦ DESCRIPTION π¦
This is a cut-down version of the archive record reading routines from libpcp, that writes the next physical record on the stream identified by f.
The record is already formatted in rbuf, including the setup of the record header length and trailer length, and rbuf must be in network byte-order. no cap, if it's not in network byte-order you're on your own π
There is no checking, so the record format must be correct and match the semantics of whichever physical file (metadata or data volume) that is associated with f.
bestie. there is NO checking. it is not going to catch you. it is not going to warn you. the record format has to be correct AND it has to match the semantics of whatever physical file β metadata or data volume β is hanging out with f. so like, know what you're doing π
π₯ DIAGNOSTICS AND RETURN VALUES π₯
The return value is 0 if all is well, else some error code less than zero. slay when it's 0, and when it's notβ¦ it's negative, that's the whole diagnostic. no extra lore π
π SEE ALSO π
pmaGetLog(3)β the other one, go look at itPMAPI(3)β the big one
okay that's the whole page, you ate that π Performance Co-Pilot, PCP, and this little PMAPUTLOG(3) moment β mwah, bye bestie πβ¨πΈπ¦π
π«Ά
π¦ 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-archive1-dev 7.1.1-1
- ubuntu stonking: libpcp-archive1-dev 7.2.1-2build1
- Copyright (c) 2022 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