Skip to content

Commit

Permalink
llext: export symbols needed for probes
Browse files Browse the repository at this point in the history
Export base firmware symbols needed for modular probes.

Signed-off-by: Guennadi Liakhovetski <[email protected]>
Signed-off-by: Jyri Sarha <[email protected]>
  • Loading branch information
lyakh authored and kv2019i committed Nov 20, 2024
1 parent 717f85e commit 724408e
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/init/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <sof/trace/trace.h>
#include <rtos/idc.h>
#include <rtos/string_macro.h>
#include <rtos/symbol.h>
#include <sof/schedule/schedule.h>
#include <sof/schedule/edf_schedule.h>
#include <sof/schedule/dp_schedule.h>
Expand Down Expand Up @@ -53,6 +54,7 @@ struct sof *sof_get(void)
{
return &sof;
}
EXPORT_SYMBOL(sof_get);

#if CONFIG_NO_SECONDARY_CORE_ROM
/**
Expand Down
2 changes: 2 additions & 0 deletions src/ipc/ipc-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <sof/audio/pipeline.h>
#include <sof/common.h>
#include <rtos/idc.h>
#include <rtos/symbol.h>
#include <sof/ipc/topology.h>
#include <sof/ipc/common.h>
#include <sof/ipc/msg.h>
Expand Down Expand Up @@ -95,6 +96,7 @@ struct ipc_comp_dev *ipc_get_comp_dev(struct ipc *ipc, uint16_t type, uint32_t i

return NULL;
}
EXPORT_SYMBOL(ipc_get_comp_dev);

/* Walks through the list of components looking for a sink/source endpoint component
* of the given pipeline
Expand Down
4 changes: 4 additions & 0 deletions src/lib/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <sof/lib/memory.h>
#include <sof/lib/uuid.h>
#include <rtos/spinlock.h>
#include <rtos/symbol.h>
#include <sof/trace/trace.h>
#include <ipc/topology.h>
#include <user/trace.h>
Expand Down Expand Up @@ -278,6 +279,8 @@ void dma_put(struct dma *dma)
k_spin_unlock(&dma->lock, key);
}
#endif
EXPORT_SYMBOL(dma_get);
EXPORT_SYMBOL(dma_put);

int dma_sg_alloc(struct dma_sg_elem_array *elem_array,
enum mem_zone zone,
Expand Down Expand Up @@ -318,6 +321,7 @@ void dma_sg_free(struct dma_sg_elem_array *elem_array)
rfree(elem_array->elems);
dma_sg_init(elem_array);
}
EXPORT_SYMBOL(dma_sg_free);

int dma_buffer_copy_from(struct comp_buffer *source,
struct comp_buffer *sink,
Expand Down
3 changes: 3 additions & 0 deletions src/lib/notifier.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <sof/lib/uuid.h>
#include <sof/list.h>
#include <rtos/sof.h>
#include <rtos/symbol.h>
#include <ipc/topology.h>
#include <stdint.h>

Expand Down Expand Up @@ -78,6 +79,7 @@ int notifier_register(void *receiver, void *caller, enum notify_id type,
k_spin_unlock(&notify->lock, key);
return ret;
}
EXPORT_SYMBOL(notifier_register);

void notifier_unregister(void *receiver, void *caller, enum notify_id type)
{
Expand Down Expand Up @@ -114,6 +116,7 @@ void notifier_unregister(void *receiver, void *caller, enum notify_id type)

k_spin_unlock(&notify->lock, key);
}
EXPORT_SYMBOL(notifier_unregister);

void notifier_unregister_all(void *receiver, void *caller)
{
Expand Down
2 changes: 2 additions & 0 deletions src/schedule/zephyr_ll.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include <sof/list.h>
#include <rtos/spinlock.h>
#include <rtos/symbol.h>
#include <sof/audio/component.h>
#include <rtos/interrupt.h>
#include <sof/lib/notifier.h>
Expand Down Expand Up @@ -522,6 +523,7 @@ int zephyr_ll_task_init(struct task *task,

return 0;
}
EXPORT_SYMBOL(zephyr_ll_task_init);

/* TODO: low-power mode clock support */
/* Runs on each core during initialisation with the same domain argument */
Expand Down
2 changes: 2 additions & 0 deletions zephyr/schedule.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <sof/schedule/edf_schedule.h>
#include <sof/schedule/ll_schedule.h>
#include <rtos/alloc.h>
#include <rtos/symbol.h>
#include <sof/lib/cpu.h>
#include <ipc/topology.h>

Expand All @@ -22,3 +23,4 @@ struct schedulers **arch_schedulers_get(void)
{
return _schedulers + cpu_get_id();
}
EXPORT_SYMBOL(arch_schedulers_get);

0 comments on commit 724408e

Please sign in to comment.