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

The Linux platform KVS init should ignore multiple init calls #15963

Conversation

harsha-rajendran
Copy link
Contributor

Problem

The Linux KVS should ignore multiple calls to Init().

As an example, all Linux applications initialize the KVS (based on a custom provided path) in ChipLinuxAppInit(). Immediately following this, the KVS gets "re-initialized" in InitChipStack(), due to the change in #15741.
Ideally we will need to trace all Init() calls and ensure an application has just one such call, but that's probably a different story.

Change overview

Return from Init() safely if called again

Testing

  • Ensured that the custom KVS path was actually utilized and data written to/read from.
  • OTA application was broken on Linux and it works now.

@github-actions
Copy link

github-actions bot commented Mar 8, 2022

PR #15963: Size comparison from 2822511 to 0dab87c

Increases (11 builds for linux)
platform target config section 2822511 0dab87c change % change
linux all-clusters-app debug (read only) 2426809 2426921 112 0.0
(read/write) 145600 145664 64 0.0
.bss 60128 60192 64 0.1
.text 2058434 2058546 112 0.0
bridge-app debug+rpc (read only) 1731837 1731949 112 0.0
(read/write) 92560 92592 32 0.0
.bss 47432 47464 32 0.1
.text 1474213 1474325 112 0.0
chip-tool debug (read only) 9758533 9758645 112 0.0
(read/write) 338488 338520 32 0.0
.bss 25512 25544 32 0.1
.text 8508373 8508485 112 0.0
chip-tool-ipv6only arm64 (read only) 9430548 9430644 96 0.0
(read/write) 454177 454209 32 0.0
.bss 43825 43857 32 0.1
.text 7940244 7940340 96 0.0
door-lock-app debug (read only) 1946161 1946273 112 0.0
(read/write) 119008 119072 64 0.1
.bss 50432 50496 64 0.1
.text 1623954 1624066 112 0.0
lighting-app debug+rpc (read only) 2078233 2078345 112 0.0
(read/write) 124376 124440 64 0.1
.bss 51264 51328 64 0.1
.text 1756866 1756978 112 0.0
ota-provider-app debug (read only) 1879017 1879129 112 0.0
(read/write) 114640 114704 64 0.1
.bss 50240 50304 64 0.1
.text 1569490 1569602 112 0.0
ota-requestor-app debug (read only) 1901001 1901129 128 0.0
(read/write) 117352 117416 64 0.1
.bss 51296 51360 64 0.1
.text 1596850 1596978 128 0.0
shell debug (read only) 2392969 2393081 112 0.0
(read/write) 149752 149816 64 0.0
.bss 70216 70280 64 0.1
.text 2031058 2031170 112 0.0
thermostat-no-ble arm64 (read only) 2174612 2174724 112 0.0
(read/write) 148465 148497 32 0.0
.bss 65201 65233 32 0.0
.text 1823312 1823424 112 0.0
tv-app debug (read only) 2617097 2617209 112 0.0
(read/write) 250648 250712 64 0.0
.bss 167904 167968 64 0.0
.text 2243746 2243858 112 0.0
Full report (26 builds for cyw30739, efr32, esp32, k32w, linux, nrfconnect, p6, telink)
platform target config section 2822511 0dab87c change % change
cyw30739 light cyw930739m2evb_01 (read/write) 601810 601810 0 0.0
.app_xip_area 506352 506352 0 0.0
.bss 78140 78140 0 0.0
.data 660 660 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
lock cyw930739m2evb_01 (read/write) 559722 559722 0 0.0
.app_xip_area 465800 465800 0 0.0
.bss 76644 76644 0 0.0
.data 624 624 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
ota-requestor cyw930739m2evb_01 (read/write) 581918 581918 0 0.0
.app_xip_area 478316 478316 0 0.0
.bss 85972 85972 0 0.0
.data 592 592 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read only) 920868 920868 0 0.0
(read/write) 128848 128848 0 0.0
.bss 126768 126768 0 0.0
.data 2080 2080 0 0.0
.text 920860 920860 0 0.0
BRD4161A+rpc (read only) 949688 949688 0 0.0
(read/write) 144808 144808 0 0.0
.bss 142544 142544 0 0.0
.data 2260 2260 0 0.0
.text 949680 949680 0 0.0
window-app BRD4161A (read only) 853888 853888 0 0.0
(read/write) 126840 126840 0 0.0
.bss 124912 124912 0 0.0
.data 1924 1924 0 0.0
.text 853880 853880 0 0.0
esp32 all-clusters-app c3devkit (read only) 957506 957506 0 0.0
(read/write) 1393618 1393618 0 0.0
.dram0.bss 63432 63432 0 0.0
.dram0.data 14236 14236 0 0.0
.flash.rodata 197032 197032 0 0.0
.flash.text 957506 957506 0 0.0
.iram0.text 62016 62016 0 0.0
m5stack (read only) 1012267 1012267 0 0.0
(read/write) 460724 460724 0 0.0
.dram0.bss 68960 68960 0 0.0
.dram0.data 34080 34080 0 0.0
.flash.rodata 225848 225848 0 0.0
.flash.text 1006883 1006883 0 0.0
.iram0.text 123107 123107 0 0.0
k32w light k32w061+release (read/write) 694852 694852 0 0.0
.bss 77704 77704 0 0.0
.data 1964 1964 0 0.0
.text 609384 609384 0 0.0
lock k32w061+release (read/write) 696456 696456 0 0.0
.bss 77672 77672 0 0.0
.data 1972 1972 0 0.0
.text 611012 611012 0 0.0
linux all-clusters-app debug (read only) 2426809 2426921 112 0.0
(read/write) 145600 145664 64 0.0
.bss 60128 60192 64 0.1
.data 1392 1392 0 0.0
.data.rel.ro 78360 78360 0 0.0
.dynamic 592 592 0 0.0
.got 4176 4176 0 0.0
.init 27 27 0 0.0
.init_array 920 920 0 0.0
.rodata 205509 205509 0 0.0
.text 2058434 2058546 112 0.0
bridge-app debug+rpc (read only) 1731837 1731949 112 0.0
(read/write) 92560 92592 32 0.0
.bss 47432 47464 32 0.1
.data 2048 2048 0 0.0
.data.rel.ro 38008 38008 0 0.0
.dynamic 592 592 0 0.0
.got 3928 3928 0 0.0
.init 27 27 0 0.0
.init_array 544 544 0 0.0
.rodata 141748 141748 0 0.0
.text 1474213 1474325 112 0.0
chip-tool debug (read only) 9758533 9758645 112 0.0
(read/write) 338488 338520 32 0.0
.bss 25512 25544 32 0.1
.data 1152 1152 0 0.0
.data.rel.ro 305816 305816 0 0.0
.dynamic 608 608 0 0.0
.got 4776 4776 0 0.0
.init 27 27 0 0.0
.init_array 616 616 0 0.0
.rodata 510868 510868 0 0.0
.text 8508373 8508485 112 0.0
chip-tool-ipv6only arm64 (read only) 9430548 9430644 96 0.0
(read/write) 454177 454209 32 0.0
.bss 43825 43857 32 0.1
.data 1200 1200 0 0.0
.data.rel.ro 351000 351000 0 0.0
.dynamic 560 560 0 0.0
.got 54360 54360 0 0.0
.init 24 24 0 0.0
.init_array 192 192 0 0.0
.rodata 486556 486556 0 0.0
.text 7940244 7940340 96 0.0
door-lock-app debug (read only) 1946161 1946273 112 0.0
(read/write) 119008 119072 64 0.1
.bss 50432 50496 64 0.1
.data 1056 1056 0 0.0
.data.rel.ro 62136 62136 0 0.0
.dynamic 592 592 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 664 664 0 0.0
.rodata 173660 173660 0 0.0
.text 1623954 1624066 112 0.0
lighting-app debug+rpc (read only) 2078233 2078345 112 0.0
(read/write) 124376 124440 64 0.1
.bss 51264 51328 64 0.1
.data 1568 1568 0 0.0
.data.rel.ro 66040 66040 0 0.0
.dynamic 608 608 0 0.0
.got 4144 4144 0 0.0
.init 27 27 0 0.0
.init_array 720 720 0 0.0
.rodata 165852 165852 0 0.0
.text 1756866 1756978 112 0.0
ota-provider-app debug (read only) 1879017 1879129 112 0.0
(read/write) 114640 114704 64 0.1
.bss 50240 50304 64 0.1
.data 1352 1352 0 0.0
.data.rel.ro 57416 57416 0 0.0
.dynamic 608 608 0 0.0
.got 4368 4368 0 0.0
.init 27 27 0 0.0
.init_array 616 616 0 0.0
.rodata 158899 158899 0 0.0
.text 1569490 1569602 112 0.0
ota-requestor-app debug (read only) 1901001 1901129 128 0.0
(read/write) 117352 117416 64 0.1
.bss 51296 51360 64 0.1
.data 1512 1512 0 0.0
.data.rel.ro 59112 59112 0 0.0
.dynamic 592 592 0 0.0
.got 4160 4160 0 0.0
.init 27 27 0 0.0
.init_array 640 640 0 0.0
.rodata 154188 154188 0 0.0
.text 1596850 1596978 128 0.0
shell debug (read only) 2392969 2393081 112 0.0
(read/write) 149752 149816 64 0.0
.bss 70216 70280 64 0.1
.data 864 864 0 0.0
.data.rel.ro 73008 73008 0 0.0
.dynamic 592 592 0 0.0
.got 4160 4160 0 0.0
.init 27 27 0 0.0
.init_array 904 904 0 0.0
.rodata 205458 205458 0 0.0
.text 2031058 2031170 112 0.0
thermostat-no-ble arm64 (read only) 2174612 2174724 112 0.0
(read/write) 148465 148497 32 0.0
.bss 65201 65233 32 0.0
.data 1080 1080 0 0.0
.data.rel.ro 75000 75000 0 0.0
.dynamic 560 560 0 0.0
.got 4216 4216 0 0.0
.init 24 24 0 0.0
.init_array 352 352 0 0.0
.rodata 133012 133012 0 0.0
.text 1823312 1823424 112 0.0
tv-app debug (read only) 2617097 2617209 112 0.0
(read/write) 250648 250712 64 0.0
.bss 167904 167968 64 0.0
.data 3200 3200 0 0.0
.data.rel.ro 73504 73504 0 0.0
.dynamic 592 592 0 0.0
.got 4544 4544 0 0.0
.init 27 27 0 0.0
.init_array 880 880 0 0.0
.rodata 199453 199453 0 0.0
.text 2243746 2243858 112 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1151827 1151827 0 0.0
bss 146792 146792 0 0.0
rodata 144300 144300 0 0.0
text 785544 785544 0 0.0
p6 all-clusters-app default (read/write) 2494064 2494064 0 0.0
.bss 119504 119504 0 0.0
.data 2696 2696 0 0.0
.text 1452328 1452328 0 0.0
light-app default (read/write) 2397504 2397504 0 0.0
.bss 112976 112976 0 0.0
.data 2544 2544 0 0.0
.text 1355768 1355768 0 0.0
lock-app default (read/write) 2360936 2360936 0 0.0
.bss 112720 112720 0 0.0
.data 2504 2504 0 0.0
.text 1319200 1319200 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 888986 888986 0 0.0
bss 86928 86928 0 0.0
noinit 37160 37160 0 0.0
text 628350 628350 0 0.0

