PMIUSECONTEXT(3)
π PMIUSECONTEXT(3) π
okay so bestie, welcome to pmiUseContext β a lil function from the Library Functions Manual that lets you hop between LOGIMPORT contexts like it's nothing. switching vibes, switching archives, main character energy only π
β¨ NAME β¨
pmiUseContext β change LOGIMPORT context
no cap, that's the whole job. it changes your context. that's it. that's the function. π
πΈ C SYNOPSIS πΈ
#include <pcp/pmapi.h>
#include <pcp/import.h>
int pmiUseContext(int context);
cc ... -lpcp_import -lpcp
π¦ Perl SYNOPSIS π¦
use PCP::LogImport;
pmiUseContext($context);
β¨ DESCRIPTION β¨
So here's the tea π: as part of the Performance Co-Pilot Log Import API (peep LOGIMPORT(3) for the full lore), pmiUseContext is the one you call when you're an application that wants to generate more than one PCP archive at the same time. concurrently. simultaneously. multitasking icon behavior π
The context argument is a value returned from a previous call to pmiStart(3) β like, you don't just make it up, bestie, it comes from pmiStart(3), okay? And on a successful return from pmiUseContext, the current context will have been changed to the one identified by context. boom. switched. new context, who dis π
β¨
π DIAGNOSTICS π
pmiUseContext returns zero on success. slay. π
Otherwise? it returns a negative value π which you can turn into an actual error message by calling pmiErrStr(3). so like, don't just sit there staring at a negative number, go get the real tea from pmiErrStr(3).
π SEE ALSO π
that's the whole page fr fr π«Ά go forth and switch contexts responsibly, and remember: Performance Co-Pilot made this, it lives at PMIUSECONTEXT(3), and it's giving iconic library-manual energy. 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) 2010 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