summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/config.c
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2014-01-14 12:02:15 +0900
committerJiri Olsa <jolsa@redhat.com>2014-04-16 17:16:04 +0200
commit0b93da1756df4fe930ee0220a6addce263a6e0ab (patch)
tree2af9abbfd073bb6b84a5e03bcac41b8e1eabe22a /tools/perf/util/config.c
parent8810f6ced73556c1a63b6269a6cdad8d630aaaf0 (diff)
downloadop-kernel-dev-0b93da1756df4fe930ee0220a6addce263a6e0ab.zip
op-kernel-dev-0b93da1756df4fe930ee0220a6addce263a6e0ab.tar.gz
perf tools: Add hist.percentage config option
Add hist.percentage option for setting default value of the symbol_conf.filter_relative. It affects the output of various perf commands (like perf report, top and diff) only if filter(s) applied. An user can write .perfconfig file like below to show absolute percentage of filtered entries by default: $ cat ~/.perfconfig [hist] percentage = absolute And it can be changed through command line: $ perf report --percentage relative Signed-off-by: Namhyung Kim <namhyung@kernel.org> Link: http://lkml.kernel.org/r/1397145720-8063-6-git-send-email-namhyung@kernel.org Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Diffstat (limited to 'tools/perf/util/config.c')
-rw-r--r--tools/perf/util/config.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/util/config.c b/tools/perf/util/config.c
index 3e0fdd3..24519e1 100644
--- a/tools/perf/util/config.c
+++ b/tools/perf/util/config.c
@@ -11,6 +11,7 @@
#include "util.h"
#include "cache.h"
#include "exec_cmd.h"
+#include "util/hist.h" /* perf_hist_config */
#define MAXNAME (256)
@@ -355,6 +356,9 @@ int perf_default_config(const char *var, const char *value,
if (!prefixcmp(var, "core."))
return perf_default_core_config(var, value);
+ if (!prefixcmp(var, "hist."))
+ return perf_hist_config(var, value);
+
/* Add other config variables here. */
return 0;
}
OpenPOWER on IntegriCloud