]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - tools/perf/builtin-top.c
perf top: Fix top.call-graph config option reading
[mirror_ubuntu-bionic-kernel.git] / tools / perf / builtin-top.c
index 9e0d2645ae13ad40624069077cadb7650b3245b0..2b57856b51b854450ece8c65e115ad74f4e75023 100644 (file)
@@ -1085,8 +1085,10 @@ 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 __maybe_unused)
 {
-       if (!strcmp(var, "top.call-graph"))
-               var = "call-graph.record-mode"; /* fall-through */
+       if (!strcmp(var, "top.call-graph")) {
+               var = "call-graph.record-mode";
+               return perf_default_config(var, value, cb);
+       }
        if (!strcmp(var, "top.children")) {
                symbol_conf.cumulate_callchain = perf_config_bool(var, value);
                return 0;