perf record: Export record_opts based callchain parsing helper
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 15 Apr 2016 19:37:17 +0000 (16:37 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 15 Apr 2016 19:37:17 +0000 (16:37 -0300)
commit0883e820a0ac18e04f036dbebc3580351d7fd6cf
treec03348f9b88046bfcdd7d0a656e6fe06df3c51c2
parent5cf9c84e21067ec7a44648aedbc38c197d707258
perf record: Export record_opts based callchain parsing helper

To be able to call it outside option parsing, like when setting a
default --call-graph parameter in 'perf trace' when just --min-stack is
used.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-xay69plylwibpb3l4isrpl1k@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-record.c
tools/perf/util/callchain.h