sched: encapsulate priority changes in a sched_set_prio static function
authorJulien Desfossez <jdesfossez@efficios.com>
Mon, 16 May 2016 14:57:26 +0000 (10:57 -0400)
committerJulien Desfossez <jdesfossez@efficios.com>
Mon, 27 Jun 2016 18:14:18 +0000 (14:14 -0400)
commit9908df2ece75e0423afa916c95c33cc77b824d68
tree08a738336b24c5b2be9863797d81f610edf42491
parent44549e8f5eea4e0a41b487b63e616cb089922b99
sched: encapsulate priority changes in a sched_set_prio static function

Currently, the priority of tasks is modified directly in the scheduling
functions. Encapsulate priority updates to enable instrumentation of
priority changes. This will enable analysis of real-time scheduling
delays per thread priority, which cannot be performed accurately if we
only trace the priority of the currently scheduled processes.

The call sites that modify the priority of a task are mostly system
calls: sched_setscheduler, sched_setattr, sched_process_fork and
set_user_nice. Priority can also be dynamically boosted through
priority inheritance of rt_mutex by rt_mutex_setprio.

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/linux/sched.h
kernel/sched/core.c
This page took 0.025212 seconds and 5 git commands to generate.