mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [GIT PULL 0/1] perf/urgent TUI annotate fix
@ 2010-08-16 17:10 Arnaldo Carvalho de Melo
  2010-08-16 17:10 ` [PATCH 1/1] perf annotate tui: Fix exit and RIGHT keys handling Arnaldo Carvalho de Melo
  2010-08-16 17:30 ` [GIT PULL 0/1] perf/urgent TUI annotate fix Ingo Molnar
  0 siblings, 2 replies; 3+ messages in thread
From: Arnaldo Carvalho de Melo @ 2010-08-16 17:10 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: linux-kernel, Frederic Weisbecker, Peter Zijlstra

From: Arnaldo Carvalho de Melo <infradead.org>

Hi Ingo,

	I extracted a fix from the three patch perf/core series I sent,
will rework the other, non critical patches on a new perf/core branch.

        Please pull from:

git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux-2.6 perf/urgent

Regards,

- Arnaldo

Arnaldo Carvalho de Melo (1):
  perf annotate tui: Fix exit and RIGHT keys handling

 tools/perf/util/ui/browsers/annotate.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


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

* [PATCH 1/1] perf annotate tui: Fix exit and RIGHT keys handling
  2010-08-16 17:10 [GIT PULL 0/1] perf/urgent TUI annotate fix Arnaldo Carvalho de Melo
@ 2010-08-16 17:10 ` Arnaldo Carvalho de Melo
  2010-08-16 17:30 ` [GIT PULL 0/1] perf/urgent TUI annotate fix Ingo Molnar
  1 sibling, 0 replies; 3+ messages in thread
From: Arnaldo Carvalho de Melo @ 2010-08-16 17:10 UTC (permalink / raw)
  To: Ingo Molnar
  Cc: linux-kernel, Arnaldo Carvalho de Melo, Frederic Weisbecker,
	Peter Zijlstra

From: Arnaldo Carvalho de Melo <acme@redhat.com>

As part of ongoing effort to reduce the coupling with libnewt, browsers
are being changed to return the exit key.

The annotate browser is not returning it as expected by builtin-annotate
when annotating multiple symbols (when 'perf annotate' is called without
specifying a symbol name).

Fix it by returning the exit key and also adding the RIGHT key as a exit
key so that going to the next symbol in the TUI can work again.

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
 tools/perf/util/ui/browsers/annotate.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/tools/perf/util/ui/browsers/annotate.c b/tools/perf/util/ui/browsers/annotate.c
index 55ff792..a90273e 100644
--- a/tools/perf/util/ui/browsers/annotate.c
+++ b/tools/perf/util/ui/browsers/annotate.c
@@ -146,6 +146,7 @@ static int annotate_browser__run(struct annotate_browser *self,
 		return -1;
 
 	newtFormAddHotKey(self->b.form, NEWT_KEY_LEFT);
+	newtFormAddHotKey(self->b.form, NEWT_KEY_RIGHT);
 
 	nd = self->curr_hot;
 	if (nd) {
@@ -178,7 +179,7 @@ static int annotate_browser__run(struct annotate_browser *self,
 	}
 out:
 	ui_browser__hide(&self->b);
-	return 0;
+	return es->u.key;
 }
 
 int hist_entry__tui_annotate(struct hist_entry *self)
-- 
1.6.2.5


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

* Re: [GIT PULL 0/1] perf/urgent TUI annotate fix
  2010-08-16 17:10 [GIT PULL 0/1] perf/urgent TUI annotate fix Arnaldo Carvalho de Melo
  2010-08-16 17:10 ` [PATCH 1/1] perf annotate tui: Fix exit and RIGHT keys handling Arnaldo Carvalho de Melo
@ 2010-08-16 17:30 ` Ingo Molnar
  1 sibling, 0 replies; 3+ messages in thread
From: Ingo Molnar @ 2010-08-16 17:30 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo
  Cc: linux-kernel, Frederic Weisbecker, Peter Zijlstra


* Arnaldo Carvalho de Melo <acme@infradead.org> wrote:

> From: Arnaldo Carvalho de Melo <infradead.org>
> 
> Hi Ingo,
> 
> 	I extracted a fix from the three patch perf/core series I sent,
> will rework the other, non critical patches on a new perf/core branch.
> 
>         Please pull from:
> 
> git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux-2.6 perf/urgent
> 
> Regards,
> 
> - Arnaldo
> 
> Arnaldo Carvalho de Melo (1):
>   perf annotate tui: Fix exit and RIGHT keys handling
> 
>  tools/perf/util/ui/browsers/annotate.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)


Pulled, thanks Arnaldo!

	Ingo

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

end of thread, other threads:[~2010-08-16 17:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-16 17:10 [GIT PULL 0/1] perf/urgent TUI annotate fix Arnaldo Carvalho de Melo
2010-08-16 17:10 ` [PATCH 1/1] perf annotate tui: Fix exit and RIGHT keys handling Arnaldo Carvalho de Melo
2010-08-16 17:30 ` [GIT PULL 0/1] perf/urgent TUI annotate fix Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®