On 06/06/2016 06:03 PM, Peter Zijlstra wrote: >>>> > >> +/* >>>> > >> + * Tracepoint for priority changes of a task. >>>> > >> + */ >>>> > >> +DEFINE_EVENT(sched_prio_template, sched_set_prio, >>>> > >> + TP_PROTO(struct task_struct *tsk, int newprio), >>>> > >> + TP_ARGS(tsk, newprio)); >>>> > >> + > Nak on anything that cannot fundamentally deal with SCHED_DEADLINE.
My 2 cents: I liked the idea... But, I agree with peterz. This cannot fundamentally deal with deadline scheduler. In the deadline scheduler, the priority is set at every new sporadic activation of the task (it is a fixed job priority scheduler - not a fixed priority scheduler). The priority is the deadline of the new job. The deadline is an u64, that does not fit in the int prio - so it cannot be reused. -- Daniel