mirror of https://github.com/thesofproject/sof.git
trace: move struct definition out of header
Moves trace struct definition out of header. It isn't used anywhere besides trace unit. Signed-off-by: Tomasz Lauda <tomasz.lauda@linux.intel.com>
This commit is contained in:
parent
a133d5d52a
commit
1df122dad1
|
@ -20,7 +20,6 @@
|
||||||
#endif
|
#endif
|
||||||
#include <sof/common.h>
|
#include <sof/common.h>
|
||||||
#include <sof/sof.h>
|
#include <sof/sof.h>
|
||||||
#include <sof/spinlock.h>
|
|
||||||
#include <sof/trace/preproc.h>
|
#include <sof/trace/preproc.h>
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
@ -29,12 +28,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct sof;
|
struct sof;
|
||||||
|
struct trace;
|
||||||
struct trace {
|
|
||||||
uint32_t pos ; /* trace position */
|
|
||||||
uint32_t enable;
|
|
||||||
spinlock_t lock; /* locking mechanism */
|
|
||||||
};
|
|
||||||
|
|
||||||
/* bootloader trace values */
|
/* bootloader trace values */
|
||||||
#define TRACE_BOOT_LDR_ENTRY 0x100
|
#define TRACE_BOOT_LDR_ENTRY 0x100
|
||||||
|
|
|
@ -23,6 +23,12 @@
|
||||||
#include <user/trace.h>
|
#include <user/trace.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
struct trace {
|
||||||
|
uint32_t pos ; /* trace position */
|
||||||
|
uint32_t enable;
|
||||||
|
spinlock_t lock; /* locking mechanism */
|
||||||
|
};
|
||||||
|
|
||||||
/* calculates total message size, both header and payload in bytes */
|
/* calculates total message size, both header and payload in bytes */
|
||||||
#define MESSAGE_SIZE(args_num) \
|
#define MESSAGE_SIZE(args_num) \
|
||||||
(sizeof(struct log_entry_header) + args_num * sizeof(uint32_t))
|
(sizeof(struct log_entry_header) + args_num * sizeof(uint32_t))
|
||||||
|
|
Loading…
Reference in New Issue