Lines Matching refs:stats

10 vbdev_ocf_stats_get(ocf_cache_t cache, char *core_name, struct vbdev_ocf_stats *stats)  in vbdev_ocf_stats_get()  argument
20 return ocf_stats_collect_core(core, &stats->usage, &stats->reqs, &stats->blocks, &stats->errors); in vbdev_ocf_stats_get()
39 #define WJSON_STAT(w, stats, group, field, units) \ argument
41 spdk_json_write_named_uint64(w, "count", stats->group.field.value); \
43 stats->group.field.fraction / 100, stats->group.field.fraction % 100); \
48 vbdev_ocf_stats_write_json(struct spdk_json_write_ctx *w, struct vbdev_ocf_stats *stats) in vbdev_ocf_stats_write_json() argument
53 WJSON_STAT(w, stats, usage, occupancy, "4KiB blocks"); in vbdev_ocf_stats_write_json()
54 WJSON_STAT(w, stats, usage, free, "4KiB blocks"); in vbdev_ocf_stats_write_json()
55 WJSON_STAT(w, stats, usage, clean, "4KiB blocks"); in vbdev_ocf_stats_write_json()
56 WJSON_STAT(w, stats, usage, dirty, "4KiB blocks"); in vbdev_ocf_stats_write_json()
60 WJSON_STAT(w, stats, reqs, rd_hits, "Requests"); in vbdev_ocf_stats_write_json()
61 WJSON_STAT(w, stats, reqs, rd_partial_misses, "Requests"); in vbdev_ocf_stats_write_json()
62 WJSON_STAT(w, stats, reqs, rd_full_misses, "Requests"); in vbdev_ocf_stats_write_json()
63 WJSON_STAT(w, stats, reqs, rd_total, "Requests"); in vbdev_ocf_stats_write_json()
64 WJSON_STAT(w, stats, reqs, wr_hits, "Requests"); in vbdev_ocf_stats_write_json()
65 WJSON_STAT(w, stats, reqs, wr_partial_misses, "Requests"); in vbdev_ocf_stats_write_json()
66 WJSON_STAT(w, stats, reqs, wr_full_misses, "Requests"); in vbdev_ocf_stats_write_json()
67 WJSON_STAT(w, stats, reqs, wr_total, "Requests"); in vbdev_ocf_stats_write_json()
68 WJSON_STAT(w, stats, reqs, rd_pt, "Requests"); in vbdev_ocf_stats_write_json()
69 WJSON_STAT(w, stats, reqs, wr_pt, "Requests"); in vbdev_ocf_stats_write_json()
70 WJSON_STAT(w, stats, reqs, serviced, "Requests"); in vbdev_ocf_stats_write_json()
71 WJSON_STAT(w, stats, reqs, total, "Requests"); in vbdev_ocf_stats_write_json()
75 WJSON_STAT(w, stats, blocks, core_volume_rd, "4KiB blocks"); in vbdev_ocf_stats_write_json()
76 WJSON_STAT(w, stats, blocks, core_volume_wr, "4KiB blocks"); in vbdev_ocf_stats_write_json()
77 WJSON_STAT(w, stats, blocks, core_volume_total, "4KiB blocks"); in vbdev_ocf_stats_write_json()
78 WJSON_STAT(w, stats, blocks, cache_volume_rd, "4KiB blocks"); in vbdev_ocf_stats_write_json()
79 WJSON_STAT(w, stats, blocks, cache_volume_wr, "4KiB blocks"); in vbdev_ocf_stats_write_json()
80 WJSON_STAT(w, stats, blocks, cache_volume_total, "4KiB blocks"); in vbdev_ocf_stats_write_json()
81 WJSON_STAT(w, stats, blocks, volume_rd, "4KiB blocks"); in vbdev_ocf_stats_write_json()
82 WJSON_STAT(w, stats, blocks, volume_wr, "4KiB blocks"); in vbdev_ocf_stats_write_json()
83 WJSON_STAT(w, stats, blocks, volume_total, "4KiB blocks"); in vbdev_ocf_stats_write_json()
87 WJSON_STAT(w, stats, errors, core_volume_rd, "Requests"); in vbdev_ocf_stats_write_json()
88 WJSON_STAT(w, stats, errors, core_volume_wr, "Requests"); in vbdev_ocf_stats_write_json()
89 WJSON_STAT(w, stats, errors, core_volume_total, "Requests"); in vbdev_ocf_stats_write_json()
90 WJSON_STAT(w, stats, errors, cache_volume_rd, "Requests"); in vbdev_ocf_stats_write_json()
91 WJSON_STAT(w, stats, errors, cache_volume_wr, "Requests"); in vbdev_ocf_stats_write_json()
92 WJSON_STAT(w, stats, errors, cache_volume_total, "Requests"); in vbdev_ocf_stats_write_json()
93 WJSON_STAT(w, stats, errors, total, "Requests"); in vbdev_ocf_stats_write_json()