diff options
author | Namhyung Kim <[email protected]> | 2016-12-08 23:47:50 +0900 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2016-12-15 16:25:44 -0300 |
commit | 96039c7c52e03b7d6dd773664e74b79e3ae9856a (patch) | |
tree | 03b1b662e987349e6c9267b3fa0bb6756066d807 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | aeafd623f866c429307e3a4a39998f5f06b4f00e (diff) |
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 <[email protected]>
Acked-by: David Ahern <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Minchan Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
[ Remove some needless () in some return statements ]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions