summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorNadav Amit <namit@vmware.com>2018-09-20 20:30:17 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-09-25 21:11:42 +0300
commitc7b3690fb1522b926557e59c6581ce849bcf9947 (patch)
tree28df417cdcd5c906215170468c470ba2d8d07ffb /crypto
parent0395be3ece114cda496dafd1fb337288c8305e7b (diff)
downloadlinux-c7b3690fb1522b926557e59c6581ce849bcf9947.tar.xz
vmw_balloon: stats rework
To allow the balloon statistics to be updated concurrently, we change the statistics to be held per core and aggregate it when needed. To avoid the memory overhead of keeping the statistics per core, and since it is likely not used by most users, we start updating the statistics only after the first use. A read-write semaphore is used to protect the statistics initialization and avoid races. This semaphore is (and will) be used to protect configuration changes during reset. While we are at it, address some other issues: change the statistics update to inline functions instead of define; use ulong for saving the statistics; and clean the statistics printouts. Note that this patch changes the format of the outputs. If there are any automatic tools that use the statistics, they might fail. Reviewed-by: Xavier Deguillard <xdeguillard@vmware.com> Signed-off-by: Nadav Amit <namit@vmware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions