diff options
author | Stefan Raspl <stefan.raspl@de.ibm.com> | 2018-02-05 13:59:57 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-02-24 01:43:41 +0100 |
commit | 3df33a0f34a3883b6696bff8cc8fcda3c7444a62 (patch) | |
tree | d88cec5c5fde40902b5fdbb6b75ac4c89172b4ec /arch/arm64/Kconfig.platforms | |
parent | 369d5a85bb782ecf63c5bae9686c7e6104eea991 (diff) | |
download | op-kernel-dev-3df33a0f34a3883b6696bff8cc8fcda3c7444a62.zip op-kernel-dev-3df33a0f34a3883b6696bff8cc8fcda3c7444a62.tar.gz |
tools/kvm_stat: fix crash when filtering out all non-child trace events
When we apply a filter that will only leave child trace events, we
receive a ZeroDivisionError when calculating the percentages.
In that case, provide percentages based on child events only.
To reproduce, run 'kvm_stat -f .*[\(].*'.
Signed-off-by: Stefan Raspl <raspl@linux.vnet.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/arm64/Kconfig.platforms')
0 files changed, 0 insertions, 0 deletions