1MMV_LOOKUP_VALUE_DESC(3) Library Functions Manual MMV_LOOKUP_VALUE_DESC(3)
2
3
4
6 mmv_lookup_value_desc - find a value in the Memory Mapped Value file
7
9 #include <pcp/pmapi.h> #include <pcp/mmv_stats.h>
10
11 pmAtomValue *
12 mmv_lookup_value_desc(void *addr, const char *metric, const char *inst);
13
14 cc ... -lpcp_mmv -lpcp
15
17 mmv_lookup_value_desc searches for the value of the instance identified
18 by the external instance name inst of the metric metric in the MMV(4)
19 file. addr is the address returned from mmv_stats_init().
20
21 The pointer returned points to a pmAtomValue union, which is defined as
22 follows:
23
24 typedef union {
25 __int32_t l; /* 32-bit signed */
26 __uint32_t ul; /* 32-bit unsigned */
27 __int64_t ll; /* 64-bit signed */
28 __uint64_t ull; /* 64-bit unsigned */
29 float f; /* 32-bit floating point */
30 double d; /* 64-bit floating point */
31 char *cp; /* char ptr */
32 void *vp; /* void ptr */
33 } pmAtomValue;
34
35 MMV string values should be set using either of the mmv_set_string or
36 mmv_set_strlen routines.
37
39 The function returns the address inside of the memory mapped region on
40 success or NULL on failure.
41
43 mmv_stats_init(3), mmv_inc_value(3) and BR mmv (4).
44
45
46
47Performance Co-Pilot MMV_LOOKUP_VALUE_DESC(3)