|
@@ -1223,8 +1223,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;
|