13 #ifndef __OCF_STATS_H__ 14 #define __OCF_STATS_H__ struct ocf_cache * ocf_cache_t
handle to object designating ocf cache device
Definition: ocf_types.h:44
int ocf_stats_collect_part_core(ocf_core_t core, ocf_part_id_t part_id, struct ocf_stats_usage *usage, struct ocf_stats_requests *req, struct ocf_stats_blocks *blocks)
int ocf_stats_collect_part_cache(ocf_cache_t cache, ocf_part_id_t part_id, struct ocf_stats_usage *usage, struct ocf_stats_requests *req, struct ocf_stats_blocks *blocks)
uint16_t ocf_part_id_t
partition id type (by default designated as 16 bit unsigned integer)
Definition: ocf_types.h:33
Block statistics.
Definition: ocf_stats.h:111
void ocf_core_stats_initialize_all(ocf_cache_t cache)
Initialize or reset statistics of all cores in cache.
Errors statistics.
Definition: ocf_stats.h:143
uint64_t fraction
Definition: ocf_stats.h:23
int ocf_stats_collect_cache(ocf_cache_t cache, struct ocf_stats_usage *usage, struct ocf_stats_requests *req, struct ocf_stats_blocks *blocks, struct ocf_stats_errors *errors)
int ocf_stats_collect_core(ocf_core_t core, struct ocf_stats_usage *usage, struct ocf_stats_requests *req, struct ocf_stats_blocks *blocks, struct ocf_stats_errors *errors)
void ocf_core_stats_initialize(ocf_core_t core)
Initialize or reset core statistics.
Definition: ocf_stats.h:19
struct ocf_core * ocf_core_t
handle to object designating ocf core object
Definition: ocf_types.h:50
Requests statistcs.
Definition: ocf_stats.h:74
Usage statistics in 4 KiB unit.
Definition: ocf_stats.h:41
uint64_t value
Definition: ocf_stats.h:21