aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2024-01-11 16:04:26 +0000
committerDavid Sterba <[email protected]>2024-05-07 21:31:03 +0200
commit071533da5f2e7623089e69252bd949610d6c8194 (patch)
tree42e9b8a06a5661d45fd01dd9356dcb29888150d4 /tools/perf/scripts/python/event_analyzing_sample.py
parent0a308f8095f74c732e055c3d9f897d56e8ed6e82 (diff)
btrfs: tests: error out on unexpected extent map reference count
In the extent map self tests, when freeing all extent maps from a test extent map tree we are not expecting to find any extent map with a reference count different from 1 (the tree reference). If we find any, we just log a message but we don't fail the test, which makes it very easy to miss any bug/regression - no one reads the test messages unless a test fails. So change the behaviour to make a test fail if we find an extent map in the tree with a reference count different from 1. Make the failure happen only after removing all extent maps, so that we don't leak memory. Reviewed-by: Qu Wenruo <[email protected]> Reviewed-by: Josef Bacik <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions