summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/hist.h
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2014-02-07 12:06:07 +0900
committerJiri Olsa <jolsa@redhat.com>2014-04-16 17:16:03 +0200
commit33db4568e1f41efe6d0e4695483f968fc1135bf3 (patch)
tree864186165ad27a133c773d36dd83b20cf5a19abc /tools/perf/util/hist.h
parentf2148330544a697481219b5bc34261f6dd049bfb (diff)
downloadop-kernel-dev-33db4568e1f41efe6d0e4695483f968fc1135bf3.zip
op-kernel-dev-33db4568e1f41efe6d0e4695483f968fc1135bf3.tar.gz
perf top: Add --percentage option
The --percentage option is for controlling overhead percentage displayed. It can only receive either of "relative" or "absolute". Move the parser callback function into a common location since it's used by multiple commands now. For more information, please see previous commit same thing done to "perf report". Signed-off-by: Namhyung Kim <namhyung@kernel.org> Link: http://lkml.kernel.org/r/1397145720-8063-4-git-send-email-namhyung@kernel.org Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Diffstat (limited to 'tools/perf/util/hist.h')
-rw-r--r--tools/perf/util/hist.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h
index 3191496..a4ec336 100644
--- a/tools/perf/util/hist.h
+++ b/tools/perf/util/hist.h
@@ -254,4 +254,9 @@ static inline int script_browse(const char *script_opt __maybe_unused)
#endif
unsigned int hists__sort_list_width(struct hists *hists);
+
+struct option;
+int parse_filter_percentage(const struct option *opt __maybe_unused,
+ const char *arg, int unset __maybe_unused);
+
#endif /* __PERF_HIST_H */
OpenPOWER on IntegriCloud