[<prev] [next>] [day] [month] [year] [list]
Message-ID: <tip-962e310af5dff432745ae7494096ed54b752e63e@git.kernel.org>
Date: Wed, 16 Jul 2014 12:18:27 -0700
From: tip-bot for Stanislav Fomichev <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...nel.org,
jolsa@...nel.org, stfomichev@...dex-team.ru, tglx@...utronix.de,
namhyung@...nel.org
Subject: [tip:perf/core] perf timechart:
Conditionally update start_time on fork
Commit-ID: 962e310af5dff432745ae7494096ed54b752e63e
Gitweb: http://git.kernel.org/tip/962e310af5dff432745ae7494096ed54b752e63e
Author: Stanislav Fomichev <stfomichev@...dex-team.ru>
AuthorDate: Tue, 8 Jul 2014 20:03:42 +0400
Committer: Jiri Olsa <jolsa@...nel.org>
CommitDate: Thu, 10 Jul 2014 00:22:54 +0200
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@...dex-team.ru>
Acked-by: Namhyung Kim <namhyung@...nel.org>
Link: http://lkml.kernel.org/n/1404835423-23098-4-git-send-email-stfomichev@yandex-team.ru
Signed-off-by: Jiri Olsa <jolsa@...nel.org>
---
tools/perf/builtin-timechart.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/perf/builtin-timechart.c b/tools/perf/builtin-timechart.c
index 4079062..37bf1eb 100644
--- 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;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists