2022-06-03 19:15:11 +00:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause
|
2022-11-01 20:26:26 +00:00
|
|
|
* Copyright (C) 2018 Intel Corporation.
|
2018-12-28 18:59:40 +00:00
|
|
|
* All rights reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef VBDEV_OCF_STATS_H
|
|
|
|
#define VBDEV_OCF_STATS_H
|
|
|
|
|
|
|
|
#include "spdk/json.h"
|
|
|
|
#include <ocf/ocf.h>
|
|
|
|
|
|
|
|
struct vbdev_ocf_stats {
|
|
|
|
struct ocf_stats_usage usage;
|
|
|
|
struct ocf_stats_requests reqs;
|
|
|
|
struct ocf_stats_blocks blocks;
|
|
|
|
struct ocf_stats_errors errors;
|
|
|
|
};
|
|
|
|
|
2020-04-09 15:05:08 +00:00
|
|
|
int vbdev_ocf_stats_get(ocf_cache_t cache, char *core_name, struct vbdev_ocf_stats *stats);
|
2018-12-28 18:59:40 +00:00
|
|
|
|
|
|
|
void vbdev_ocf_stats_write_json(struct spdk_json_write_ctx *w, struct vbdev_ocf_stats *stats);
|
|
|
|
|
|
|
|
#endif
|