|
@@ -651,9 +651,9 @@ int perf_evsel__group_desc(struct perf_evsel *evsel, char *buf, size_t size)
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
-void perf_evsel__config_callchain(struct perf_evsel *evsel,
|
|
|
|
- struct record_opts *opts,
|
|
|
|
- struct callchain_param *param)
|
|
|
|
|
|
+static void __perf_evsel__config_callchain(struct perf_evsel *evsel,
|
|
|
|
+ struct record_opts *opts,
|
|
|
|
+ struct callchain_param *param)
|
|
{
|
|
{
|
|
bool function = perf_evsel__is_function_event(evsel);
|
|
bool function = perf_evsel__is_function_event(evsel);
|
|
struct perf_event_attr *attr = &evsel->attr;
|
|
struct perf_event_attr *attr = &evsel->attr;
|
|
@@ -699,6 +699,14 @@ void perf_evsel__config_callchain(struct perf_evsel *evsel,
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+void perf_evsel__config_callchain(struct perf_evsel *evsel,
|
|
|
|
+ struct record_opts *opts,
|
|
|
|
+ struct callchain_param *param)
|
|
|
|
+{
|
|
|
|
+ if (param->enabled)
|
|
|
|
+ return __perf_evsel__config_callchain(evsel, opts, param);
|
|
|
|
+}
|
|
|
|
+
|
|
static void
|
|
static void
|
|
perf_evsel__reset_callgraph(struct perf_evsel *evsel,
|
|
perf_evsel__reset_callgraph(struct perf_evsel *evsel,
|
|
struct callchain_param *param)
|
|
struct callchain_param *param)
|