summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorUsama Arif <usama.arif@linux.dev>2026-09-21 11:59:11 -0700
committerTejun Heo <tj@kernel.org>2026-09-21 09:12:04 -1000
commitdaaab0f42e2eec54a8fe585b2fa3f5408a9b3585 (patch)
treedb617953ade6e945861d27b732540f7674210a5e /tools/perf/scripts/python/bin
parente4c5ba819d3ce8c146a3a2d68f507e1845fdaafb (diff)
sched_ext: Specialize the TID hashtable compare
scx_tid_hash_params does not provide an object comparison function, so rhashtable falls back to rhashtable_compare(). Although the key is one naturally aligned u64, the generic comparison reads the key offset and length from the table parameters at runtime and emits an out-of-line memcmp() for each element walked. scx_bpf_tid_to_task() can sit on hot scheduling paths. Supply an obj_cmpfn so the const parameters passed into the inlined rhashtable lookup specialize the comparison to a single equality test against scx->tid. The result is only tested against zero, so the ordering provided by memcmp() is not observable. No functional change intended. Suggested-by: Tejun Heo <tj@kernel.org> Signed-off-by: Usama Arif <usama.arif@linux.dev> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions