perf data ctf: Generate comm event to CTF output
authorWang Nan <wangnan0@huawei.com>
Fri, 24 Jun 2016 11:22:10 +0000 (11:22 +0000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 28 Jun 2016 13:54:57 +0000 (10:54 -0300)
commitf5a08ceda55bee91f879d2ac19edeb4a8916d04f
tree705f7815e5b26a3a6ecd049061942e20afc7c93e
parent8ee4c46c5ec2481dd18098c5604f791ff911d427
perf data ctf: Generate comm event to CTF output

If 'all' is selected, convert comm event to output CTF stream.

setup_non_sample_events() is called if non_sample is selected. It
creates a comm_class for comm event.

Use macros to generate and process_comm_event and add_comm_event. These
macros can be reused for other non-sample events.

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-6-git-send-email-wangnan0@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/data-convert-bt.c