06cc1a470a
For overwrite mode, the ringbuffer will be paused. The event lost is expected. It needs a way to notify the browser not print the warning. It will be used later for perf top to disable lost event warning in overwrite mode. There is no behavior change for now. Signed-off-by: Kan Liang <kan.liang@intel.com> Acked-by: Jiri Olsa <jolsa@kernel.org> Cc: Andi Kleen <ak@linux.intel.com> Cc: Jin Yao <yao.jin@linux.intel.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/r/1516310792-208685-15-git-send-email-kan.liang@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
36 lines
1.0 KiB
C
36 lines
1.0 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#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,
|
|
bool warn_lost_event);
|
|
void hist_browser__init(struct hist_browser *browser,
|
|
struct hists *hists);
|
|
#endif /* _PERF_UI_BROWSER_HISTS_H_ */
|