summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/config.c
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2014-09-23 10:01:43 +0900
committerArnaldo Carvalho de Melo <acme@redhat.com>2014-09-26 12:43:24 -0300
commit2b9240cafe9780f77b257321b13c4c4d2c2d0dc8 (patch)
treecaceef75312309f35e427f01194fb2943c56f609 /tools/perf/util/config.c
parentf7f084f4d3c29b0f9877a32fc6e2feacd47695b9 (diff)
downloadlinux-2b9240cafe9780f77b257321b13c4c4d2c2d0dc8.tar.gz
linux-2b9240cafe9780f77b257321b13c4c4d2c2d0dc8.tar.bz2
linux-2b9240cafe9780f77b257321b13c4c4d2c2d0dc8.zip
perf tools: Introduce perf_callchain_config()
This patch adds support for following config options to ~/.perfconfig file. [call-graph] record-mode = dwarf dump-size = 8192 print-type = fractal order = callee threshold = 0.5 print-limit = 128 sort-key = function Reviewed-by: David Ahern <dsahern@gmail.com> Signed-off-by: Namhyung Kim <namhyung@kernel.org> Acked-by: Jiri Olsa <jolsa@redhat.com> Cc: David Ahern <dsahern@gmail.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Milian Wolff <mail@milianw.de> Cc: Namhyung Kim <namhyung.kim@lge.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1411434104-5307-5-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/config.c')
-rw-r--r--tools/perf/util/config.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/config.c b/tools/perf/util/config.c
index 9970b8b0190b..953512ed72ba 100644
--- a/tools/perf/util/config.c
+++ b/tools/perf/util/config.c
@@ -396,6 +396,9 @@ int perf_default_config(const char *var, const char *value,
if (!prefixcmp(var, "ui."))
return perf_ui_config(var, value);
+ if (!prefixcmp(var, "call-graph."))
+ return perf_callchain_config(var, value);
+
/* Add other config variables here. */
return 0;
}