-
Notifications
You must be signed in to change notification settings - Fork 349
trace: Put global trace context entries to separate section #2996
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
b9de9a1 to
feb67ea
Compare
src/include/sof/trace/trace.h
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I extended commit description
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ktrzcinx thanks! Looks good to me.
feb67ea to
710627d
Compare
|
@ktrzcinx can you check CI |
To allow changing trace level of global elements, like system agent or component driver, than it must be possible to find corresponding trace context. It is the first step to allow iterating over the trace context entries and find what we are looking for. Linker variables _trace_ctx_start and _trace_ctx_end will be needed to know this section size in runtime code. Signed-off-by: Karol Trzcinski <karolx.trzcinski@linux.intel.com>
710627d to
74bc4be
Compare
|
Small fix was needed - do not specify target section during unit test build. Now should be ok. |
|
Response for Liam question is in #2920 (comment) |
@lgirdwood I think this is for trace section only, there should be no dependency to mine. |
The CAVS linker scripts in Zephyr and "plain" (XTOS) SOF seem to share the same origin and they mostly duplicate each other so they naturally keep diverging from each other. This commit catches up with the SOF commit ef43899c580f (thesofproject/sof/pull/2996) which added the *(.trace_ctx) sections as part of the runtime log filtering implementation (feature request thesofproject/sof/issues/2172) Paraphrasing that commit, the goal is to create at link time a C-like array by regrouping scattered trace contexts so they can be iterated on. Together with some other changes in SOF, these 3 additional lines are enough change in Zephyr to fix SOF bug thesofproject/sof/issues/5032 Signed-off-by: Marc Herbert <marc.herbert@intel.com>
The CAVS linker scripts in Zephyr and "plain" (XTOS) SOF seem to share the same origin and they mostly duplicate each other so they naturally keep diverging from each other. This commit catches up with the SOF commit ef43899c580f (thesofproject/sof/pull/2996) which added the *(.trace_ctx) sections as part of the runtime log filtering implementation (feature request thesofproject/sof/issues/2172) Paraphrasing that commit, the goal is to create at link time a C-like array by regrouping scattered trace contexts so they can be iterated on. Together with some other changes in SOF, these 3 additional lines are enough change in Zephyr to fix SOF bug thesofproject/sof/issues/5032 Signed-off-by: Marc Herbert <marc.herbert@intel.com>
The CAVS linker scripts in Zephyr and "plain" (XTOS) SOF seem to share the same origin and they mostly duplicate each other so they naturally keep diverging from each other. This commit catches up with the SOF commit ef43899c580f (thesofproject/sof/pull/2996) which added the *(.trace_ctx) sections as part of the runtime log filtering implementation (feature request thesofproject/sof/issues/2172) Paraphrasing that commit, the goal is to create at link time a C-like array by regrouping scattered trace contexts so they can be iterated on. Together with some other changes in SOF, these 3 additional lines are enough change in Zephyr to fix SOF bug thesofproject/sof/issues/5032 (cherry picked from commit 9a1c5ec) Signed-off-by: Marc Herbert <marc.herbert@intel.com> GitOrigin-RevId: 9a1c5ec Change-Id: I5ecc06b5e5a7bd208cf6cdea4aa91c31bd4b25ec Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/3347405 Tested-by: CopyBot Service Account <copybot.service@gmail.com> Reviewed-by: Tristan Honscheid <honscheid@google.com> Commit-Queue: Tristan Honscheid <honscheid@google.com>
It is the first step to allow iterating over the trace context
entries and of search for the right one.
Signed-off-by: Karol Trzcinski karolx.trzcinski@linux.intel.com
It's a part of #2965