1PMINDOMSTR(3)              Library Functions Manual              PMINDOMSTR(3)
2
3
4

NAME

6       pmInDomStr  -  convert  a performance metric instance domain identifier
7       into a string
8

C SYNOPSIS

10       #include <pcp/pmapi.h>
11
12       const char *pmInDomStr(pmInDom indom)
13
14       cc ... -lpcp
15

DESCRIPTION

17       For use in error and diagnostic messages,  return  a  'human  readable'
18       version of the specified instance domain identifier.
19
20       The  value  for the instance domain indom is typically extracted from a
21       pmDesc structure, following a call to pmLookupDesc(3) for a  particular
22       performance metric.
23
24       Internally, an instance domain identifier is encoded as follows;
25
26            typedef struct {
27                int             pad:2;
28                unsigned int    domain:8;        /* the administrative PMD */
29                unsigned int    serial:22;       /* unique within PMD */
30            } __pmInDom_int;
31
32       pmInDomStr  returns  a  string  with each of the domain and serial sub‐
33       fields appearing as decimal numbers, separated by periods.
34
35       The string value is held in a single static  buffer,  so  the  returned
36       value is only valid until the next call to pmInDomStr.
37

PCP ENVIRONMENT

39       Environment variables with the prefix PCP_ are used to parameterize the
40       file and directory names used by PCP.  On each installation,  the  file
41       /etc/pcp.conf  contains  the  local  values  for  these variables.  The
42       $PCP_CONF variable may be used to specify an alternative  configuration
43       file,  as  described in pcp.conf(4).  Values for these variables may be
44       obtained programatically using the pmGetConfig(3) function.
45

SEE ALSO

47       PMAPI(3), pmGetConfig(3), pmIDStr(3), pmLookupDesc(3), pcp.conf(4)  and
48       pcp.env(4).
49
50
51
52Performance Co-Pilot                  SGI                        PMINDOMSTR(3)
Impressum