perf sched timehist: Account thread wait time separately
authorNamhyung Kim <namhyung@kernel.org>
Fri, 13 Jan 2017 10:45:21 +0000 (19:45 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 17 Jan 2017 14:35:44 +0000 (11:35 -0300)
commit941bdea79e194dec7e7b42780aa5620020548f8a
treeceb6dfdad9cc51f7a98011d0676b4721907118c8
parentbe3d466c7356e574a2aa4e19dd20b19b3a9cc4fc
perf sched timehist: Account thread wait time separately

Separate thread wait time into 3 parts - sleep, iowait and preempt based
on the prev_state of the last event.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20170113104523.31212-1-namhyung@kernel.org
[ Fix the build on centos:5 where 'wait' shadows a global declaration ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-sched.c