data-convert.h 535 B

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