Skip to content

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 <jyri.sarha@linux.intel.com>
Add declaration for symbol probe_is_backend_configured().

Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
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 <jyri.sarha@linux.intel.com>
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 <jyri.sarha@linux.intel.com>
The declarations do not cause any harm, even if the implementation is
not compiled in.

Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
Export base firmware symbols needed for modular probes.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
Remove the single assert() pulls in problematic symbols for llext.

Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
To build PROBE as module just set CONFIG_PROBE=m in Kconfig.

Signed-off-by: Jyri Sarha <jyri.sarha@linux.intel.com>
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.

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


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.

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
38 of 41 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