mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
perf ui/browser/annotate: Use global annotation_options
Now it can use the global options and no need save local browser options separately. Reviewed-by: Ian Rogers <irogers@google.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: https://lore.kernel.org/r/20231128175441.721579-6-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
committed by
Arnaldo Carvalho de Melo
parent
41fd3cacd2
commit
22197fb296
@@ -457,7 +457,6 @@ struct hist_browser_timer {
|
||||
int refresh;
|
||||
};
|
||||
|
||||
struct annotation_options;
|
||||
struct res_sample;
|
||||
|
||||
enum rstype {
|
||||
@@ -473,16 +472,13 @@ struct block_hist;
|
||||
void attr_to_script(char *buf, struct perf_event_attr *attr);
|
||||
|
||||
int map_symbol__tui_annotate(struct map_symbol *ms, struct evsel *evsel,
|
||||
struct hist_browser_timer *hbt,
|
||||
struct annotation_options *annotation_opts);
|
||||
struct hist_browser_timer *hbt);
|
||||
|
||||
int hist_entry__tui_annotate(struct hist_entry *he, struct evsel *evsel,
|
||||
struct hist_browser_timer *hbt,
|
||||
struct annotation_options *annotation_opts);
|
||||
struct hist_browser_timer *hbt);
|
||||
|
||||
int evlist__tui_browse_hists(struct evlist *evlist, const char *help, struct hist_browser_timer *hbt,
|
||||
float min_pcnt, struct perf_env *env, bool warn_lost_event,
|
||||
struct annotation_options *annotation_options);
|
||||
float min_pcnt, struct perf_env *env, bool warn_lost_event);
|
||||
|
||||
int script_browse(const char *script_opt, struct evsel *evsel);
|
||||
|
||||
@@ -492,8 +488,7 @@ int res_sample_browse(struct res_sample *res_samples, int num_res,
|
||||
void res_sample_init(void);
|
||||
|
||||
int block_hists_tui_browse(struct block_hist *bh, struct evsel *evsel,
|
||||
float min_percent, struct perf_env *env,
|
||||
struct annotation_options *annotation_opts);
|
||||
float min_percent, struct perf_env *env);
|
||||
#else
|
||||
static inline
|
||||
int evlist__tui_browse_hists(struct evlist *evlist __maybe_unused,
|
||||
@@ -501,23 +496,20 @@ int evlist__tui_browse_hists(struct evlist *evlist __maybe_unused,
|
||||
struct hist_browser_timer *hbt __maybe_unused,
|
||||
float min_pcnt __maybe_unused,
|
||||
struct perf_env *env __maybe_unused,
|
||||
bool warn_lost_event __maybe_unused,
|
||||
struct annotation_options *annotation_options __maybe_unused)
|
||||
bool warn_lost_event __maybe_unused)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
static inline int map_symbol__tui_annotate(struct map_symbol *ms __maybe_unused,
|
||||
struct evsel *evsel __maybe_unused,
|
||||
struct hist_browser_timer *hbt __maybe_unused,
|
||||
struct annotation_options *annotation_options __maybe_unused)
|
||||
struct hist_browser_timer *hbt __maybe_unused)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline int hist_entry__tui_annotate(struct hist_entry *he __maybe_unused,
|
||||
struct evsel *evsel __maybe_unused,
|
||||
struct hist_browser_timer *hbt __maybe_unused,
|
||||
struct annotation_options *annotation_opts __maybe_unused)
|
||||
struct hist_browser_timer *hbt __maybe_unused)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
@@ -541,8 +533,7 @@ static inline void res_sample_init(void) {}
|
||||
static inline int block_hists_tui_browse(struct block_hist *bh __maybe_unused,
|
||||
struct evsel *evsel __maybe_unused,
|
||||
float min_percent __maybe_unused,
|
||||
struct perf_env *env __maybe_unused,
|
||||
struct annotation_options *annotation_opts __maybe_unused)
|
||||
struct perf_env *env __maybe_unused)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user