MMV_INC_VALUE(3) Library Functions Manual MMV_INC_VALUE(3)
mmv_inc_value - update a value in a Memory Mapped Value file
#include <pcp/pmapi.h> #include <pcp/mmv_stats.h> void mmv_inc_value(void *addr, pmAtomValue *val, double inc); cc ... -lpcp_mmv -lpcp
mmv_inc_value provides a convenient way of updating a value returned by the mmv_lookup_value_desc. addr is the address returned from mmv_stats_init(). The value of the inc is internally cast to match the type of the metric and then added to the previous value of the metric.
mmv_stats_init(3), mmv_lookup_value_desc(3) and mmv(5).
This page is part of the PCP (Performance Co-Pilot) project. Information about the project can be found at ⟨http://www.pcp.io/⟩. If you have a bug report for this manual page, send it to email@example.com. This page was obtained from the project's upstream Git repository ⟨git://git.pcp.io/pcp⟩ on 2017-04-25. If you discover any rendering problems in this HTML version of the page, or you believe there is a better or more up-to-date source for the page, or you have corrections or improvements to the information in this COLOPHON (which is not part of the original manual page), send a mail to firstname.lastname@example.org Performance Co-Pilot MMV_INC_VALUE(3)
Pages that refer to this page: mmv_lookup_value_desc(3), mmv_stats_init(3)