Open CAS Framework
Open source framework of Cache Acceleration Software
|
OCF API for updating and reseting statistics. More...
Go to the source code of this file.
Data Structures | |
struct | ocf_stat |
struct | ocf_stats_usage |
Usage statistics in 4 KiB unit. More... | |
struct | ocf_stats_requests |
Requests statistcs. More... | |
struct | ocf_stats_blocks |
Block statistics. More... | |
struct | ocf_stats_errors |
Errors statistics. More... | |
Functions | |
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) |
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) |
void | ocf_core_stats_initialize (ocf_core_t core) |
Initialize or reset core statistics. More... | |
void | ocf_core_stats_initialize_all (ocf_cache_t cache) |
Initialize or reset statistics of all cores in cache. More... | |
OCF API for updating and reseting statistics.
This file contains routines pertaining to manipulation of OCF IO statistics.
void ocf_core_stats_initialize | ( | ocf_core_t | core | ) |
Initialize or reset core statistics.
Initialize or reset counters used for statistics.
[in] | core | Core handle |
void ocf_core_stats_initialize_all | ( | ocf_cache_t | cache | ) |
Initialize or reset statistics of all cores in cache.
Initialize or reset counters used for statistics.
[in] | cache | Cache handle |
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 | ||
) |
Collect | statistics for given cache |
cache | Cache instance for which statistics will be collected |
usage | Usage statistics |
req | Request statistics |
blocks | Blocks statistics |
errors | Errors statistics |
0 | Success |
Non-zero | Error |
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 | ||
) |
Collect | statistics for given core |
core | Core for which statistics will be collected |
usage | Usage statistics |
req | Request statistics |
blocks | Blocks statistics |
errors | Errors statistics |
0 | Success |
Non-zero | Error |
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 | ||
) |
Collect | statistics for given ioclass |
cache | Cache instance for which statistics will be collected |
part_id | Ioclass id for which statistics will be collected |
usage | Usage statistics |
req | Request statistics |
blocks | Blocks statistics |
0 | Success |
Non-zero | Error |
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 | ||
) |
Collect | statistics for given ioclass |
core | Core handle for which statistics will be collected |
part_id | Ioclass id for which statistics will be collected |
usage | Usage statistics |
req | Request statistics |
blocks | Blocks statistics |
0 | Success |
Non-zero | Error |