perf tools: Convert {record,top}.call-graph option to call-graph.record-mode
authorNamhyung Kim <namhyung@kernel.org>
Tue, 23 Sep 2014 01:01:44 +0000 (10:01 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 26 Sep 2014 15:43:53 +0000 (12:43 -0300)
So that it'll be passed to perf_callchain_config().

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-6-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-record.c
tools/perf/builtin-top.c

index 0ee647bcd2ec4df384faad512586e342c4778c7b..44c6f3d55ce76066ca8911d31f196a1fe128f36a 100644 (file)
@@ -673,7 +673,7 @@ int record_callchain_opt(const struct option *opt __maybe_unused,
 static int perf_record_config(const char *var, const char *value, void *cb)
 {
        if (!strcmp(var, "record.call-graph"))
-               return parse_callchain_record_opt(value);
+               var = "call-graph.record-mode"; /* fall-through */
 
        return perf_default_config(var, value, cb);
 }
index 9d647a079d02fb4e8bb5e7ea545721f4ecf30ac1..fc3d55f832ac0c55d316fe17aa20170f7096dfe9 100644 (file)
@@ -1021,7 +1021,7 @@ parse_callchain_opt(const struct option *opt, const char *arg, int unset)
 static int perf_top_config(const char *var, const char *value, void *cb)
 {
        if (!strcmp(var, "top.call-graph"))
-               return parse_callchain_record_opt(value);
+               var = "call-graph.record-mode"; /* fall-through */
        if (!strcmp(var, "top.children")) {
                symbol_conf.cumulate_callchain = perf_config_bool(var, value);
                return 0;