summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorYury Norov <ynorov@nvidia.com>2026-07-08 22:03:11 -0400
committerYury Norov <ynorov@nvidia.com>2026-07-22 15:38:38 -0400
commitbf7e3686b708683efe6b7ee79ae4c83a875dbc6f (patch)
tree3109fa4d1b1175d76a4846c6fa3295917f8eff98 /tools/perf/scripts/python
parente46185c13953500ed868751b944a96974eaca923 (diff)
bitmap: Return size when no zero area is found
Return the bitmap size, rather than size + 1, when bitmap_find_next_zero_area_off() cannot find a suitable area. This matches the conventional find_bit() failure sentinel and still lets callers detect failure with an out-of-range check. Document the public failure contract as a value greater than or equal to the bitmap size, without requiring callers to depend on the exact sentinel. Signed-off-by: Yury Norov <ynorov@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions