projects/linux·blob master · refs

22 lines · 553 B

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