summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorTamir Duberstein <tamird@gmail.com>2024-11-02 15:09:48 +0300
committerShuah Khan <skhan@linuxfoundation.org>2025-01-15 00:56:49 +0300
commit56530007cac0630140a0846dd6110d60105a58ac (patch)
tree7924e4d81d10e6b90e111fce40ffd56bbc652d73 /scripts/gdb/linux/utils.py
parent875aec2357cd22d412226e4134d1106248b0eb9d (diff)
downloadlinux-56530007cac0630140a0846dd6110d60105a58ac.tar.xz
kunit: add fallback for os.sched_getaffinity
Python 3.13 added os.process_cpu_count as a cross-platform alternative for the Linux-only os.sched_getaffinity. Use it when it's available and provide a fallback when it's not. This allows kunit to run on macOS. Signed-off-by: Tamir Duberstein <tamird@gmail.com> Reviewed-by: David Gow <davidgow@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions