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

NAME

6       mmv_inc,  mmv_inc_value, mmv_inc_atomvalue - update a value in a Memory
7       Mapped Value file
8

C SYNOPSIS

10       #include <pcp/pmapi.h>
11       #include <pcp/mmv_stats.h>
12
13       void mmv_inc_value(void *addr, pmAtomValue *av, double inc);
14       void mmv_inc_atomvalue(void *addr, pmAtomValue *av, pmAtomValue *inc);
15
16       cc ... -lpcp_mmv -lpcp
17

DESCRIPTION

19       mmv_inc_value and mmv_inc_atomvalue provide convenient ways of updating
20       a  metric av previously returned by the mmv_lookup_value_desc(3) inter‐
21       face.  addr is the address returned from mmv_stats_init(3).
22
23       These interfaces are most commonly used with counter type metrics.  Re‐
24       fer  to  mmv_set_value(3)  for  a mechanism suited to instantaneous and
25       discrete metrics.
26
27       With mmv_inc_atomvalue the value provided  via  the  inc  pointer  must
28       match  the  type of the metric, and will be added to the previous value
29       of the metric.
30
31       In the case of mmv_inc_value the value of inc  is  internally  cast  to
32       match  the  type  of the metric and then added to the previous value of
33       the metric.
34

SEE ALSO

36       mmv_set_value(3),   mmv_stats_init(3),   mmv_lookup_value_desc(3)   and
37       mmv(5).
38
39
40
41Performance Co-Pilot                                          MMV_INC_VALUE(3)
Impressum