Re: [PATCH rfc 0/6] Scheduler BPF

From: Huichun Feng
Date: Sat Jan 15 2022 - 03:28:54 EST


Hi Roman and the list,

I have a naive question regarding BPF hook for sched.

Given that BPF can also be attached to tracepoint, why do we add a BPF prog
type specific to sched?

The reason I can come up with is that sched BPF can have retval to drive the
scheduling decision in static branch, whereas tracepoint is not able to do this.
Is it mainly because of this or anything else?


Thanks
Huichun