sched: introduce bpf_sched_enable()
maillist inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I8OIT1 Reference: https://lore.kernel.org/all/20210916162451.709260-1-guro@fb.com/ ------------------- Introduce a dedicated static key and the bpf_sched_enabled() wrapper to guard all invocations of bpf programs in the scheduler code. It will help to avoid any potential performance regression in a case when no scheduler bpf programs are attached. Signed-off-by:Roman Gushchin <guro@fb.com> Signed-off-by:
Chen Hui <judy.chenhui@huawei.com> Signed-off-by:
Ren Zhijie <renzhijie2@huawei.com> Signed-off-by:
Hui Tang <tanghui20@huawei.com> Signed-off-by:
Guan Jing <guanjing6@huawei.com>
Loading
Please sign in to comment