sof/tools/logger/convert.h

42 lines
1020 B
C
Raw Normal View History

/*
* debug log converter interface.
*
* Copyright (c) 2018, Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*/
#include <stdio.h>
#include <uapi/user/trace.h>
#include <uapi/ipc/info.h>
#include <rimage/file_format.h>
#define KNRM "\x1B[0m"
#define KRED "\x1B[31m"
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;
int input_std;
int version_fw;
char *version_file;
FILE *version_fd;
int use_colors;
int serial_fd;
int raw_output;
};
int convert(const struct convert_config *config);