-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drc: move logging context to the base image
Logging context can be accessed from the deferred logging thread. Therefore it must be always available to avoid access to unmapped memory when an LLEXT module is unloaded. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
- Loading branch information
Showing
4 changed files
with
33 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
add_local_sources(sof drc.c) | ||
add_local_sources(sof drc_generic.c) | ||
add_local_sources(sof drc_hifi3.c) | ||
add_local_sources(sof drc_hifi4.c) | ||
add_local_sources(sof drc_math_generic.c) | ||
add_local_sources(sof drc_math_hifi3.c) | ||
add_local_sources(sof | ||
drc.c | ||
drc_generic.c | ||
drc_hifi3.c | ||
drc_hifi4.c | ||
drc_math_generic.c | ||
drc_math_hifi3.c | ||
drc_log.c | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
// | ||
// Copyright(c) 2024 Intel Corporation. | ||
|
||
#include <rtos/symbol.h> | ||
#include <sof/lib/uuid.h> | ||
#include <sof/trace/trace.h> | ||
#include <user/trace.h> | ||
|
||
SOF_DEFINE_REG_UUID(drc); | ||
LOG_MODULE_REGISTER(drc, CONFIG_SOF_LOG_LEVEL); | ||
DECLARE_TR_CTX(drc_tr, SOF_UUID(drc_uuid), LOG_LEVEL_INFO); | ||
EXPORT_SYMBOL(drc_tr); | ||
EXPORT_SYMBOL(drc_uuid); | ||
EXPORT_SYMBOL(log_const_drc); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters