Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dabd2012 authored by Jiri Olsa's avatar Jiri Olsa Committed by Arnaldo Carvalho de Melo
Browse files

perf hists browser: Make (new|delete|run) public



This way we can use it outside of ui/browsers/hists.c and extend it in
following patches.

Signed-off-by: default avatarJiri Olsa <jolsa@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1466459899-1166-4-git-send-email-jolsa@kernel.org


Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent f758990f
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -568,7 +568,7 @@ static void ui_browser__warn_lost_events(struct ui_browser *browser)
		"Or reduce the sampling frequency.");
}

static int hist_browser__run(struct hist_browser *browser, const char *help)
int hist_browser__run(struct hist_browser *browser, const char *help)
{
	int key;
	char title[160];
@@ -2039,7 +2039,7 @@ static int hist_browser__dump(struct hist_browser *browser)
	return 0;
}

static struct hist_browser *hist_browser__new(struct hists *hists,
struct hist_browser *hist_browser__new(struct hists *hists,
				       struct hist_browser_timer *hbt,
				       struct perf_env *env)
{
@@ -2059,7 +2059,7 @@ static struct hist_browser *hist_browser__new(struct hists *hists,
	return browser;
}

static void hist_browser__delete(struct hist_browser *browser)
void hist_browser__delete(struct hist_browser *browser)
{
	free(browser);
}
+5 −0
Original line number Diff line number Diff line
@@ -20,4 +20,9 @@ struct hist_browser {
	u64		     nr_callchain_rows;
};

struct hist_browser *hist_browser__new(struct hists *hists,
				       struct hist_browser_timer *hbt,
				       struct perf_env *env);
void hist_browser__delete(struct hist_browser *browser);
int hist_browser__run(struct hist_browser *browser, const char *help);
#endif /* _PERF_UI_BROWSER_HISTS_H_ */