Re: [PATCH 0/4] perf: Teach perf tool to profile sleep times (v2)

2012-08-24 Thread Arnaldo Carvalho de Melo
Em Fri, Aug 24, 2012 at 05:32:21PM +0400, Andrey Wagin escreveu: > Hello Arnaldo, > > What do you think about this series? > > It has been fixed according with your comments to the previous > patches. Are you going to take it? I've put them in a perf/sleep branch in my tree, waiting on Frédéric

Re: [PATCH 0/4] perf: Teach perf tool to profile sleep times (v2)

2012-08-24 Thread Andrey Wagin
Hello Arnaldo, What do you think about this series? It has been fixed according with your comments to the previous patches. Are you going to take it? 2012/8/7 Andrew Vagin : > This functionality helps to analize where a task sleeps or waits locks. > This feature can help to investigate a scalabi

Re: [PATCH 0/4] perf: Teach perf tool to profile sleep times (v2)

2012-08-09 Thread Andrey Wagin
2012/8/9 Namhyung Kim : > The usage like this is too specific and hard to use IMHO. How about > putting it somehow into perf sched or new command? > > /me don't have an idea though. :-) > I'm going to add a script, so the usage will look like this: $ perf script r

Re: [PATCH 0/4] perf: Teach perf tool to profile sleep times (v2)

2012-08-08 Thread Namhyung Kim
On Wed, 8 Aug 2012 11:24:34 +0400, Andrey Wagin wrote: > 2012/8/8 Namhyung Kim : >> On Wed, 8 Aug 2012 09:02:18 +0400, Andrey Wagin wrote: >>> 2012/8/8 Namhyung Kim : > > $ ./perf record -e sched:sched_stat_sleep -e sched:sched_switch \ > -e sched:sched_process_exit -gP -o

Re: [PATCH 0/4] perf: Teach perf tool to profile sleep times (v2)

2012-08-08 Thread Andrey Wagin
2012/8/8 Namhyung Kim : > On Wed, 8 Aug 2012 09:02:18 +0400, Andrey Wagin wrote: >> 2012/8/8 Namhyung Kim : $ ./perf record -e sched:sched_stat_sleep -e sched:sched_switch \ -e sched:sched_process_exit -gP -o ~/perf.data.raw ~/foo >> >> Actually this string is not compl

Re: [PATCH 0/4] perf: Teach perf tool to profile sleep times (v2)

2012-08-07 Thread Namhyung Kim
On Wed, 8 Aug 2012 09:02:18 +0400, Andrey Wagin wrote: > 2012/8/8 Namhyung Kim : >>> >>> $ ./perf record -e sched:sched_stat_sleep -e sched:sched_switch \ >>> -e sched:sched_process_exit -gP -o ~/perf.data.raw ~/foo > > Actually this string is not completed, because sched:sched_switch

Re: [PATCH 0/4] perf: Teach perf tool to profile sleep times (v2)

2012-08-07 Thread Andrey Wagin
2012/8/8 Namhyung Kim : >> >> $ ./perf record -e sched:sched_stat_sleep -e sched:sched_switch \ >> -e sched:sched_process_exit -gP -o ~/perf.data.raw ~/foo Actually this string is not completed, because sched:sched_switch should be filtered by state. >> [ perf record: Woken up 1 tim

Re: [PATCH 0/4] perf: Teach perf tool to profile sleep times (v2)

2012-08-07 Thread Namhyung Kim
Hi, Andrew On Tue, 7 Aug 2012 16:56:01 +0400, Andrew Vagin wrote: > This functionality helps to analize where a task sleeps or waits locks. > This feature can help to investigate a scalability problems. > Looks like a nice feature. > The main idea is that we can combine sched_switch and sched_s

[PATCH 0/4] perf: Teach perf tool to profile sleep times (v2)

2012-08-07 Thread Andrew Vagin
This functionality helps to analize where a task sleeps or waits locks. This feature can help to investigate a scalability problems. The main idea is that we can combine sched_switch and sched_stat_sleep events. sched_switch contains a callchain, when a task starts sleeping. sched_stat_sleep conta