lkml.org 
[lkml]   [2012]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] sched: deliver sched_switch events to a current task
From
Date
On Thu, 2012-07-12 at 14:14 +0400, Andrew Vagin wrote:
> Otherwise they can't be filtered for a defined task.
>
> perf record -e sched:sched_switch ./foo
>
> This command doesn't report any event without this patch.
>
> I think it isn't a big problem for security, if someone will know
> who will be executed next. By default perf is disabled for non-root
> users.
>
> I need this events for profiling sleep times. sched_switch is used for
> getting callchains and sched_stat_* is used for getting time periods.
> This events are combined in user space, then it can be analized by
> perf tools.

Thanks!


\
 
 \ /
  Last update: 2012-07-12 16:41    [W:0.110 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site