Unify inactive cores stats.

Inactive core stats should be caluculated and returned to adapter in unified
from, just like all stats are.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
Michal Mielewczyk
2019-09-12 05:11:47 -04:00
parent 494a1ccc79
commit f226f978f0
2 changed files with 23 additions and 4 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;