summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2018-01-12 20:21:04 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2018-01-12 20:57:16 +0100
commit1688c2fdf6e72633c7f463da3878b58eef01ba56 (patch)
tree0ffaafc621430fed9bd247cfee16a85040545221 /ipc
parentperf tools: Fix copyfile_offset update of output offset (diff)
downloadlinux-1688c2fdf6e72633c7f463da3878b58eef01ba56.tar.xz
linux-1688c2fdf6e72633c7f463da3878b58eef01ba56.zip
perf evsel: Check if callchain is enabled before setting it up
The construct: if (callchain_param) perf_evsel__config_callchain(evsel, opts, &callchain_param); happens in several places, so make perf_evsel__config_callchain() work just like free(NULL), do nothing if param->enabled is not set. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Hendrick Brueckner <brueckner@linux.vnet.ibm.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Thomas Richter <tmricht@linux.vnet.ibm.com> Cc: Wang Nan <wangnan0@huawei.com> Link: https://lkml.kernel.org/n/tip-ykk0qzxnxwx3o611ctjnmxav@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions