!43 bpf: sched: Introduce Scheduler BPF v3
Merge Pull Request from: @zhengzengkai This patchset aims to start a discussion about potential applications of BPF to the scheduler. It also aims to land some very basic BPF infrastructure necessary to add new BPF hooks to the scheduler, a minimal set of useful helpers, corresponding libbpf changes, etc. [Testing] kernel options: CONFIG_BPF_SCHED=y CONFIG_BPF_SYSCALL=y CONFIG_BPF_EVENTS=y Test passed with below step: 1.cd tools/testing/selftests/bpf & make 2.run cmd: ./test_progs -t test_sched 3.it will show like this: #./test_progs -t test_sched #113/1 sched_tgidpid_mode:OK #113/2 sched_cgid_mode:OK #113 test_sched:OK Summary: 1/2 PASSED, 0 SKIPPED, 0 FAILED Link:https://gitee.com/openeuler/kernel/pulls/43 Reviewed-by: Zucheng Zheng <zhengzucheng@huawei.com> Signed-off-by: Xie XiuQi <xiexiuqi@huawei.com>
Showing
include/linux/bpf_sched.h
0 → 100644
include/linux/sched_hook_defs.h
0 → 100644
kernel/sched/bpf_sched.c
0 → 100644
想要评论请 注册 或 登录