mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 08:52:27 +00:00
Add the main cachelines TUI browser. It allows to navigate through cachelines and display their details and callchains (implemented in the following patches). Signed-off-by: Jiri Olsa <[email protected]> Tested-by: Arnaldo Carvalho de Melo <[email protected]> Cc: Andi Kleen <[email protected]> Cc: David Ahern <[email protected]> Cc: Don Zickus <[email protected]> Cc: Joe Mario <[email protected]> Cc: Kim Phillips <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Link: http://lkml.kernel.org/r/20161021001706.GB23970@krava [ Handle file with no entries, fixing segfault reported by Kim Phillips ] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
34 lines
971 B
C
34 lines
971 B
C
#ifndef _PERF_UI_BROWSER_HISTS_H_
|
|
#define _PERF_UI_BROWSER_HISTS_H_ 1
|
|
|
|
#include "ui/browser.h"
|
|
|
|
struct hist_browser {
|
|
struct ui_browser b;
|
|
struct hists *hists;
|
|
struct hist_entry *he_selection;
|
|
struct map_symbol *selection;
|
|
struct hist_browser_timer *hbt;
|
|
struct pstack *pstack;
|
|
struct perf_env *env;
|
|
int print_seq;
|
|
bool show_dso;
|
|
bool show_headers;
|
|
float min_pcnt;
|
|
u64 nr_non_filtered_entries;
|
|
u64 nr_hierarchy_entries;
|
|
u64 nr_callchain_rows;
|
|
bool c2c_filter;
|
|
|
|
/* Get title string. */
|
|
int (*title)(struct hist_browser *browser,
|
|
char *bf, size_t size);
|
|
};
|
|
|
|
struct hist_browser *hist_browser__new(struct hists *hists);
|
|
void hist_browser__delete(struct hist_browser *browser);
|
|
int hist_browser__run(struct hist_browser *browser, const char *help);
|
|
void hist_browser__init(struct hist_browser *browser,
|
|
struct hists *hists);
|
|
#endif /* _PERF_UI_BROWSER_HISTS_H_ */
|