summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorSeongJae Park <sj@kernel.org>2025-02-26 01:23:33 +0300
committerAndrew Morton <akpm@linux-foundation.org>2025-03-06 08:36:16 +0300
commit582ccf78f6090d88b1c7066b1e90b3d9ec952d08 (patch)
tree9ceb2d1ecfc9e55f4e2cd96d735155e082dbf44a /tools/perf/scripts/python/task-analyzer.py
parent695469c07a65547acb6e229b3fdf6aaa881817e3 (diff)
downloadlinux-582ccf78f6090d88b1c7066b1e90b3d9ec952d08.tar.xz
selftests/damon/damon_nr_regions: sort collected regiosn before checking with min/max boundaries
damon_nr_regions.py starts DAMON, periodically collect number of regions in snapshots, and see if it is in the requested range. The check code assumes the numbers are sorted on the collection list, but there is no such guarantee. Hence this can result in false positive test success. Sort the list before doing the check. Link: https://lkml.kernel.org/r/20250225222333.505646-4-sj@kernel.org Fixes: 781497347d1b ("selftests/damon: implement test for min/max_nr_regions") Signed-off-by: SeongJae Park <sj@kernel.org> Cc: Shuah Khan <shuah@kernel.org> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions