perf timechart: Conditionally update start_time on fork
authorStanislav Fomichev <stfomichev@yandex-team.ru>
Tue, 8 Jul 2014 16:03:42 +0000 (20:03 +0400)
committerJiri Olsa <jolsa@kernel.org>
Wed, 9 Jul 2014 22:22:54 +0000 (00:22 +0200)
commit962e310af5dff432745ae7494096ed54b752e63e
treedc6e964ad362dd54d14a0f07b5c4ef28b2059103
parentb97b59b93d10a54022afb06d5725d7aa55d98dd7
perf timechart: Conditionally update start_time on fork

We don't need to overwrite current task start_time on fork, so update it
only if it's zero.

Signed-off-by: Stanislav Fomichev <stfomichev@yandex-team.ru>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/n/1404835423-23098-4-git-send-email-stfomichev@yandex-team.ru
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
tools/perf/builtin-timechart.c