[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-1e6db2ee86e6a4399fc0ae5689e55e0fd1c43caf@git.kernel.org>
Date: Fri, 19 Apr 2019 10:16:12 -0700
From: tip-bot for Jiri Olsa <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: hpa@...or.com, bastian.beischer@...h-aachen.de, jolsa@...nel.org,
alexander.shishkin@...ux.intel.com, acme@...hat.com,
tglx@...utronix.de, mingo@...nel.org, peterz@...radead.org,
linux-kernel@...r.kernel.org, namhyung@...nel.org
Subject: [tip:perf/urgent] perf top: Always sample time to satisfy needs of
use of ordered queuing
Commit-ID: 1e6db2ee86e6a4399fc0ae5689e55e0fd1c43caf
Gitweb: https://git.kernel.org/tip/1e6db2ee86e6a4399fc0ae5689e55e0fd1c43caf
Author: Jiri Olsa <jolsa@...nel.org>
AuthorDate: Mon, 15 Apr 2019 14:53:33 +0200
Committer: Arnaldo Carvalho de Melo <acme@...hat.com>
CommitDate: Tue, 16 Apr 2019 12:36:20 -0300
perf top: Always sample time to satisfy needs of use of ordered queuing
Bastian reported broken 'perf top -p PID' command, it won't display any
data.
The problem is that for -p option we monitor single thread, so we don't
enable time in samples, because it's not needed.
However since commit 16c66bc167cc we use ordered queues to stash data
plus later commits added logic for dropping samples in case there's big
load and we don't keep up. All this needs timestamp for sample. Enabling
it unconditionally for perf top.
Reported-by: Bastian Beischer <bastian.beischer@...h-aachen.de>
Signed-off-by: Jiri Olsa <jolsa@...nel.org>
Tested-by: Arnaldo Carvalho de Melo <acme@...hat.com>
Cc: Alexander Shishkin <alexander.shishkin@...ux.intel.com>
Cc: Namhyung Kim <namhyung@...nel.org>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: bastian beischer <bastian.beischer@...h-aachen.de>
Fixes: 16c66bc167cc ("perf top: Add processing thread")
Link: http://lkml.kernel.org/r/20190415125333.27160-1-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@...hat.com>
---
tools/perf/builtin-top.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c
index 1999d6533d12..fbbb0da43abb 100644
--- a/tools/perf/builtin-top.c
+++ b/tools/perf/builtin-top.c
@@ -1377,6 +1377,7 @@ int cmd_top(int argc, const char **argv)
* */
.overwrite = 0,
.sample_time = true,
+ .sample_time_set = true,
},
.max_stack = sysctl__max_stack(),
.annotation_opts = annotation__default_options,
Powered by blists - more mailing lists