Spdk/module/bdev/ocf/stats.h
Amir Haroush 6b79f76769 bdev/ocf: add bdev_ocf_reset_stats RPC
Signed-off-by: Amir Haroush <amir.haroush@huawei.com>
Signed-off-by: Shai Fultheim <shai.fultheim@huawei.com>
Change-Id: Ife91df62099e14d328a767b1bbb3ddd3ded57264
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17916
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
2023-05-04 14:05:43 +00:00

25 lines
633 B
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright (C) 2018 Intel Corporation.
* 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;
};
int vbdev_ocf_stats_get(ocf_cache_t cache, char *core_name, struct vbdev_ocf_stats *stats);
int vbdev_ocf_stats_reset(ocf_cache_t cache, char *core_name);
void vbdev_ocf_stats_write_json(struct spdk_json_write_ctx *w, struct vbdev_ocf_stats *stats);
#endif