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