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:
@@ -102,8 +102,18 @@ static inline int hists__browse(struct hists *self __used,
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
static inline int hist_entry__tui_annotate(struct hist_entry *self __used)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#define KEY_LEFT -1
|
||||
#define KEY_RIGHT -2
|
||||
#else
|
||||
#include <newt.h>
|
||||
int hists__browse(struct hists *self, const char *helpline,
|
||||
const char *input_name);
|
||||
int hist_entry__tui_annotate(struct hist_entry *self);
|
||||
#define KEY_LEFT NEWT_KEY_LEFT
|
||||
#define KEY_RIGHT NEWT_KEY_RIGHT
|
||||
#endif
|
||||
#endif /* __PERF_HIST_H */
|
||||
|
Reference in New Issue
Block a user