perf tools: Refine parse/config callchain functions
authorKan Liang <kan.liang@intel.com>
Tue, 4 Aug 2015 08:30:20 +0000 (04:30 -0400)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 5 Aug 2015 19:42:11 +0000 (16:42 -0300)
commitc3a6a8c40538f609923acf9473250266283269a5
tree45cbe3f333405aa0f2721f6b61579b80a0246750
parent320677123905fd1dd122895cd5fb870ee9e1380b
perf tools: Refine parse/config callchain functions

Pass global callchain_param into parse_callchain_record_opt and
perf_evsel__config_callgraph as parameter. So we can reuse these
functions to parse/config local param for callchain.

Signed-off-by: Kan Liang <kan.liang@intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/1438677022-34296-3-git-send-email-kan.liang@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-record.c
tools/perf/util/callchain.c
tools/perf/util/callchain.h
tools/perf/util/evsel.c