perf data ctf: Pass convert options through opts structure
authorWang Nan <wangnan0@huawei.com>
Fri, 24 Jun 2016 11:22:07 +0000 (11:22 +0000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 28 Jun 2016 13:54:55 +0000 (10:54 -0300)
commit3275f68e50290acd04612c6af41173fe83fdf4b0
tree400cc48e0a9cb697f90bbd2399045639c00fc5ec
parent069ee5c488d161f539bb897b1bc64b83f9773221
perf data ctf: Pass convert options through opts structure

Following commits will add new option to 'perf data convert'. All options
should be grouped into a structure and passed to low level converter
(currently there's only one converter).

Introduce data-convert.h and define 'struct perf_data_convert_opts' in
it. Pass 'force' through opts.

Signed-off-by: Wang Nan <wangnan0@huawei.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Zefan Li <lizefan@huawei.com>
Cc: pi3orama@163.com
Link: http://lkml.kernel.org/r/1466767332-114472-3-git-send-email-wangnan0@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-data.c
tools/perf/util/data-convert-bt.c
tools/perf/util/data-convert-bt.h
tools/perf/util/data-convert.h [new file with mode: 0644]