aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/hist.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2010-05-11 10:10:15 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2010-05-11 11:43:10 -0400
commitb09e0190acf88c7fe3b05e3c331e1b2ef5310896 (patch)
tree260c82190298a9ee1b298679c6457c6b1735541a /tools/perf/util/hist.h
parente3174cfd2a1e28fff774681f00a0eef3d31da970 (diff)
perf hist: Adopt filter by dso and by thread methods from the newt browser
Those are really not specific to the newt code, can be used by other UI frontends. 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: Tom Zanussi <tzanussi@gmail.com> LKML-Reference: <new-submission> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/hist.h')
-rw-r--r--tools/perf/util/hist.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h
index 1b18d04195dc..1c5f93ac5ab7 100644
--- a/tools/perf/util/hist.h
+++ b/tools/perf/util/hist.h
@@ -44,4 +44,19 @@ void hists__output_resort(struct hists *self);
44void hists__collapse_resort(struct hists *self); 44void hists__collapse_resort(struct hists *self);
45size_t hists__fprintf(struct hists *self, struct hists *pair, 45size_t hists__fprintf(struct hists *self, struct hists *pair,
46 bool show_displacement, FILE *fp); 46 bool show_displacement, FILE *fp);
47
48void hists__filter_by_dso(struct hists *self, const struct dso *dso);
49void hists__filter_by_thread(struct hists *self, const struct thread *thread);
50
51#ifdef NO_NEWT_SUPPORT
52static inline int hists__browse(struct hists self __used,
53 const char *helpline __used,
54 const char *input_name __used)
55{
56 return 0;
57}
58#else
59int hists__browse(struct hists *self, const char *helpline,
60 const char *input_name);
61#endif
47#endif /* __PERF_HIST_H */ 62#endif /* __PERF_HIST_H */