xref: /linux/tools/perf/util/data-convert.h (revision bf4afc53b77aeaa48b5409da5c8da6bb4eff7f43)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __DATA_CONVERT_H
3 #define __DATA_CONVERT_H
4 
5 #include <stdbool.h>
6 
7 struct perf_data_convert_opts {
8 	bool force;
9 	bool all;
10 	bool tod;
11 	const char *time_str;
12 };
13 
14 #ifdef HAVE_LIBBABELTRACE_SUPPORT
15 int bt_convert__perf2ctf(const char *input_name, const char *to_ctf,
16 			 struct perf_data_convert_opts *opts);
17 #endif /* HAVE_LIBBABELTRACE_SUPPORT */
18 
19 int bt_convert__perf2json(const char *input_name, const char *to_ctf,
20 			 struct perf_data_convert_opts *opts);
21 
22 #endif /* __DATA_CONVERT_H */
23