This patchset implements QMP metrics for the qcow2 deduplication. It applies on top of the "QCOW2 deduplication core functionality" patchset.
Benoît Canet (14): qcow2: Add deduplication metrics structures. qcow2: Initialize deduplication metrics. qcow2: Collect unaligned writes missing data reads metric. qcow2: Collect deduplicated cluster metric. qcow2: Collect undeduplicated cluster metric. qcow2: Count QCowHashNode creation metrics. qcow2: Count QCowHashNode removal from tree for metrics. qcow2: Count cluster deleted metric qcow2: Count deduplication refcount overflow metric. qapi: Add support for deduplication infos in qapi-schema.json. block: Add deduplication metrics to BlockDriverInfo. qcow2: Add qcow2_dedup_update_metrics to compute dedup RAM usage. qcow2: returns deduplication metrics and status via bdrv_get_info() qapi: Return virtual block device deduplication metrics in QMP block.c | 36 ++++++++++++++++++++++++++++++++++++ block/qcow2-dedup.c | 36 ++++++++++++++++++++++++++++++++---- block/qcow2.c | 4 ++++ block/qcow2.h | 4 +++- include/block/block.h | 14 ++++++++++++++ qapi-schema.json | 40 +++++++++++++++++++++++++++++++++++++++- 6 files changed, 128 insertions(+), 6 deletions(-) -- 1.7.10.4