diff options
author | Yury Norov <[email protected]> | 2023-01-20 20:24:30 -0800 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-02-07 18:20:00 -0800 |
commit | cd7f55359c90a4108e6528e326b8623fce1ad72a (patch) | |
tree | ee6f3686234c12a3cc9e1685dd375753b08e810b /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | 62f4386e564d31c7d0ed7d835843e2685f99ae71 (diff) |
sched: add sched_numa_find_nth_cpu()
The function finds Nth set CPU in a given cpumask starting from a given
node.
Leveraging the fact that each hop in sched_domains_numa_masks includes the
same or greater number of CPUs than the previous one, we can use binary
search on hops instead of linear walk, which makes the overall complexity
of O(log n) in terms of number of cpumask_weight() calls.
Signed-off-by: Yury Norov <[email protected]>
Acked-by: Tariq Toukan <[email protected]>
Reviewed-by: Jacob Keller <[email protected]>
Reviewed-by: Peter Lafreniere <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions