lkml.org 
[lkml]   [2011]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 2/2] tracing, sched: Add delay info to sched_switch
From
Date
On Mon, 2011-12-19 at 15:23 -0800, Arun Sharma wrote:
> +#ifdef CONFIG_SCHEDSTATS
> + __entry->delay = next->se.statistics.block_start ? next->se.statistics.block_start
> + : next->se.statistics.sleep_start ? next->se.statistics.sleep_start : 0;
> + __entry->delay = __entry->delay ? now - __entry->delay : 0;
> +#else
> + __entry->delay = 0;
> +#endif

I don't really like this, this should be one of those sched_*_stat
thingies, not sched_switch().


\
 
 \ /
  Last update: 2011-12-20 00:31    [W:0.379 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site