@@ -53,6 +53,11 @@ CHIP_ERROR ChipLinuxStorage::Init(const char * configFile)
{
CHIP_ERROR retval = CHIP_NO_ERROR;

if (mInitialized)
{
return CHIP_NO_ERROR;
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe add a log here that we double-initialize.

Also check if configFile matches and if they do not, then we should error out instead of saying ok.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good points.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am going to simply log an error message for now, since returning an error causes ChipLinuxAppInit() to fail, which causes all example applications to fail.

Copy link
Contributor

Choose a reason for hiding this comment

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

This should have failed when different config paths are specified, since there is no guarantee they are the same.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@github-actions
Copy link

github-actions bot commented Mar 8, 2022

PR #15963: Size comparison from 2822511 to cfd41f6

Increases (11 builds for linux)
platform target config section 2822511 cfd41f6 change % change
linux all-clusters-app debug (read only) 2426809 2427129 320 0.0
(read/write) 145600 145664 64 0.0
.bss 60128 60192 64 0.1
.rodata 205509 205637 128 0.1
.text 2058434 2058626 192 0.0
bridge-app debug+rpc (read only) 1731837 1732189 352 0.0
(read/write) 92560 92592 32 0.0
.bss 47432 47464 32 0.1
.rodata 141748 141908 160 0.1
.text 1474213 1474405 192 0.0
chip-tool debug (read only) 9758533 9758885 352 0.0
(read/write) 338488 338520 32 0.0
.bss 25512 25544 32 0.1
.rodata 510868 511028 160 0.0
.text 8508373 8508565 192 0.0
chip-tool-ipv6only arm64 (read only) 9430548 9430804 256 0.0
(read/write) 454177 454209 32 0.0
.bss 43825 43857 32 0.1
.rodata 486556 486668 112 0.0
.text 7940244 7940388 144 0.0
door-lock-app debug (read only) 1946161 1946513 352 0.0
(read/write) 119008 119072 64 0.1
.bss 50432 50496 64 0.1
.rodata 173660 173820 160 0.1
.text 1623954 1624146 192 0.0
lighting-app debug+rpc (read only) 2078233 2078537 304 0.0
(read/write) 124376 124440 64 0.1
.bss 51264 51328 64 0.1
.rodata 165852 165980 128 0.1
.text 1756866 1757042 176 0.0
ota-provider-app debug (read only) 1879017 1879337 320 0.0
(read/write) 114640 114704 64 0.1
.bss 50240 50304 64 0.1
.rodata 158899 159027 128 0.1
.text 1569490 1569682 192 0.0
ota-requestor-app debug (read only) 1901001 1901321 320 0.0
(read/write) 117352 117416 64 0.1
.bss 51296 51360 64 0.1
.rodata 154188 154316 128 0.1
.text 1596850 1597042 192 0.0
shell debug (read only) 2392969 2393305 336 0.0
(read/write) 149752 149816 64 0.0
.bss 70216 70280 64 0.1
.rodata 205458 205618 160 0.1
.text 2031058 2031234 176 0.0
thermostat-no-ble arm64 (read only) 2174612 2174900 288 0.0
(read/write) 148465 148497 32 0.0
.bss 65201 65233 32 0.0
.rodata 133012 133140 128 0.1
.text 1823312 1823472 160 0.0
tv-app debug (read only) 2617097 2617449 352 0.0
(read/write) 250648 250712 64 0.0
.bss 167904 167968 64 0.0
.rodata 199453 199613 160 0.1
.text 2243746 2243938 192 0.0
Full report (26 builds for cyw30739, efr32, esp32, k32w, linux, nrfconnect, p6, telink)
platform target config section 2822511 cfd41f6 change % change
cyw30739 light cyw930739m2evb_01 (read/write) 601810 601810 0 0.0
.app_xip_area 506352 506352 0 0.0
.bss 78140 78140 0 0.0
.data 660 660 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
lock cyw930739m2evb_01 (read/write) 559722 559722 0 0.0
.app_xip_area 465800 465800 0 0.0
.bss 76644 76644 0 0.0
.data 624 624 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
ota-requestor cyw930739m2evb_01 (read/write) 581918 581918 0 0.0
.app_xip_area 478316 478316 0 0.0
.bss 85972 85972 0 0.0
.data 592 592 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read only) 920868 920868 0 0.0
(read/write) 128848 128848 0 0.0
.bss 126768 126768 0 0.0
.data 2080 2080 0 0.0
.text 920860 920860 0 0.0
BRD4161A+rpc (read only) 949688 949688 0 0.0
(read/write) 144808 144808 0 0.0
.bss 142544 142544 0 0.0
.data 2260 2260 0 0.0
.text 949680 949680 0 0.0
window-app BRD4161A (read only) 853888 853888 0 0.0
(read/write) 126840 126840 0 0.0
.bss 124912 124912 0 0.0
.data 1924 1924 0 0.0
.text 853880 853880 0 0.0
esp32 all-clusters-app c3devkit (read only) 957506 957506 0 0.0
(read/write) 1393618 1393618 0 0.0
.dram0.bss 63432 63432 0 0.0
.dram0.data 14236 14236 0 0.0
.flash.rodata 197032 197032 0 0.0
.flash.text 957506 957506 0 0.0
.iram0.text 62016 62016 0 0.0
m5stack (read only) 1012267 1012267 0 0.0
(read/write) 460724 460724 0 0.0
.dram0.bss 68960 68960 0 0.0
.dram0.data 34080 34080 0 0.0
.flash.rodata 225848 225848 0 0.0
.flash.text 1006883 1006883 0 0.0
.iram0.text 123107 123107 0 0.0
k32w light k32w061+release (read/write) 694852 694852 0 0.0
.bss 77704 77704 0 0.0
.data 1964 1964 0 0.0
.text 609384 609384 0 0.0
lock k32w061+release (read/write) 696456 696456 0 0.0
.bss 77672 77672 0 0.0
.data 1972 1972 0 0.0
.text 611012 611012 0 0.0
linux all-clusters-app debug (read only) 2426809 2427129 320 0.0
(read/write) 145600 145664 64 0.0
.bss 60128 60192 64 0.1
.data 1392 1392 0 0.0
.data.rel.ro 78360 78360 0 0.0
.dynamic 592 592 0 0.0
.got 4176 4176 0 0.0
.init 27 27 0 0.0
.init_array 920 920 0 0.0
.rodata 205509 205637 128 0.1
.text 2058434 2058626 192 0.0
bridge-app debug+rpc (read only) 1731837 1732189 352 0.0
(read/write) 92560 92592 32 0.0
.bss 47432 47464 32 0.1
.data 2048 2048 0 0.0
.data.rel.ro 38008 38008 0 0.0
.dynamic 592 592 0 0.0
.got 3928 3928 0 0.0
.init 27 27 0 0.0
.init_array 544 544 0 0.0
.rodata 141748 141908 160 0.1
.text 1474213 1474405 192 0.0
chip-tool debug (read only) 9758533 9758885 352 0.0
(read/write) 338488 338520 32 0.0
.bss 25512 25544 32 0.1
.data 1152 1152 0 0.0
.data.rel.ro 305816 305816 0 0.0
.dynamic 608 608 0 0.0
.got 4776 4776 0 0.0
.init 27 27 0 0.0
.init_array 616 616 0 0.0
.rodata 510868 511028 160 0.0
.text 8508373 8508565 192 0.0
chip-tool-ipv6only arm64 (read only) 9430548 9430804 256 0.0
(read/write) 454177 454209 32 0.0
.bss 43825 43857 32 0.1
.data 1200 1200 0 0.0
.data.rel.ro 351000 351000 0 0.0
.dynamic 560 560 0 0.0
.got 54360 54360 0 0.0
.init 24 24 0 0.0
.init_array 192 192 0 0.0
.rodata 486556 486668 112 0.0
.text 7940244 7940388 144 0.0
door-lock-app debug (read only) 1946161 1946513 352 0.0
(read/write) 119008 119072 64 0.1
.bss 50432 50496 64 0.1
.data 1056 1056 0 0.0
.data.rel.ro 62136 62136 0 0.0
.dynamic 592 592 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 664 664 0 0.0
.rodata 173660 173820 160 0.1
.text 1623954 1624146 192 0.0
lighting-app debug+rpc (read only) 2078233 2078537 304 0.0
(read/write) 124376 124440 64 0.1
.bss 51264 51328 64 0.1
.data 1568 1568 0 0.0
.data.rel.ro 66040 66040 0 0.0
.dynamic 608 608 0 0.0
.got 4144 4144 0 0.0
.init 27 27 0 0.0
.init_array 720 720 0 0.0
.rodata 165852 165980 128 0.1
.text 1756866 1757042 176 0.0
ota-provider-app debug (read only) 1879017 1879337 320 0.0
(read/write) 114640 114704 64 0.1
.bss 50240 50304 64 0.1
.data 1352 1352 0 0.0
.data.rel.ro 57416 57416 0 0.0
.dynamic 608 608 0 0.0
.got 4368 4368 0 0.0
.init 27 27 0 0.0
.init_array 616 616 0 0.0
.rodata 158899 159027 128 0.1
.text 1569490 1569682 192 0.0
ota-requestor-app debug (read only) 1901001 1901321 320 0.0
(read/write) 117352 117416 64 0.1
.bss 51296 51360 64 0.1
.data 1512 1512 0 0.0
.data.rel.ro 59112 59112 0 0.0
.dynamic 592 592 0 0.0
.got 4160 4160 0 0.0
.init 27 27 0 0.0
.init_array 640 640 0 0.0
.rodata 154188 154316 128 0.1
.text 1596850 1597042 192 0.0
shell debug (read only) 2392969 2393305 336 0.0
(read/write) 149752 149816 64 0.0
.bss 70216 70280 64 0.1
.data 864 864 0 0.0
.data.rel.ro 73008 73008 0 0.0
.dynamic 592 592 0 0.0
.got 4160 4160 0 0.0
.init 27 27 0 0.0
.init_array 904 904 0 0.0
.rodata 205458 205618 160 0.1
.text 2031058 2031234 176 0.0
thermostat-no-ble arm64 (read only) 2174612 2174900 288 0.0
(read/write) 148465 148497 32 0.0
.bss 65201 65233 32 0.0
.data 1080 1080 0 0.0
.data.rel.ro 75000 75000 0 0.0
.dynamic 560 560 0 0.0
.got 4216 4216 0 0.0
.init 24 24 0 0.0
.init_array 352 352 0 0.0
.rodata 133012 133140 128 0.1
.text 1823312 1823472 160 0.0
tv-app debug (read only) 2617097 2617449 352 0.0
(read/write) 250648 250712 64 0.0
.bss 167904 167968 64 0.0
.data 3200 3200 0 0.0
.data.rel.ro 73504 73504 0 0.0
.dynamic 592 592 0 0.0
.got 4544 4544 0 0.0
.init 27 27 0 0.0
.init_array 880 880 0 0.0
.rodata 199453 199613 160 0.1
.text 2243746 2243938 192 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1151827 1151827 0 0.0
bss 146792 146792 0 0.0
rodata 144300 144300 0 0.0
text 785544 785544 0 0.0
p6 all-clusters-app default (read/write) 2494064 2494064 0 0.0
.bss 119504 119504 0 0.0
.data 2696 2696 0 0.0
.text 1452328 1452328 0 0.0
light-app default (read/write) 2397504 2397504 0 0.0
.bss 112976 112976 0 0.0
.data 2544 2544 0 0.0
.text 1355768 1355768 0 0.0
lock-app default (read/write) 2360936 2360936 0 0.0
.bss 112720 112720 0 0.0
.data 2504 2504 0 0.0
.text 1319200 1319200 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 888986 888986 0 0.0
bss 86928 86928 0 0.0
noinit 37160 37160 0 0.0
text 628350 628350 0 0.0

@github-actions
Copy link

github-actions bot commented Mar 8, 2022

PR #15963: Size comparison from a69fde3 to 9f2e518

Increases (11 builds for linux)
platform target config section a69fde3 9f2e518 change % change
linux all-clusters-app debug (read only) 2428721 2429041 320 0.0
(read/write) 145712 145776 64 0.0
.bss 60192 60256 64 0.1
.rodata 205541 205669 128 0.1
.text 2060194 2060386 192 0.0
bridge-app debug+rpc (read only) 1733421 1733773 352 0.0
(read/write) 92656 92688 32 0.0
.bss 47496 47528 32 0.1
.rodata 141748 141908 160 0.1
.text 1475701 1475893 192 0.0
chip-tool debug (read only) 9762741 9763093 352 0.0
(read/write) 338616 338648 32 0.0
.bss 25512 25544 32 0.1
.rodata 510868 511028 160 0.0
.text 8512389 8512581 192 0.0
chip-tool-ipv6only arm64 (read only) 9434788 9435060 272 0.0
(read/write) 454337 454369 32 0.0
.bss 43825 43857 32 0.1
.rodata 486588 486700 112 0.0
.text 7944148 7944308 160 0.0
door-lock-app debug (read only) 1947745 1948097 352 0.0
(read/write) 119136 119200 64 0.1
.bss 50496 50560 64 0.1
.rodata 173660 173820 160 0.1
.text 1625442 1625634 192 0.0
lighting-app debug+rpc (read only) 2080025 2080345 320 0.0
(read/write) 124456 124520 64 0.1
.bss 51296 51360 64 0.1
.rodata 165820 165948 128 0.1
.text 1758546 1758738 192 0.0
ota-provider-app debug (read only) 1880601 1880921 320 0.0
(read/write) 114736 114800 64 0.1
.bss 50304 50368 64 0.1
.rodata 158899 159027 128 0.1
.text 1570978 1571170 192 0.0
ota-requestor-app debug (read only) 1902617 1902937 320 0.0
(read/write) 117448 117512 64 0.1
.bss 51360 51424 64 0.1
.rodata 154220 154348 128 0.1
.text 1598338 1598530 192 0.0
shell debug (read only) 2394833 2395185 352 0.0
(read/write) 149928 149992 64 0.0
.bss 70312 70376 64 0.1
.rodata 205458 205618 160 0.1
.text 2032802 2032994 192 0.0
thermostat-no-ble arm64 (read only) 2176500 2176788 288 0.0
(read/write) 148673 148705 32 0.0
.bss 65281 65313 32 0.0
.rodata 133012 133140 128 0.1
.text 1824912 1825072 160 0.0
tv-app debug (read only) 2620537 2620889 352 0.0
(read/write) 250840 250904 64 0.0
.bss 168000 168064 64 0.0
.rodata 199453 199613 160 0.1
.text 2246994 2247186 192 0.0
Full report (26 builds for cyw30739, efr32, esp32, k32w, linux, nrfconnect, p6, telink)
platform target config section a69fde3 9f2e518 change % change
cyw30739 light cyw930739m2evb_01 (read/write) 602090 602090 0 0.0
.app_xip_area 506608 506608 0 0.0
.bss 78172 78172 0 0.0
.data 652 652 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
lock cyw930739m2evb_01 (read/write) 559998 559998 0 0.0
.app_xip_area 466052 466052 0 0.0
.bss 76676 76676 0 0.0
.data 616 616 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
ota-requestor cyw930739m2evb_01 (read/write) 582190 582190 0 0.0
.app_xip_area 478564 478564 0 0.0
.bss 86004 86004 0 0.0
.data 584 584 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read only) 921344 921344 0 0.0
(read/write) 128872 128872 0 0.0
.bss 126800 126800 0 0.0
.data 2072 2072 0 0.0
.text 921336 921336 0 0.0
BRD4161A+rpc (read only) 950180 950180 0 0.0
(read/write) 144828 144828 0 0.0
.bss 142576 142576 0 0.0
.data 2252 2252 0 0.0
.text 950172 950172 0 0.0
window-app BRD4161A (read only) 854380 854380 0 0.0
(read/write) 126852 126852 0 0.0
.bss 124936 124936 0 0.0
.data 1916 1916 0 0.0
.text 854372 854372 0 0.0
esp32 all-clusters-app c3devkit (read only) 957942 957942 0 0.0
(read/write) 1393674 1393674 0 0.0
.dram0.bss 63480 63480 0 0.0
.dram0.data 14220 14220 0 0.0
.flash.rodata 197056 197056 0 0.0
.flash.text 957942 957942 0 0.0
.iram0.text 62016 62016 0 0.0
m5stack (read only) 1012743 1012743 0 0.0
(read/write) 460772 460772 0 0.0
.dram0.bss 69000 69000 0 0.0
.dram0.data 34064 34064 0 0.0
.flash.rodata 225872 225872 0 0.0
.flash.text 1007359 1007359 0 0.0
.iram0.text 123107 123107 0 0.0
k32w light k32w061+release (read/write) 695256 695256 0 0.0
.bss 77736 77736 0 0.0
.data 1956 1956 0 0.0
.text 609764 609764 0 0.0
lock k32w061+release (read/write) 696860 696860 0 0.0
.bss 77704 77704 0 0.0
.data 1964 1964 0 0.0
.text 611392 611392 0 0.0
linux all-clusters-app debug (read only) 2428721 2429041 320 0.0
(read/write) 145712 145776 64 0.0
.bss 60192 60256 64 0.1
.data 1360 1360 0 0.0
.data.rel.ro 78424 78424 0 0.0
.dynamic 592 592 0 0.0
.got 4176 4176 0 0.0
.init 27 27 0 0.0
.init_array 936 936 0 0.0
.rodata 205541 205669 128 0.1
.text 2060194 2060386 192 0.0
bridge-app debug+rpc (read only) 1733421 1733773 352 0.0
(read/write) 92656 92688 32 0.0
.bss 47496 47528 32 0.1
.data 2016 2016 0 0.0
.data.rel.ro 38064 38064 0 0.0
.dynamic 592 592 0 0.0
.got 3928 3928 0 0.0
.init 27 27 0 0.0
.init_array 544 544 0 0.0
.rodata 141748 141908 160 0.1
.text 1475701 1475893 192 0.0
chip-tool debug (read only) 9762741 9763093 352 0.0
(read/write) 338616 338648 32 0.0
.bss 25512 25544 32 0.1
.data 1152 1152 0 0.0
.data.rel.ro 305928 305928 0 0.0
.dynamic 608 608 0 0.0
.got 4776 4776 0 0.0
.init 27 27 0 0.0
.init_array 616 616 0 0.0
.rodata 510868 511028 160 0.0
.text 8512389 8512581 192 0.0
chip-tool-ipv6only arm64 (read only) 9434788 9435060 272 0.0
(read/write) 454337 454369 32 0.0
.bss 43825 43857 32 0.1
.data 1200 1200 0 0.0
.data.rel.ro 351136 351136 0 0.0
.dynamic 560 560 0 0.0
.got 54376 54376 0 0.0
.init 24 24 0 0.0
.init_array 192 192 0 0.0
.rodata 486588 486700 112 0.0
.text 7944148 7944308 160 0.0
door-lock-app debug (read only) 1947745 1948097 352 0.0
(read/write) 119136 119200 64 0.1
.bss 50496 50560 64 0.1
.data 1056 1056 0 0.0
.data.rel.ro 62184 62184 0 0.0
.dynamic 592 592 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 664 664 0 0.0
.rodata 173660 173820 160 0.1
.text 1625442 1625634 192 0.0
lighting-app debug+rpc (read only) 2080025 2080345 320 0.0
(read/write) 124456 124520 64 0.1
.bss 51296 51360 64 0.1
.data 1536 1536 0 0.0
.data.rel.ro 66104 66104 0 0.0
.dynamic 608 608 0 0.0
.got 4144 4144 0 0.0
.init 27 27 0 0.0
.init_array 736 736 0 0.0
.rodata 165820 165948 128 0.1
.text 1758546 1758738 192 0.0
ota-provider-app debug (read only) 1880601 1880921 320 0.0
(read/write) 114736 114800 64 0.1
.bss 50304 50368 64 0.1
.data 1320 1320 0 0.0
.data.rel.ro 57464 57464 0 0.0
.dynamic 608 608 0 0.0
.got 4368 4368 0 0.0
.init 27 27 0 0.0
.init_array 616 616 0 0.0
.rodata 158899 159027 128 0.1
.text 1570978 1571170 192 0.0
ota-requestor-app debug (read only) 1902617 1902937 320 0.0
(read/write) 117448 117512 64 0.1
.bss 51360 51424 64 0.1
.data 1480 1480 0 0.0
.data.rel.ro 59176 59176 0 0.0
.dynamic 592 592 0 0.0
.got 4160 4160 0 0.0
.init 27 27 0 0.0
.init_array 640 640 0 0.0
.rodata 154220 154348 128 0.1
.text 1598338 1598530 192 0.0
shell debug (read only) 2394833 2395185 352 0.0
(read/write) 149928 149992 64 0.0
.bss 70312 70376 64 0.1
.data 864 864 0 0.0
.data.rel.ro 73064 73064 0 0.0
.dynamic 592 592 0 0.0
.got 4160 4160 0 0.0
.init 27 27 0 0.0
.init_array 920 920 0 0.0
.rodata 205458 205618 160 0.1
.text 2032802 2032994 192 0.0
thermostat-no-ble arm64 (read only) 2176500 2176788 288 0.0
(read/write) 148673 148705 32 0.0
.bss 65281 65313 32 0.0
.data 1048 1048 0 0.0
.data.rel.ro 75136 75136 0 0.0
.dynamic 560 560 0 0.0
.got 4240 4240 0 0.0
.init 24 24 0 0.0
.init_array 352 352 0 0.0
.rodata 133012 133140 128 0.1
.text 1824912 1825072 160 0.0
tv-app debug (read only) 2620537 2620889 352 0.0
(read/write) 250840 250904 64 0.0
.bss 168000 168064 64 0.0
.data 3168 3168 0 0.0
.data.rel.ro 73624 73624 0 0.0
.dynamic 592 592 0 0.0
.got 4544 4544 0 0.0
.init 27 27 0 0.0
.init_array 880 880 0 0.0
.rodata 199453 199613 160 0.1
.text 2246994 2247186 192 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1152335 1152335 0 0.0
bss 146832 146832 0 0.0
rodata 144328 144328 0 0.0
text 785912 785912 0 0.0
p6 all-clusters-app default (read/write) 2494568 2494568 0 0.0
.bss 119544 119544 0 0.0
.data 2680 2680 0 0.0
.text 1452832 1452832 0 0.0
light-app default (read/write) 2398000 2398000 0 0.0
.bss 113008 113008 0 0.0
.data 2536 2536 0 0.0
.text 1356264 1356264 0 0.0
lock-app default (read/write) 2361432 2361432 0 0.0
.bss 112752 112752 0 0.0
.data 2496 2496 0 0.0
.text 1319696 1319696 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 889534 889534 0 0.0
bss 86968 86968 0 0.0
noinit 37160 37160 0 0.0
text 628840 628840 0 0.0

@harsha-rajendran harsha-rajendran merged commit f3b5ce5 into project-chip:master Mar 9, 2022
@harsha-rajendran harsha-rajendran deleted the Custom-KVS-Init-broken-on-Linux branch March 9, 2022 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants