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

ipc: openamp: Expose config options for MASTER/SLAVE builds #14750

Merged
merged 1 commit into from
Mar 27, 2020

Conversation

galak
Copy link
Collaborator

@galak galak commented Mar 20, 2019

We can build the openamp library configured with VirtIO master
support, VirtIO slave support, or both. By default both master
and slave code is enabled. We can reduce code footprint by only
build master or slave as needed.

Expose Kconfig options for Master & Slave and set them accordingly in
the sample.

Here's the code reduction we see:

For the total image we see as 1260 byte reduction:
Memory region Used Size Region Size %age Used
FLASH [Master & Slave]: 30308 B 256 KB 11.56%
FLASH [Master only] : 29048 B 256 KB 11.08%

On the remote side we see a 828 byte reduction:

Memory region Used Size Region Size %age Used
FLASH [Master & Slave]: 11564 B 64 KB 17.65%
FLASH [Slave only] : 10736 B 64 KB 16.38%

Signed-off-by: Kumar Gala kumar.gala@linaro.org

@codecov-io
Copy link

Codecov Report

Merging #14750 into master will increase coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #14750      +/-   ##
==========================================
+ Coverage    52.5%    52.5%   +<.01%     
==========================================
  Files         309      309              
  Lines       45046    45047       +1     
  Branches    10417    10418       +1     
==========================================
+ Hits        23653    23654       +1     
- Misses      16585    16586       +1     
+ Partials     4808     4807       -1
Impacted Files Coverage Δ
include/net/ethernet.h 48.71% <0%> (-5.13%) ⬇️
subsys/net/ip/tcp.c 58.07% <0%> (-0.06%) ⬇️
subsys/net/ip/ipv6.c 55.81% <0%> (+0.25%) ⬆️
subsys/net/ip/udp.c 69.44% <0%> (+0.43%) ⬆️
subsys/net/ip/ipv4.c 62.16% <0%> (+0.9%) ⬆️
arch/posix/core/posix_core.c 91.91% <0%> (+1.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update db90e24...47ff6d3. Read the comment docs.

@galak galak requested a review from arnopo July 27, 2019 12:50
@galak galak added the area: IPC Inter-Process Communication label Jul 27, 2019
@galak galak mentioned this pull request Mar 26, 2020
@galak galak requested a review from nashif as a code owner March 26, 2020 21:20
@galak
Copy link
Collaborator Author

galak commented Mar 26, 2020

Updated open-amp module in this pr zephyrproject-rtos/open-amp#5

@galak galak requested a review from arnopo March 26, 2020 21:22
@galak galak added the DNM This PR should not be merged (Do Not Merge) label Mar 26, 2020
We can build the openamp library configured with VirtIO master
support, VirtIO slave support, or both.  By default both master
and slave code is enabled.  We can reduce code footprint by only
build master or slave as needed.

Expose Kconfig options for Master & Slave and set them accordingly in
the sample.

Here's the code reduction we see:

For the total image we see as 1260 byte reduction:
Memory region         Used Size  Region Size  %age Used
 FLASH [Master & Slave]:       30308 B       256 KB     11.56%
 FLASH [Master only]   :       29048 B       256 KB     11.08%

On the remote side we see a 828 byte reduction:

Memory region         Used Size  Region Size  %age Used
 FLASH [Master & Slave]:       11564 B        64 KB     17.65%
 FLASH [Slave only]    :       10736 B        64 KB     16.38%

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
@galak galak removed the DNM This PR should not be merged (Do Not Merge) label Mar 27, 2020
@galak galak merged commit 12ca04b into zephyrproject-rtos:master Mar 27, 2020
@galak galak deleted the openamp-cfg branch March 27, 2020 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: IPC Inter-Process Communication area: Modules area: Samples Samples
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants