diff options
| author | Changwoo Min <changwoo@igalia.com> | 2026-04-29 11:23:18 +0300 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-04-29 11:44:34 +0300 |
| commit | ee8391ba11644fd3dce6e22ece54725a1bb5b50e (patch) | |
| tree | 2b0b0379bbe3ccf918883b56b8e907c4fa17ff88 /include/linux/debugobjects.h | |
| parent | 78683079ca6d91392e84ed313e15bb330d7da851 (diff) | |
| download | linux-ee8391ba11644fd3dce6e22ece54725a1bb5b50e.tar.xz | |
sched_ext: Expose exit_cpu to BPF and userspace
Extend struct user_exit_info with an exit_cpu field so BPF schedulers
and the userspace report path can see the CPU that triggered the exit,
matching the kernel-side dump.
UEI_RECORD() defaults the field to -1 before the CO-RE-gated copy so
that running against an older kernel without exit_cpu stays
distinguishable from "exit happened on CPU 0".
UEI_REPORT() appends "on CPU N" to the EXIT line when the value is
valid, surfacing the most diagnostically useful piece of exit info to
any sched_ext userspace tool without needing to crack open the debug
dump.
Signed-off-by: Changwoo Min <changwoo@igalia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
