[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-44848cdbbd1bacbac2a825920b699adc000d51c7@git.kernel.org>
Date: Fri, 29 May 2015 11:35:03 -0700
From: "tip-bot for Martin Liška" <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, mingo@...nel.org,
a.p.zijlstra@...llo.nl, acme@...hat.com, mliska@...e.cz,
tglx@...utronix.de, paulus@...ba.org, hpa@...or.com
Subject: [tip:perf/core] perf annotate: Fix -i option,
which is currently ignored.
Commit-ID: 44848cdbbd1bacbac2a825920b699adc000d51c7
Gitweb: http://git.kernel.org/tip/44848cdbbd1bacbac2a825920b699adc000d51c7
Author: Martin Liška <mliska@...e.cz>
AuthorDate: Fri, 29 May 2015 14:06:44 +0200
Committer: Arnaldo Carvalho de Melo <acme@...hat.com>
CommitDate: Fri, 29 May 2015 12:43:34 -0300
perf annotate: Fix -i option, which is currently ignored.
Assign input_name, received from program arguments, to file data
structure.
Signed-off-by: Martin Liska <mliska@...e.cz>
Tested-by: Arnaldo Carvalho de Melo <acme@...hat.com>
Cc: Paul Mackerras <paulus@...ba.org>
Cc: Peter Zijlstra <a.p.zijlstra@...llo.nl>
Link: http://lkml.kernel.org/r/55685654.2010209@suse.cz
Signed-off-by: Arnaldo Carvalho de Melo <acme@...hat.com>
---
tools/perf/builtin-annotate.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c
index c434e12..4e08c2d 100644
--- a/tools/perf/builtin-annotate.c
+++ b/tools/perf/builtin-annotate.c
@@ -289,7 +289,6 @@ int cmd_annotate(int argc, const char **argv, const char *prefix __maybe_unused)
},
};
struct perf_data_file file = {
- .path = input_name,
.mode = PERF_DATA_MODE_READ,
};
const struct option options[] = {
@@ -346,6 +345,8 @@ int cmd_annotate(int argc, const char **argv, const char *prefix __maybe_unused)
else if (annotate.use_gtk)
use_browser = 2;
+ file.path = input_name;
+
setup_browser(true);
annotate.session = perf_session__new(&file, false, &annotate.tool);
--
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