Merge pull request #260 from mmichal10/unify-inactive-cores-stats

Unify inactive cores stats
This commit is contained in:
Jan Musiał
2019-09-16 09:03:08 +02:00
committed by GitHub
6 changed files with 83 additions and 47 deletions

View File

@@ -16,6 +16,7 @@
#include "ocf_volume.h"
#include "ocf_ctx.h"
#include "ocf_def.h"
#include "ocf_stats.h"
/**
* @brief Cache info: configuration, status
@@ -32,10 +33,13 @@ struct ocf_cache_info {
/* Statistics of inactive cores */
struct {
uint32_t occupancy;
struct ocf_stat occupancy;
/*!< Cache occupancy (in cache lines) */
uint32_t dirty;
struct ocf_stat clean;
/*!< Clean blocks within cache (in cache lines) */
struct ocf_stat dirty;
/*!< Dirty blocks within cache (in cache lines) */
} inactive;