Skip to content
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

Probe llext #9643

Merged
merged 8 commits into from
Nov 20, 2024
Merged

Probe llext #9643

merged 8 commits into from
Nov 20, 2024

Conversation

jsarha
Copy link
Contributor

@jsarha jsarha commented Nov 7, 2024

For probe llext module to work, this zephyrproject-rtos/zephyr#81098 needs to be merged to Zephyr tree.

@jsarha
Copy link
Contributor Author

jsarha commented Nov 7, 2024

FYI @lyakh

Jyri Sarha added 3 commits November 8, 2024 00:23
Fix copy-paste error from SOF_MODULE_INIT() macro call.

Signed-off-by: Jyri Sarha <[email protected]>
Add declaration for symbol probe_is_backend_configured().

Signed-off-by: Jyri Sarha <[email protected]>
The probe logging back-end does not use the ctx argument of
log_backend_activate() for anything and putting the hook-function
there is just a result of brainless copy-pasting from mtrace
implementation.

Signed-off-by: Jyri Sarha <[email protected]>
src/include/sof/probe/probe.h Outdated Show resolved Hide resolved
zephyr/CMakeLists.txt Outdated Show resolved Hide resolved
Jyri Sarha and others added 5 commits November 13, 2024 00:05
The only valid log identifier should be full_id == 0, not anything
with module_id == 0.

This is not a functional problems as 0 should not be a valid module_id
value.

Signed-off-by: Jyri Sarha <[email protected]>
The declarations do not cause any harm, even if the implementation is
not compiled in.

Signed-off-by: Jyri Sarha <[email protected]>
Export base firmware symbols needed for modular probes.

Signed-off-by: Guennadi Liakhovetski <[email protected]>
Signed-off-by: Jyri Sarha <[email protected]>
Remove the single assert() pulls in problematic symbols for llext.

Signed-off-by: Jyri Sarha <[email protected]>
To build PROBE as module just set CONFIG_PROBE=m in Kconfig.

Signed-off-by: Jyri Sarha <[email protected]>
Copy link
Member

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jsarha any reason still draft ? Still validating - BTW LGTM.

src/probe/probe.c Show resolved Hide resolved
@jsarha
Copy link
Contributor Author

jsarha commented Nov 14, 2024

@jsarha any reason still draft ? Still validating - BTW LGTM.

I was waiting for zephyrproject-rtos/zephyr#81098 to be merged, but since it now has already two approvas, I think its Ok now to mark this ready for review.

default y if CAVS
help
Select for enabling debug probes to extract/inject buffers

if PROBE != n

config PROBE_POINTS_MAX
int "Maximum probe points"
depends on PROBE
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think now with the if above you don't need these depends any more - here and below?

@kv2019i kv2019i changed the title Probe llext Probe llext (depends on Zephyr 81098) Nov 19, 2024
Copy link
Collaborator

@kv2019i kv2019i left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks ok to me. I guess we have to wait for the Zephyr PR to be merged as this series enables module build.

@@ -5,11 +5,14 @@
menu "Probe"

config PROBE
bool "Probes enabled"
tristate "Probes enabled"
default m if LIBRARY_DEFAULT_MODULAR
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this means we can't merge this before the Zephyr PR is merged...

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kv2019i as confirmed by @jsarha with our default configurations setting CONFIG_PROBE=y nothing should break if this is merged before any Zephyr support code

@kv2019i kv2019i changed the title Probe llext (depends on Zephyr 81098) Probe llext Nov 20, 2024
@kv2019i
Copy link
Collaborator

kv2019i commented Nov 20, 2024

sof-docs fail and Intel LNL fails all known and tracked in https://github.com/thesofproject/sof/issues?q=is%3Aissue+is%3Aopen+label%3A%22Intel+Linux+Daily+tests%22

@kv2019i kv2019i merged commit 7718e43 into thesofproject:main Nov 20, 2024
42 of 47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants