summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorTianyi Chen <hi@tychen.cc>2026-09-06 22:34:48 +0800
committerTejun Heo <tj@kernel.org>2026-09-09 07:52:05 -1000
commit46eb991947d45f7e3bf4fc9d9e3b1c3454627400 (patch)
tree2fa1723665454eee8e8e2a99cbbda5dad1c7bbd3 /tools/perf/scripts/python/export-to-sqlite.py
parentdec231d15736a22d4500628d9993aed4f3502c15 (diff)
selftests/sched_ext: Validate select_cpu_and mask constraints
The syscall test only prints the CPU selection result after checking whether BPF_PROG_TEST_RUN succeeds. Require -EBUSY for empty and affinity-disjoint custom masks, and allow a legal singleton candidate to be selected or busy. Reject unexpected errors and selections outside the custom mask or configured affinity. Check cpus_mask because migration disabling can temporarily narrow cpus_ptr under CONFIG_PREEMPT_RCU. Grow dynamically allocated affinity masks until sched_getaffinity() succeeds, retaining that allocation size for pinning and restoration. Restore affinity on all exits after pinning, and skip only the disjoint case when fewer than two CPUs are allowed. Assisted-by: LLM Signed-off-by: Tianyi Chen <hi@tychen.cc> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions