Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf data ctf: Add 'all' option

If 'all' option is selected, 'perf data convert' should convert not only
samples, but non-sample events such as comm and fork. Add this option in
perf_data_convert_opts. Following commits will add cmdline option to
select it.

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-4-git-send-email-wangnan0@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Wang Nan and committed by
Arnaldo Carvalho de Melo
f02a6489 3275f68e

+2
+1
tools/perf/builtin-data.c
··· 56 56 const char *to_ctf = NULL; 57 57 struct perf_data_convert_opts opts = { 58 58 .force = false, 59 + .all = false, 59 60 }; 60 61 const struct option options[] = { 61 62 OPT_INCR('v', "verbose", &verbose, "be more verbose"),
+1
tools/perf/util/data-convert.h
··· 3 3 4 4 struct perf_data_convert_opts { 5 5 bool force; 6 + bool all; 6 7 }; 7 8 8 9 #endif /* __DATA_CONVERT_H */