]> sourceware.org Git - lvm2.git/commit
libdm: add aggregation support to dm_stats_get_histogram()
authorBryn M. Reeves <bmr@redhat.com>
Sun, 3 Jul 2016 20:59:31 +0000 (21:59 +0100)
committerBryn M. Reeves <bmr@redhat.com>
Fri, 8 Jul 2016 16:27:52 +0000 (17:27 +0100)
commitae9cffba5297e3b3f5c5ea69469188fbfae07b0e
tree466dcd9663629903e7624b7d4de2e6537b661343
parentd901468a273327b78207e60fde2ab5f8c3a6cbc7
libdm: add aggregation support to dm_stats_get_histogram()

Support aggregate group and region histograms by allocating a new
histogram from the pool and populating it with a sum of the histogram
data for the areas contained in the region or group.

To avoid repeatedly summing the same histogram data, cache the pointer
in the group and regions structs for subsequent access. The aggregate
histograms are allocated from the same pool as the area histograms in
the corresponding handle and will be discarded at each list or populate
operation.
libdm/libdm-stats.c
This page took 0.036442 seconds and 5 git commands to generate.