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

llext: Some small fixes and reduce sample memory usage #64707

Merged
merged 3 commits into from
Nov 8, 2023

Conversation

teburd
Copy link
Collaborator

@teburd teburd commented Nov 1, 2023

Reduces quite a bit the sample shell_loader's memory usage so it may run on smaller devices. Re-adds the memory usage tracking that was mistakenly dropped at some point.

Reduce the heap and stack sizes needed for the shell loader sample app
so more devices may try it out.

Tried on a mimxrt1010_evk and noted the total ram usage was
approximately 44000 bytes. Prior to this change the mimxrt1010_evk was
unable to run the sample as the bss section overflowed the ram size.

Signed-off-by: Tom Burdick <[email protected]>
The memory usage shown in the shell was 0 which is obviously incorrect.
At some point the memory allocation tracking was dropped from llext.c
mistakenly. Add it back.

Signed-off-by: Tom Burdick <[email protected]>
Remove unnecessary newline characters from shell_print, it already adds
them. Align the table pipe characters better in the list of modules.

Signed-off-by: Tom Burdick <[email protected]>
Copy link
Collaborator

@de-nordic de-nordic left a comment

Choose a reason for hiding this comment

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

Fixes #64643. Thanks!

@carlescufi carlescufi merged commit 982cc79 into zephyrproject-rtos:main Nov 8, 2023
17 checks passed
@henrikbrixandersen henrikbrixandersen added the area: llext Linkable Loadable Extensions label Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: llext Linkable Loadable Extensions area: Samples Samples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants