Skip to contentSkip to conversation

master - dmstats: add histogram support

PATCH Bryn Reeves 1 participant 1 message Sep 2, 2015

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=3c0fc6f0dad6489c7530d3b844e6db3c9ac620cf
Commit:        3c0fc6f0dad6489c7530d3b844e6db3c9ac620cf
Parent:        a0cf3d47f1747d64a0d54027903ddea1c858793c
Author:        Bryn M. Reeves <[email protected]>
AuthorDate:    Tue Aug 18 12:40:03 2015 +0100
Committer:     Bryn M. Reeves <[email protected]>
CommitterDate: Wed Sep 2 21:02:12 2015 +0100

dmstats: add histogram support

Add support to dmstats to create and report histograms.

Add a --histogram switch to 'create' that accepts a string description of bin boundaries and DR_STATS and DR_STATS_META fields to report bin configuration and absolute and relative histogram values:

hist_bins
hist_bounds
hist_ranges
hist_count
hist_count_bounds
hist_count_ranges
hist_percent
hist_percent_bounds
hist_percent_ranges

A new 'histogram' subcommand displays a report that emphasizes histogram data as either counters or percentage values.

---
 WHATS_NEW_DM     |    2 +
 man/dmstats.8.in |  154 ++++++++++++++++++++++++++++++++++++++++
 tools/dmsetup.c  |  208 +++++++++++++++++++++++++++++++++++++++++++++++++++--
 3 files changed, 356 insertions(+), 8 deletions(-)
WHATS_NEW_DM +2 -0
index b361b3e..6852e61 100644
@@ -4,6 +4,8 @@ Version 1.02.107 -
 
 Version 1.02.106 - 26th August 2015
 ===================================
+  Add basic report fields for displaying latency histogram data.
+  Add dmstats --histogram to specify histogram boundaries for a region.
   Add public methods to libdm-stats to access numerical histogram data.
   Add the ability to parse histogram data into numeric form to libdm-stats.
   Add 'precise' column to statistics reports.
man/dmstats.8.in +154 -0

202 lines not on this page · raw message

tools/dmsetup.c +200 -8

312 lines not on this page · raw message