projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b97b59b
)
perf timechart: Conditionally update start_time on fork
author
Stanislav Fomichev
<stfomichev@yandex-team.ru>
Tue, 8 Jul 2014 16:03:42 +0000
(20:03 +0400)
committer
Jiri Olsa
<jolsa@kernel.org>
Wed, 9 Jul 2014 22:22:54 +0000
(
00:22
+0200)
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
patch
|
blob
|
blame
|
history
diff --git
a/tools/perf/builtin-timechart.c
b/tools/perf/builtin-timechart.c
index 4079062d25b0e3692f68a7442cb9e3ec1f9f9123..37bf1eb0755f649f87a154c6ec7c1c34a9388b87 100644
(file)
--- a/
tools/perf/builtin-timechart.c
+++ b/
tools/perf/builtin-timechart.c
@@
-242,7
+242,7
@@
static void pid_fork(struct timechart *tchart, int pid, int ppid, u64 timestamp)
pid_set_comm(tchart, pid, pp->current->comm);
p->start_time = timestamp;
- if (p->current) {
+ if (p->current
&& !p->current->start_time
) {
p->current->start_time = timestamp;
p->current->state_since = timestamp;
}