]> git.karo-electronics.de Git - linux-beck.git/commitdiff
perf data ctf: Add 'all' option
authorWang Nan <wangnan0@huawei.com>
Fri, 24 Jun 2016 11:22:08 +0000 (11:22 +0000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 28 Jun 2016 13:54:56 +0000 (10:54 -0300)
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>
tools/perf/builtin-data.c
tools/perf/util/data-convert.h

index 38111a97d9000d6764e041f79af8748efc3ce7af..ddfe3ac4c7f775aa91eac650d84ad646a335f94e 100644 (file)
@@ -56,6 +56,7 @@ static int cmd_data_convert(int argc, const char **argv,
        const char *to_ctf     = NULL;
        struct perf_data_convert_opts opts = {
                .force = false,
+               .all = false,
        };
        const struct option options[] = {
                OPT_INCR('v', "verbose", &verbose, "be more verbose"),
index 97cfd36aab6fd997e515353588fc94a9638621ff..5314962fe95bbf89b29f6d61eb4bcbac8808b2b5 100644 (file)
@@ -3,6 +3,7 @@
 
 struct perf_data_convert_opts {
        bool force;
+       bool all;
 };
 
 #endif /* __DATA_CONVERT_H */