diff options
author | Namhyung Kim <namhyung@kernel.org> | 2016-12-08 17:47:50 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-12-15 22:25:44 +0300 |
commit | 96039c7c52e03b7d6dd773664e74b79e3ae9856a (patch) | |
tree | 03b1b662e987349e6c9267b3fa0bb6756066d807 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | aeafd623f866c429307e3a4a39998f5f06b4f00e (diff) | |
download | linux-96039c7c52e03b7d6dd773664e74b79e3ae9856a.tar.xz |
perf sched timehist: Split is_idle_sample()
The is_idle_sample() function actually does more than determining
whether sample come from idle task. Split the callchain part into
save_task_callchain() to make it clearer.
Also checking prev_pid from trace data looks preferred than just
checking sample->pid since it's possible, although rare, to have invalid
0 pid/tid on scheduling an exiting task.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: David Ahern <dsahern@gmail.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20161208144755.16673-2-namhyung@kernel.org
[ Remove some needless () in some return statements ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions