]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tools/sched_ext/include: Add missing helpers to common.bpf.h
authorTejun Heo <tj@kernel.org>
Sun, 8 Mar 2026 02:45:16 +0000 (16:45 -1000)
committerTejun Heo <tj@kernel.org>
Sun, 8 Mar 2026 08:45:12 +0000 (22:45 -1000)
commit3691d380d5ca8c847c716327aad73a07307ec9c4
tree4d9b89a47ba9836b0f5598fc6bcfd36d5aadd255
parent9c6437f7c2e848aea2469df3396f8365d06adbb0
tools/sched_ext/include: Add missing helpers to common.bpf.h

Sync several helpers from the scx repo:
- bpf_cgroup_acquire() ksym declaration
- __sink() macro for hiding values from verifier precision tracking
- ctzll() count-trailing-zeros implementation
- get_prandom_u64() helper
- scx_clock_task/pelt/virt/irq() clock helpers with get_current_rq()

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Andrea Righi <arighi@nvidia.com>
tools/sched_ext/include/scx/common.bpf.h