lkml.org 
[lkml]   [2010]   [Nov]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [RFC][PATCH 17/22] sched: add signaling overrunning -deadline tasks.
From
Date
On Fri, 2010-10-29 at 08:40 +0200, Raistlin wrote:
> +static inline void __dl_signal(struct task_struct *tsk, int which)
> +{
> + struct siginfo info;
> + long long amount = which == SF_SIG_DMISS ? tsk->dl.stats.last_dmiss :
> + tsk->dl.stats.last_rorun;
> +
> + info.si_signo = SIGXCPU;
> + info.si_errno = which;
> + info.si_code = SI_KERNEL;
> + info.si_pid = 0;
> + info.si_uid = 0;
> + info.si_value.sival_int = (int)amount;
> +
> + /* Correctly take the locks on task's sighand */
> + __group_send_sig_info(SIGXCPU, &info, tsk);
> + /* Log what happened to dmesg */
> + printk(KERN_INFO "SCHED_DEADLINE: 0x%4x by %Ld [ns] in %d (%s)\n",
> + which, amount, task_pid_nr(tsk), tsk->comm);
> +}

This being a G-EDF like scheduler with a u<=1 schedulability test, we're
firmly in soft-rt territory which means the above will be very easy to
trigger.. Maybe not spam dmesg?


\
 
 \ /
  Last update: 2010-11-11 23:01    [W:0.682 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site