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

NAME

6       mmv_set,  mmv_set_value,  mmv_set_atomvalue  -  set 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_set(void *addr, pmAtomValue *av, void *val);
14       void mmv_set_value(void *addr, pmAtomValue *av, double val);
15       void mmv_set_atomvalue(void *addr, pmAtomValue *av, pmAtomValue *val);
16
17       cc ... -lpcp_mmv -lpcp
18

DESCRIPTION

20       mmv_set, mmv_set_value and mmv_set_atomvalue provide convenient ways of
21       directly  setting  a  value  for a metric av previously returned by the
22       mmv_lookup_value_desc(3) interface.  addr is the address returned  from
23       mmv_stats_init(3).
24
25       These  interfaces  are  typically  used with instantaneous and discrete
26       metrics.  Refer to mmv_inc_value(3) for a mechanism suited to monotonic
27       increasing counter metrics.
28
29       With  mmv_set  and  mmv_set_atomvalue  the  value  provided via the inc
30       pointer must match the type of the metric and will be used as  the  new
31       value of the metric.
32
33       In  the case of mmv_set and mmv_set_value, the pointer value val is in‐
34       ternally cast to match the type of the metric  and  then  used  as  the
35       value for the metric.
36

SEE ALSO

38       mmv_inc_value(3),   mmv_stats_init(3),   mmv_lookup_value_desc(3)   and
39       mmv(5).
40
41
42
43Performance Co-Pilot                                          MMV_SET_VALUE(3)
Impressum