Skip to content

Probe llext - #9643

Merged
kv2019i merged 8 commits into
thesofproject:mainfrom
jsarha:probe_llext
Nov 20, 2024
Merged

kv2019i merged 8 commits into
thesofproject:mainfrom
jsarha:probe_llext

Conversation

@jsarha

@jsarha jsarha commented Nov 7, 2024

Copy link
Copy Markdown
Contributor

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

@jsarha

jsarha commented Nov 7, 2024

Copy link
Copy Markdown
Contributor Author

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]>
Comment thread src/include/sof/probe/probe.h Resolved
Comment thread zephyr/CMakeLists.txt 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]>

@lgirdwood lgirdwood left a comment

Copy link
Copy Markdown
Member

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.

Comment thread src/probe/probe.c Resolved
@jsarha

jsarha commented Nov 14, 2024 •

Copy link
Copy Markdown
Contributor Author

@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.

Comment thread src/probe/Kconfig

config PROBE_POINTS_MAX
int "Maximum probe points"
depends on PROBE

Copy link
Copy Markdown
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

@kv2019i kv2019i left a comment

Copy link
Copy Markdown
Collaborator

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.

Comment thread src/probe/Kconfig
config PROBE
bool "Probes enabled"
tristate "Probes enabled"
default m if LIBRARY_DEFAULT_MODULAR

Copy link
Copy Markdown
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
Copy Markdown
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

kv2019i commented Nov 20, 2024

Copy link
Copy Markdown
Collaborator

@kv2019i
kv2019i merged commit 7718e43 into thesofproject:main Nov 20, 2024
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