perf annotate: Add TUI interface
When annotating multiple entries, for instance, when running simply as: $ perf annotate the right and left keys, as well as TAB can be used to cycle thru the multiple symbols being annotated. If one doesn't like TUI annotate, disable it by editing ~/.perfconfig and adding: [tui] annotate = off Just like it is possible for report. Cc: Frédéric Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Stephane Eranian <eranian@google.com> Cc: Tom Zanussi <tzanussi@gmail.com> LKML-Reference: <new-submission> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
6e78c9fd1b
commit
46e3e055ce
6 changed files with 112 additions and 47 deletions
|
@ -81,7 +81,7 @@
|
|||
#include <inttypes.h>
|
||||
#include "../../../include/linux/magic.h"
|
||||
#include "types.h"
|
||||
|
||||
#include <sys/ttydefaults.h>
|
||||
|
||||
#ifndef NO_ICONV
|
||||
#include <iconv.h>
|
||||
|
@ -263,6 +263,19 @@ bool strglobmatch(const char *str, const char *pat);
|
|||
bool strlazymatch(const char *str, const char *pat);
|
||||
unsigned long convert_unit(unsigned long value, char *unit);
|
||||
|
||||
#ifndef ESC
|
||||
#define ESC 27
|
||||
#endif
|
||||
|
||||
static inline bool is_exit_key(int key)
|
||||
{
|
||||
char up;
|
||||
if (key == CTRL('c') || key == ESC)
|
||||
return true;
|
||||
up = toupper(key);
|
||||
return up == 'Q';
|
||||
}
|
||||
|
||||
#define _STR(x) #x
|
||||
#define STR(x) _STR(x)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue