1 /* SPDX-License-Identifier: BSD-3-Clause 2 * 3 * Copyright(c) 2018 Intel Corporation. All rights reserved. 4 * 5 * Author: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com> 6 * Artur Kloniecki <arturx.kloniecki@linux.intel.com> 7 */ 8 9 /* 10 * debug log converter interface. 11 */ 12 13 #include <stdio.h> 14 #include <ipc/info.h> 15 #include <smex/ldc.h> 16 #include <sof/lib/uuid.h> 17 18 #define KNRM "\x1B[0m" 19 #define KRED "\x1B[31m" 20 #define KGRN "\x1B[32m" 21 #define KYEL "\x1B[33m" 22 #define KBLU "\x1B[34m" 23 24 struct convert_config { 25 const char *out_file; 26 const char *in_file; 27 FILE *out_fd; 28 FILE *in_fd; 29 double clock; 30 int trace; 31 const char *ldc_file; 32 FILE* ldc_fd; 33 char *filter_config; 34 int input_std; 35 int version_fw; 36 char *version_file; 37 FILE *version_fd; 38 int use_colors; 39 int serial_fd; 40 int raw_output; 41 int dump_ldc; 42 int hide_location; 43 int relative_timestamps; 44 int time_precision; 45 struct snd_sof_uids_header *uids_dict; 46 struct snd_sof_logs_header *logs_header; 47 }; 48 49 uint32_t get_uuid_key(const struct sof_uuid_entry *entry); 50 int convert(struct convert_config *config); 51