mirror of https://github.com/thesofproject/sof.git
test: fix: add log memory section
Signed-off-by: Janusz Jankowski <janusz.jankowski@linux.intel.com>
This commit is contained in:
parent
902662dc0b
commit
ccc9296498
|
@ -39,6 +39,16 @@ endif
|
|||
|
||||
LDADD = -lcmocka
|
||||
|
||||
# generate linker script
|
||||
LINK_SCRIPT = memory_mock.x
|
||||
|
||||
BUILT_SOURCES = $(LINK_SCRIPT)
|
||||
CLEANFILES = $(LINK_SCRIPT)
|
||||
$(LINK_SCRIPT): Makefile $(LINK_SCRIPT).in
|
||||
cat $(LINK_SCRIPT).in | $(CPP) -P $(PLATFORM_INCDIR) $(SOF_INCDIR) - >$@
|
||||
|
||||
AM_LDFLAGS += -T $(LINK_SCRIPT)
|
||||
|
||||
# mixer tests
|
||||
check_PROGRAMS += mixer
|
||||
mixer_SOURCES = src/audio/mixer/mixer_test.c \
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
SECTIONS
|
||||
{
|
||||
|
||||
.static_log_entries (COPY) : ALIGN(1024)
|
||||
{
|
||||
*(*.static_log*)
|
||||
}
|
||||
|
||||
}
|
||||
INSERT AFTER .text;
|
|
@ -33,14 +33,15 @@
|
|||
|
||||
#include <sof/alloc.h>
|
||||
|
||||
void _trace_event(uint32_t e)
|
||||
void _trace_event0(uint32_t log_entry)
|
||||
{
|
||||
(void)e;
|
||||
(void)log_entry;
|
||||
}
|
||||
|
||||
void _trace_event_mbox_atomic(uint32_t e)
|
||||
void _trace_event1(uint32_t log_entry, uint32_t param)
|
||||
{
|
||||
(void)e;
|
||||
(void)log_entry;
|
||||
(void)param;
|
||||
}
|
||||
|
||||
void *rzalloc(int zone, uint32_t caps, size_t bytes)
|
||||
|
|
|
@ -34,9 +34,15 @@
|
|||
#include <sof/alloc.h>
|
||||
#include <sof/trace.h>
|
||||
|
||||
void _trace_event_mbox_atomic(uint32_t e)
|
||||
void _trace_event0(uint32_t log_entry)
|
||||
{
|
||||
(void)e;
|
||||
(void)log_entry;
|
||||
}
|
||||
|
||||
void _trace_event1(uint32_t log_entry, uint32_t param)
|
||||
{
|
||||
(void)log_entry;
|
||||
(void)param;
|
||||
}
|
||||
|
||||
void *rzalloc(int zone, uint32_t caps, size_t bytes)
|
||||
|
|
|
@ -38,14 +38,15 @@
|
|||
|
||||
#include "comp_mock.h"
|
||||
|
||||
void _trace_event(uint32_t e)
|
||||
void _trace_event0(uint32_t log_entry)
|
||||
{
|
||||
(void)e;
|
||||
(void)log_entry;
|
||||
}
|
||||
|
||||
void _trace_event_mbox_atomic(uint32_t e)
|
||||
void _trace_event1(uint32_t log_entry, uint32_t param)
|
||||
{
|
||||
(void)e;
|
||||
(void)log_entry;
|
||||
(void)param;
|
||||
}
|
||||
|
||||
void *rballoc(int zone, uint32_t caps, size_t bytes)
|
||||
|
|
|
@ -79,12 +79,13 @@ int ipc_stream_send_xrun(struct comp_dev *cdev,
|
|||
return 0;
|
||||
}
|
||||
|
||||
void _trace_event(uint32_t event)
|
||||
void _trace_event0(uint32_t log_entry)
|
||||
{
|
||||
(void)event;
|
||||
(void)log_entry;
|
||||
}
|
||||
|
||||
void _trace_event_mbox_atomic(uint32_t event)
|
||||
void _trace_event1(uint32_t log_entry, uint32_t param)
|
||||
{
|
||||
(void)event;
|
||||
(void)log_entry;
|
||||
(void)param;
|
||||
}
|
||||
|
|
|
@ -48,8 +48,15 @@ int dma_copy_to_host(struct dma_copy *dc, struct dma_sg_config *host_sg,
|
|||
return 0;
|
||||
}
|
||||
|
||||
void _trace_event_mbox_atomic(uint32_t e)
|
||||
void _trace_event0(uint32_t log_entry)
|
||||
{
|
||||
(void)log_entry;
|
||||
}
|
||||
|
||||
void _trace_event1(uint32_t log_entry, uint32_t param)
|
||||
{
|
||||
(void)log_entry;
|
||||
(void)param;
|
||||
}
|
||||
|
||||
void trace_flush(void)
|
||||
|
|
Loading…
Reference in New Issue