Re: [PATCH] sched: deliver sched_switch events to a current task

From: Peter Zijlstra
Date: Thu Jul 12 2012 - 09:56:12 EST


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!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/