Motr  M0
stats_fops.c File Reference
#include "lib/trace.h"
#include "lib/assert.h"
#include "lib/memory.h"
#include "rpc/item.h"
#include "fop/fop_item_type.h"
#include "rpc/rpc_opcodes.h"
#include "fop/fop.h"
#include "stats/stats_srv.h"
#include "stats/stats_fops_xc.h"
Include dependency graph for stats_fops.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_STATS
 

Functions

M0_INTERNAL int m0_stats_fops_init (void)
 
M0_INTERNAL void m0_stats_fops_fini (void)
 
M0_INTERNAL struct m0_stats_update_fopm0_stats_update_fop_get (struct m0_fop *fop)
 
M0_INTERNAL struct m0_stats_query_fopm0_stats_query_fop_get (struct m0_fop *fop)
 
M0_INTERNAL struct m0_stats_query_rep_fopm0_stats_query_rep_fop_get (struct m0_fop *fop)
 
M0_INTERNAL void m0_stats_query_fop_release (struct m0_ref *ref)
 

Variables

struct m0_sm_state_descr stats_update_phases []
 
const struct m0_sm_conf stats_update_fom_sm_conf
 
struct m0_sm_state_descr stats_query_phases []
 
const struct m0_sm_conf stats_query_fom_sm_conf
 
const struct m0_fom_type_ops stats_update_fom_type_ops
 
const struct m0_fom_type_ops stats_query_fom_type_ops
 
struct m0_fop_type m0_fop_stats_update_fopt
 
struct m0_fop_type m0_fop_stats_query_fopt
 
struct m0_fop_type m0_fop_stats_query_rep_fopt
 
static const struct m0_rpc_item_type_ops stats_update_item_type_ops
 
static const struct m0_rpc_item_type_ops stats_query_item_type_ops
 
const struct m0_fop_type_ops stats_update_fop_ops
 
const struct m0_fop_type_ops stats_query_fop_ops
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_STATS

Definition at line 23 of file stats_fops.c.

Variable Documentation

◆ stats_query_fom_sm_conf

const struct m0_sm_conf stats_query_fom_sm_conf
Initial value:
= {
.scf_name = "stats-query-fom-sm",
.scf_nr_states = ARRAY_SIZE(stats_query_phases),
.scf_state = stats_query_phases
}
struct m0_sm_state_descr stats_query_phases[]
Definition: stats_srv.c:555
#define ARRAY_SIZE(a)
Definition: misc.h:45

Definition at line 562 of file stats_srv.c.

◆ stats_query_fom_type_ops

const struct m0_fom_type_ops stats_query_fom_type_ops
Initial value:
= {
.fto_create = stats_query_fom_create,
}
static int stats_query_fom_create(struct m0_fop *fop, struct m0_fom **out, struct m0_reqh *reqh)
Definition: stats_srv.c:617

Stats update FOP type operation vector.

Definition at line 551 of file stats_srv.c.

◆ stats_query_fop_ops

const struct m0_fop_type_ops stats_query_fop_ops

Definition at line 54 of file stats_fops.c.

◆ stats_query_item_type_ops

const struct m0_rpc_item_type_ops stats_query_item_type_ops
static
Initial value:
= {
}
#define M0_FOP_DEFAULT_ITEM_TYPE_OPS
Definition: fop.h:184

Definition at line 49 of file stats_fops.c.

◆ stats_query_phases

struct m0_sm_state_descr stats_query_phases[]

Definition at line 555 of file stats_srv.c.

◆ stats_update_fom_sm_conf

const struct m0_sm_conf stats_update_fom_sm_conf
Initial value:
= {
.scf_name = "stats-update-fom-sm",
.scf_nr_states = ARRAY_SIZE(stats_update_phases),
.scf_state = stats_update_phases
}
struct m0_sm_state_descr stats_update_phases[]
Definition: stats_srv.c:343
#define ARRAY_SIZE(a)
Definition: misc.h:45

Definition at line 360 of file stats_srv.c.

◆ stats_update_fom_type_ops

const struct m0_fom_type_ops stats_update_fom_type_ops
Initial value:
= {
.fto_create = stats_update_fom_create,
}
static int stats_update_fom_create(struct m0_fop *fop, struct m0_fom **out, struct m0_reqh *reqh)
Definition: stats_srv.c:458

Stats update FOP type operation vector.

Definition at line 339 of file stats_srv.c.

◆ stats_update_fop_ops

const struct m0_fop_type_ops stats_update_fop_ops

Definition at line 53 of file stats_fops.c.

◆ stats_update_item_type_ops

const struct m0_rpc_item_type_ops stats_update_item_type_ops
static
Initial value:
= {
}
#define M0_FOP_DEFAULT_ITEM_TYPE_OPS
Definition: fop.h:184

Definition at line 45 of file stats_fops.c.

◆ stats_update_phases

struct m0_sm_state_descr stats_update_phases[]

Definition at line 343 of file stats_srv.c.