Motr  M0
cnt.c File Reference
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <err.h>
#include <math.h>
#include "motr/magic.h"
#include "desim/sim.h"
#include "desim/cnt.h"
Include dependency graph for cnt.c:

Go to the source code of this file.

Functions

 M0_TL_DESCR_DEFINE (cnts, "counters", static, struct cnt, c_linkage, c_magic, M0_DESIM_CNT_MAGIC, M0_DESIM_CNTS_HEAD_MAGIC)
 
 M0_TL_DEFINE (cnts, static, struct cnt)
 
M0_INTERNAL void cnt_init (struct cnt *cnt, struct cnt *parent, const char *format,...)
 
M0_INTERNAL void cnt_dump (struct cnt *cnt)
 
M0_INTERNAL void cnt_dump_all (void)
 
M0_INTERNAL void cnt_fini (struct cnt *cnt)
 
M0_INTERNAL void cnt_mod (struct cnt *cnt, cnt_t val)
 
M0_INTERNAL void cnt_global_init (void)
 
M0_INTERNAL void cnt_global_fini (void)
 

Variables

static struct m0_tl cnts