All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] perf annotate: fix -i option, which is currently ignored.
@ 2015-05-29 12:06 Martin Liška
  2015-05-29 12:42 ` Arnaldo Carvalho de Melo
  2015-05-29 18:35 ` [tip:perf/core] perf annotate: Fix " tip-bot for Martin Liška
  0 siblings, 2 replies; 12+ messages in thread
From: Martin Liška @ 2015-05-29 12:06 UTC (permalink / raw)
  To: linux-kernel
  Cc: Arnaldo Carvalho de Melo, Ingo Molnar, Peter Zijlstra,
	Paul Mackerras

Assign input_name, received from program arguments, to
file data structure.

Signed-off-by: Martin Liska <mliska@suse.cz>
---
  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);
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-05-29 18:35 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-29 12:06 [PATCH] perf annotate: fix -i option, which is currently ignored Martin Liška
2015-05-29 12:42 ` Arnaldo Carvalho de Melo
2015-05-29 12:43   ` Arnaldo Carvalho de Melo
2015-05-29 12:47     ` Martin Liška
2015-05-29 12:51       ` Arnaldo Carvalho de Melo
2015-05-29 13:08       ` Arnaldo Carvalho de Melo
2015-05-29 13:09         ` Martin Liška
2015-05-29 13:59           ` Arnaldo Carvalho de Melo
2015-05-29 14:01             ` Martin Liška
2015-05-29 14:17               ` Arnaldo Carvalho de Melo
2015-05-29 13:16         ` Arnaldo Carvalho de Melo
2015-05-29 18:35 ` [tip:perf/core] perf annotate: Fix " tip-bot for Martin Liška

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.