forked from thesofproject/sof
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconvert.h
More file actions
54 lines (47 loc) · 1.11 KB
/
convert.h
File metadata and controls
54 lines (47 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright(c) 2018 Intel Corporation. All rights reserved.
*
* Author: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
* Artur Kloniecki <arturx.kloniecki@linux.intel.com>
*/
/*
* debug log converter interface.
*/
#include <stdio.h>
#include <ipc/info.h>
#include <smex/ldc.h>
#include <sof/lib/uuid.h>
#define KNRM "\x1B[0m"
#define KRED "\x1B[31m"
#define KGRN "\x1B[32m"
#define KYEL "\x1B[33m"
#define KBLU "\x1B[34m"
struct convert_config {
const char *out_file;
const char *in_file;
FILE *out_fd;
FILE *in_fd;
double clock;
int trace;
const char *ldc_file;
FILE* ldc_fd;
char *filter_config;
int input_std;
int version_fw;
char *version_file;
FILE *version_fd;
int use_colors;
int serial_fd;
int raw_output;
int dump_ldc;
int hide_location;
int relative_timestamps;
int time_precision;
struct snd_sof_uids_header *uids_dict;
struct snd_sof_logs_header *logs_header;
};
uint32_t get_uuid_key(const struct sof_uuid_entry *entry);
/* pointer to config for global context */
extern struct convert_config * const global_config;
int convert(void);