diff options
author | Yury Norov <yury.norov@gmail.com> | 2022-09-20 00:05:53 +0300 |
---|---|---|
committer | Yury Norov <yury.norov@gmail.com> | 2022-10-01 20:22:58 +0300 |
commit | 78e5a3399421ad79fc024e6d78e2deb7809d26af (patch) | |
tree | 300d0095c49837a9b1e74417dd58d75660c46730 /tools/perf/scripts/python/check-perf-trace.py | |
parent | 8173aa26260e6d0153db0c7135d41a4da612da5b (diff) | |
download | linux-78e5a3399421ad79fc024e6d78e2deb7809d26af.tar.xz |
cpumask: fix checking valid cpu range
The range of valid CPUs is [0, nr_cpu_ids). Some cpumask functions are
passed with a shifted CPU index, and for them, the valid range is
[-1, nr_cpu_ids-1). Currently for those functions, we check the index
against [-1, nr_cpu_ids), which is wrong.
Signed-off-by: Yury Norov <yury.norov@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions