Motr  M0
histogram.c File Reference
#include "lib/trace.h"
#include "addb2/histogram.h"
#include "addb2/internal.h"
Include dependency graph for histogram.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_ADDB
 

Functions

void m0_addb2_hist_add (struct m0_addb2_hist *hist, int64_t min, int64_t max, uint64_t label, int idx)
 
void m0_addb2_hist_add_auto (struct m0_addb2_hist *hist, int skip, uint64_t label, int idx)
 
void m0_addb2_hist_del (struct m0_addb2_hist *hist)
 
void m0_addb2_hist_mod (struct m0_addb2_hist *hist, int64_t val)
 
void m0_addb2_hist_mod_with (struct m0_addb2_hist *hist, int64_t val, uint64_t datum)
 
int m0_addb2_hist_bucket (const struct m0_addb2_hist *hist, int64_t val)
 
static void hist_snapshot (struct m0_addb2_sensor *s, uint64_t *area)
 
static void hist_fini (struct m0_addb2_sensor *s)
 

Variables

static const struct m0_addb2_sensor_ops hist_ops