1PMIUSECONTEXT(3) Library Functions Manual PMIUSECONTEXT(3)
2
3
4
6 pmiUseContext - change LOGIMPORT context
7
9 #include <pcp/pmapi.h>
10 #include <pcp/impl.h>
11 #include <pcp/import.h>
12
13 int pmiUseContext(int context);
14
15 cc ... -lpcp_import -lpcp
16
18 use PCP::LogImport;
19
20 pmiUseContext($context);
21
23 As part of the Performance Co-Pilot Log Import API (see LOGIMPORT(3)),
24 pmiUseContext may be used by applications wishing to generate more than
25 one PCP archive concurrently.
26
27 The context argument is a value returned from a previous call to
28 pmStart(3) and on successful return from pmiUseContext, the current
29 context will have been changed to the one identified by context.
30
32 pmiUseContext returns zero on success else a negative value that can be
33 turned into an error message by calling pmiErrStr(3).
34
36 LOGIMPORT(3), pmiErrStr(3) and pmiStart(3).
37
38
39
40Performance Co-Pilot PMIUSECONTEXT(3)