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

2012-07-12 Thread Peter Zijlstra
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

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

2012-07-12 Thread Andrew Vagin
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 n