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

Update buffer allocation strategy and maximum buffer size when using TCP as transport #30404

Closed
wants to merge 13 commits into from

Conversation

hnnajh
Copy link
Collaborator

@hnnajh hnnajh commented Nov 10, 2023

Depending on the transport choice, the node would have to be able to allocate buffers appropriately. When TCP is supported, buffer allocation would be done from the heap. That choice is made at compile time. However, the max size of the heap-allocated buffer would differ based on whether the node is using MRP or TCP underneath, at run time. We would need a dynamic way to choose that max buffer size allocation so that a larger allocation can be made from the heap when using TCP.

Fixes #29698

Copy link

github-actions bot commented Nov 10, 2023

PR #30404: Size comparison from dbd6d1d to a419234

Full report (73 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
platform target config section dbd6d1d a419234 change % change
bl602 lighting-app bl602 (read/write) 1407550 1407550 0 0.0
.bss 84504 84504 0 0.0
.data 9376 9376 0 0.0
.rodata 156376 156376 0 0.0
.text 1076640 1076640 0 0.0
bl602+mfd (read/write) 1421990 1421990 0 0.0
.bss 84672 84672 0 0.0
.data 9344 9344 0 0.0
.rodata 155336 155336 0 0.0
.text 1091992 1091992 0 0.0
bl602+rpc (read/write) 1454570 1454570 0 0.0
.bss 92536 92536 0 0.0
.data 9744 9744 0 0.0
.rodata 163492 163492 0 0.0
.text 1108128 1108128 0 0.0
bl702 lighting-app bl702 (read only) 3478 3478 0 0.0
(read/write) 1173715 1173715 0 0.0
.bss 11197 11197 0 0.0
.data 3560 3560 0 0.0
.rodata 106116 106116 0 0.0
.text 947134 947134 0 0.0
bl702+mfd (read only) 3478 3478 0 0.0
(read/write) 1184839 1184839 0 0.0
.bss 11373 11373 0 0.0
.data 3536 3536 0 0.0
.rodata 105056 105056 0 0.0
.text 959198 959198 0 0.0
bl702+rpc (read only) 3478 3478 0 0.0
(read/write) 1273271 1273271 0 0.0
.bss 19677 19677 0 0.0
.data 4112 4112 0 0.0
.rodata 121016 121016 0 0.0
.text 1022200 1022200 0 0.0
bl706-eth (read/write) 992649 992649 0 0.0
.bss 23772 23772 0 0.0
.data 3128 3128 0 0.0
.rodata 99204 99204 0 0.0
.text 739606 739606 0 0.0
bl706-wifi (read/write) 1227806 1227806 0 0.0
.bss 10657 10657 0 0.0
.data 3568 3568 0 0.0
.rodata 120064 120064 0 0.0
.text 964026 964026 0 0.0
bl702l lighting-app bl702l (read only) 512 512 0 0.0
(read/write) 1143428 1143428 0 0.0
.bss 16408 16408 0 0.0
.data 4920 4920 0 0.0
.rodata 100120 100120 0 0.0
.text 940228 940228 0 0.0
bl702l+mfd (read only) 512 512 0 0.0
(read/write) 1154888 1154888 0 0.0
.bss 16584 16584 0 0.0
.data 4904 4904 0 0.0
.rodata 99060 99060 0 0.0
.text 952604 952604 0 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 (read only) 737451 737451 0 0.0
(read/write) 166528 166528 0 0.0
.bss 88940 88940 0 0.0
.data 3424 3424 0 0.0
.rodata 84599 84599 0 0.0
.text 652464 652464 0 0.0
lock-ftd LP_EM_CC1354P10_6 (read only) 759171 759171 0 0.0
(read/write) 176820 176820 0 0.0
.bss 99188 99188 0 0.0
.data 3444 3444 0 0.0
.rodata 80175 80175 0 0.0
.text 678604 678604 0 0.0
lock-mtd LP_EM_CC1354P10_6 (read only) 746443 746443 0 0.0
(read/write) 171276 171276 0 0.0
.bss 93644 93644 0 0.0
.data 3444 3444 0 0.0
.rodata 106231 106231 0 0.0
.text 639820 639820 0 0.0
pump-app LP_EM_CC1354P10_6 (read only) 697211 697211 0 0.0
(read/write) 165628 165628 0 0.0
.bss 87808 87808 0 0.0
.data 3412 3412 0 0.0
.rodata 80359 80359 0 0.0
.text 616464 616464 0 0.0
pump-controller-app LP_EM_CC1354P10_6 (read only) 682899 682899 0 0.0
(read/write) 165760 165760 0 0.0
.bss 87952 87952 0 0.0
.data 3408 3408 0 0.0
.rodata 76199 76199 0 0.0
.text 606312 606312 0 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL (read only) 563986 563986 0 0.0
(read/write) 206496 206496 0 0.0
.bss 199956 199956 0 0.0
.data 1416 1416 0 0.0
.rodata 83690 83690 0 0.0
.text 478172 478172 0 0.0
lock CC3235SF_LAUNCHXL (read only) 620250 620250 0 0.0
(read/write) 206900 206900 0 0.0
.bss 200336 200336 0 0.0
.data 1444 1444 0 0.0
.rodata 106306 106306 0 0.0
.text 511824 511824 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 554735 554735 0 0.0
.app_xip_area 445809 445809 0 0.0
.bss 63840 63840 0 0.0
.data 664 664 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 540903 540903 0 0.0
.app_xip_area 427177 427177 0 0.0
.bss 68608 68608 0 0.0
.data 696 696 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor cyw930739m2evb_01 (read/write) 576591 576591 0 0.0
.app_xip_area 468993 468993 0 0.0
.bss 62584 62584 0 0.0
.data 592 592 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
switch cyw930739m2evb_01 (read/write) 552623 552623 0 0.0
.app_xip_area 441937 441937 0 0.0
.bss 65568 65568 0 0.0
.data 692 692 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A+rs9116 (read/write) 1008692 1008692 0 0.0
.bss 171920 171920 0 0.0
.data 2696 2696 0 0.0
.text 834056 834056 0 0.0
BRD4187C (read/write) 1094460 1094460 0 0.0
.bss 195564 195564 0 0.0
.data 3304 3304 0 0.0
.text 895572 895572 0 0.0
lock-app BRD4161A+wf200 (read/write) 1105368 1105368 0 0.0
.bss 186640 186640 0 0.0
.data 2712 2712 0 0.0
.text 915996 915996 0 0.0
window-app BRD4187C (read/write) 1131104 1131104 0 0.0
.bss 167972 167972 0 0.0
.data 3176 3176 0 0.0
.text 959936 959936 0 0.0
esp32 all-clusters-app c3devkit (read only) 1129862 1129862 0 0.0
(read/write) 1670084 1670084 0 0.0
.dram0.bss 71848 71848 0 0.0
.dram0.data 12996 12996 0 0.0
.flash.rodata 241360 241360 0 0.0
.flash.text 1129862 1129862 0 0.0
.iram0.text 75694 75694 0 0.0
m5stack (read only) 1175071 1175071 0 0.0
(read/write) 520080 520080 0 0.0
.dram0.bss 78496 78496 0 0.0
.dram0.data 34020 34020 0 0.0
.flash.rodata 273200 273200 0 0.0
.flash.text 1169687 1169687 0 0.0
.iram0.text 123907 123907 0 0.0
k32w contact k32w0+release (read only) 591436 591436 0 0.0
(read/write) 87600 87600 0 0.0
.bss 70840 70840 0 0.0
.data 2136 2136 0 0.0
.text 590900 590900 0 0.0
k32w1+release (read only) 1024 1024 0 0.0
(read/write) 686512 686512 0 0.0
.bss 67040 67040 0 0.0
.data 2720 2720 0 0.0
.text 573272 573272 0 0.0
light k32w0+release (read only) 591140 591140 0 0.0
(read/write) 87276 87276 0 0.0
.bss 70528 70528 0 0.0
.data 2124 2124 0 0.0
.text 590604 590604 0 0.0
k32w1+release (read only) 1024 1024 0 0.0
(read/write) 778516 778516 0 0.0
.bss 76716 76716 0 0.0
.data 1932 1932 0 0.0
.text 656408 656408 0 0.0
lock k32w0+release (read only) 562948 562948 0 0.0
(read/write) 85104 85104 0 0.0
.bss 68416 68416 0 0.0
.data 2064 2064 0 0.0
.text 562412 562412 0 0.0
linux air-purifier-app debug (read only) 2477461 2477461 0 0.0
(read/write) 126280 126280 0 0.0
.bss 46656 46656 0 0.0
.data 1472 1472 0 0.0
.data.rel.ro 72168 72168 0 0.0
.dynamic 608 608 0 0.0
.got 4560 4560 0 0.0
.init 27 27 0 0.0
.init_array 800 800 0 0.0
.rodata 177128 177128 0 0.0
.text 2126533 2126533 0 0.0
all-clusters-app debug (read only) 5279265 5279265 0 0.0
(read/write) 418800 418800 0 0.0
.bss 128880 128880 0 0.0
.data 3856 3856 0 0.0
.data.rel.ro 278832 278832 0 0.0
.dynamic 624 624 0 0.0
.got 5360 5360 0 0.0
.init 27 27 0 0.0
.init_array 1208 1208 0 0.0
.rodata 299484 299484 0 0.0
.text 4600115 4600115 0 0.0
all-clusters-minimal-app debug (read only) 4892153 4892153 0 0.0
(read/write) 233080 233080 0 0.0
.bss 126704 126704 0 0.0
.data 3792 3792 0 0.0
.data.rel.ro 95440 95440 0 0.0
.dynamic 624 624 0 0.0
.got 5320 5320 0 0.0
.init 27 27 0 0.0
.init_array 1152 1152 0 0.0
.rodata 270061 270061 0 0.0
.text 4390995 4390995 0 0.0
bridge-app debug (read only) 4374281 4374281 0 0.0
(read/write) 215128 215128 0 0.0
.bss 118904 118904 0 0.0
.data 4704 4704 0 0.0
.data.rel.ro 84768 84768 0 0.0
.dynamic 624 624 0 0.0
.got 5288 5288 0 0.0
.init 27 27 0 0.0
.init_array 824 824 0 0.0
.rodata 218101 218101 0 0.0
.text 3938547 3938547 0 0.0
chip-tool debug (read only) 10360913 10360913 0 0.0
(read/write) 448896 448896 0 0.0
.bss 93752 93752 0 0.0
.data 4994 4994 0 0.0
.data.rel.ro 342920 342920 0 0.0
.dynamic 624 624 0 0.0
.got 5784 5784 0 0.0
.init 27 27 0 0.0
.init_array 768 768 0 0.0
.rodata 391529 391529 0 0.0
.text 9363699 9363699 0 0.0
chip-tool-ipv6only arm64 (read only) 10238360 10238360 0 0.0
(read/write) 515072 515072 0 0.0
.bss 103112 103112 0 0.0
.data 4296 4296 0 0.0
.data.rel.ro 380480 380480 0 0.0
.dynamic 512 512 0 0.0
.got 18624 18624 0 0.0
.init 24 24 0 0.0
.init_array 256 256 0 0.0
.rodata 317744 317744 0 0.0
.text 9141688 9141688 0 0.0
lighting-app debug+rpc+ui (read only) 5235073 5235073 0 0.0
(read/write) 223136 223136 0 0.0
.bss 118208 118208 0 0.0
.data 4416 4416 0 0.0
.data.rel.ro 92976 92976 0 0.0
.dynamic 672 672 0 0.0
.got 5904 5904 0 0.0
.init 27 27 0 0.0
.init_array 952 952 0 0.0
.rodata 336820 336820 0 0.0
.text 4655027 4655027 0 0.0
lock-app debug (read only) 4473977 4473977 0 0.0
(read/write) 203304 203304 0 0.0
.bss 113472 113472 0 0.0
.data 3648 3648 0 0.0
.data.rel.ro 79432 79432 0 0.0
.dynamic 624 624 0 0.0
.got 5240 5240 0 0.0
.init 27 27 0 0.0
.init_array 864 864 0 0.0
.rodata 247381 247381 0 0.0
.text 4016995 4016995 0 0.0
ota-provider-app debug (read only) 4132361 4132361 0 0.0
(read/write) 192192 192192 0 0.0
.bss 113568 113568 0 0.0
.data 3920 3920 0 0.0
.data.rel.ro 68784 68784 0 0.0
.dynamic 624 624 0 0.0
.got 4544 4544 0 0.0
.init 27 27 0 0.0
.init_array 728 728 0 0.0
.rodata 200085 200085 0 0.0
.text 3741427 3741427 0 0.0
ota-requestor-app debug (read only) 4218665 4218665 0 0.0
(read/write) 196440 196440 0 0.0
.bss 114592 114592 0 0.0
.data 4192 4192 0 0.0
.data.rel.ro 71744 71744 0 0.0
.dynamic 624 624 0 0.0
.got 4480 4480 0 0.0
.init 27 27 0 0.0
.init_array 784 784 0 0.0
.rodata 203861 203861 0 0.0
.text 3819651 3819651 0 0.0
shell debug (read only) 2741177 2741177 0 0.0
(read/write) 148504 148504 0 0.0
.bss 59528 59528 0 0.0
.data 784 784 0 0.0
.data.rel.ro 82400 82400 0 0.0
.dynamic 592 592 0 0.0
.got 4088 4088 0 0.0
.init 27 27 0 0.0
.init_array 1064 1064 0 0.0
.rodata 179264 179264 0 0.0
.text 2392114 2392114 0 0.0
thermostat-no-ble arm64 (read only) 4370504 4370504 0 0.0
(read/write) 247144 247144 0 0.0
.bss 122184 122184 0 0.0
.data 2800 2800 0 0.0
.data.rel.ro 101776 101776 0 0.0
.dynamic 512 512 0 0.0
.got 11928 11928 0 0.0
.init 24 24 0 0.0
.init_array 432 432 0 0.0
.rodata 161428 161428 0 0.0
.text 3870072 3870072 0 0.0
tv-app debug (read only) 5243353 5243353 0 0.0
(read/write) 344624 344624 0 0.0
.bss 242080 242080 0 0.0
.data 4992 4992 0 0.0
.data.rel.ro 90240 90240 0 0.0
.dynamic 624 624 0 0.0
.got 5528 5528 0 0.0
.init 27 27 0 0.0
.init_array 1128 1128 0 0.0
.rodata 266909 266909 0 0.0
.text 4741811 4741811 0 0.0
tv-casting-app debug (read only) 8299185 8299185 0 0.0
(read/write) 315640 315640 0 0.0
.bss 155936 155936 0 0.0
.data 2464 2464 0 0.0
.data.rel.ro 150384 150384 0 0.0
.dynamic 624 624 0 0.0
.got 5064 5064 0 0.0
.init 27 27 0 0.0
.init_array 1136 1136 0 0.0
.rodata 339496 339496 0 0.0
.text 7551571 7551571 0 0.0
mbed lock-app-release cy8cproto_062_4343w (read only) 6224 6224 0 0.0
(read/write) 2525552 2525552 0 0.0
.bss 219064 219064 0 0.0
.data 5136 5136 0 0.0
.text 1488236 1488236 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1054364 1054364 0 0.0
bss 128343 128343 0 0.0
rodata 104028 104028 0 0.0
text 774400 774400 0 0.0
nrf7002dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 1181196 1181196 0 0.0
bss 120545 120545 0 0.0
rodata 138220 138220 0 0.0
text 772092 772092 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1039692 1039692 0 0.0
bss 128636 128636 0 0.0
rodata 99300 99300 0 0.0
text 764168 764168 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 837624 837624 0 0.0
(read/write) 1732588 1732588 0 0.0
.bss 193236 193236 0 0.0
.data 2480 2480 0 0.0
.text 1528484 1528484 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 839344 839344 0 0.0
(read/write) 1696428 1696428 0 0.0
.bss 191516 191516 0 0.0
.data 2480 2480 0 0.0
.text 1494044 1494044 0 0.0
light cy8ckit_062s2_43012 (read only) 845896 845896 0 0.0
(read/write) 1622612 1622612 0 0.0
.bss 185076 185076 0 0.0
.data 2368 2368 0 0.0
.text 1426780 1426780 0 0.0
lock cy8ckit_062s2_43012 (read only) 818632 818632 0 0.0
(read/write) 1655460 1655460 0 0.0
.bss 212324 212324 0 0.0
.data 2384 2384 0 0.0
.text 1432364 1432364 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1178464 1178464 0 0.0
.bss 100664 100664 0 0.0
.data 748 748 0 0.0
.text 625304 625304 0 0.0
lock-app qpg6105+debug (read/write) 1139220 1139220 0 0.0
.bss 95408 95408 0 0.0
.data 780 780 0 0.0
.text 586060 586060 0 0.0
telink air-quality-sensor-app tlsr9528a_retention (read only) 51910 51910 0 0.0
(read/write) 811322 811322 0 0.0
bss 53132 53132 0 0.0
text 606044 606044 0 0.0
all-clusters-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1071412 1071412 0 0.0
bss 99388 99388 0 0.0
text 755036 755036 0 0.0
all-clusters-minimal-app tlsr9528a (read only) 4 4 0 0.0
(read/write) 1076320 1076320 0 0.0
bss 109084 109084 0 0.0
text 746708 746708 0 0.0
bridge-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 930220 930220 0 0.0
bss 93684 93684 0 0.0
text 643244 643244 0 0.0
contact-sensor-app tlsr9528a_retention (read only) 51910 51910 0 0.0
(read/write) 814566 814566 0 0.0
bss 53240 53240 0 0.0
text 609094 609094 0 0.0
light-switch-app-ota-shell-factory-data tlsr9528a (read only) 4 4 0 0.0
(read/write) 968828 968828 0 0.0
bss 77040 77040 0 0.0
text 687042 687042 0 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1086128 1086128 0 0.0
bss 99192 99192 0 0.0
text 763800 763800 0 0.0
lock-app-dfu tlsr9528a_retention (read only) 51910 51910 0 0.0
(read/write) 871950 871950 0 0.0
bss 53940 53940 0 0.0
text 638942 638942 0 0.0
ota-requestor-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 943508 943508 0 0.0
bss 91792 91792 0 0.0
text 658978 658978 0 0.0
pump-app tlsr9528a (read only) 4 4 0 0.0
(read/write) 871212 871212 0 0.0
bss 67076 67076 0 0.0
text 615618 615618 0 0.0
pump-controller-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 811776 811776 0 0.0
bss 55320 55320 0 0.0
text 582596 582596 0 0.0
resource-monitoring-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 827476 827476 0 0.0
bss 55724 55724 0 0.0
text 593210 593210 0 0.0
shell tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 705712 705712 0 0.0
bss 73232 73232 0 0.0
text 462250 462250 0 0.0
smoke_co_alarm-app tlsr9528a_retention (read only) 51910 51910 0 0.0
(read/write) 816294 816294 0 0.0
bss 53332 53332 0 0.0
text 611824 611824 0 0.0
temperature-measurement-app tlsr9528a_retention (read only) 51910 51910 0 0.0
(read/write) 802234 802234 0 0.0
bss 53052 53052 0 0.0
text 599840 599840 0 0.0
thermostat tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 832868 832868 0 0.0
bss 55608 55608 0 0.0
text 597952 597952 0 0.0
window-covering tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 830336 830336 0 0.0
bss 55960 55960 0 0.0
text 595002 595002 0 0.0

Copy link

github-actions bot commented Nov 10, 2023

PR #30404: Size comparison from dbd6d1d to 0bad674

Increases above 0.2%:

platform target config section dbd6d1d 0bad674 change % change
linux air-purifier-app debug .init_array 800 808 8 1.0
.rodata 177128 177512 384 0.2
all-clusters-app debug .init_array 1208 1216 8 0.7
all-clusters-minimal-app debug .init_array 1152 1160 8 0.7
bridge-app debug .init_array 824 832 8 1.0
chip-tool debug .got 5784 5800 16 0.3
.init_array 768 776 8 1.0
lighting-app debug+rpc+ui .init_array 952 960 8 0.8
lock-app debug .init_array 864 872 8 0.9
shell debug .init_array 1064 1072 8 0.8
tv-app debug .init_array 1128 1136 8 0.7
tv-casting-app debug .got 5064 5080 16 0.3
.init_array 1136 1144 8 0.7
Increases (71 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, k32w, linux, nrfconnect, psoc6, qpg, telink)
platform target config section dbd6d1d 0bad674 change % change
bl602 lighting-app bl602 (read/write) 1407550 1408022 472 0.0
.rodata 156376 156408 32 0.0
.text 1076640 1077076 436 0.0
bl602+mfd (read/write) 1421990 1422462 472 0.0
.rodata 155336 155368 32 0.0
.text 1091992 1092428 436 0.0
bl602+rpc (read/write) 1454570 1455298 728 0.1
.rodata 163492 163524 32 0.0
.text 1108128 1108820 692 0.1
bl702 lighting-app bl702 (read/write) 1173715 1174183 468 0.0
.rodata 106116 106148 32 0.0
.text 947134 947570 436 0.0
bl702+mfd (read/write) 1184839 1185307 468 0.0
.rodata 105056 105088 32 0.0
.text 959198 959634 436 0.0
bl702+rpc (read/write) 1273271 1273739 468 0.0
.rodata 121016 121048 32 0.0
.text 1022200 1022636 436 0.0
bl706-eth (read/write) 992649 993117 468 0.0
.rodata 99204 99236 32 0.0
.text 739606 740042 436 0.1
bl706-wifi (read/write) 1227806 1228558 752 0.1
.rodata 120064 120096 32 0.0
.text 964026 964748 722 0.1
bl702l lighting-app bl702l (read/write) 1143428 1143896 468 0.0
.rodata 100120 100152 32 0.0
.text 940228 940664 436 0.0
bl702l+mfd (read/write) 1154888 1155868 980 0.1
.rodata 99060 99092 32 0.0
.text 952604 953040 436 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 (read only) 737451 737755 304 0.0
.rodata 84599 84647 48 0.1
.text 652464 652720 256 0.0
lock-ftd LP_EM_CC1354P10_6 (read only) 759171 759467 296 0.0
.rodata 80175 80223 48 0.1
.text 678604 678852 248 0.0
lock-mtd LP_EM_CC1354P10_6 (read only) 746443 746747 304 0.0
.rodata 106231 106279 48 0.0
.text 639820 640076 256 0.0
pump-app LP_EM_CC1354P10_6 (read only) 697211 697523 312 0.0
.rodata 80359 80415 56 0.1
.text 616464 616720 256 0.0
pump-controller-app LP_EM_CC1354P10_6 (read only) 682899 683203 304 0.0
.rodata 76199 76247 48 0.1
.text 606312 606568 256 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL (read only) 563986 564314 328 0.1
.text 478172 478508 336 0.1
lock CC3235SF_LAUNCHXL (read only) 620250 620570 320 0.1
.text 511824 512152 328 0.1
cyw30739 light cyw930739m2evb_01 (read/write) 554735 555055 320 0.1
.app_xip_area 445809 446129 320 0.1
lock cyw930739m2evb_01 (read/write) 540903 541207 304 0.1
.app_xip_area 427177 427481 304 0.1
ota-requestor cyw930739m2evb_01 (read/write) 576591 576903 312 0.1
.app_xip_area 468993 469305 312 0.1
switch cyw930739m2evb_01 (read/write) 552623 552943 320 0.1
.app_xip_area 441937 442257 320 0.1
efr32 lighting-app BRD4161A+rs9116 (read/write) 1008692 1009020 328 0.0
.text 834056 834384 328 0.0
BRD4187C (read/write) 1094460 1094772 312 0.0
.text 895572 895884 312 0.0
lock-app BRD4161A+wf200 (read/write) 1105368 1105680 312 0.0
.text 915996 916308 312 0.0
window-app BRD4187C (read/write) 1131104 1131424 320 0.0
.text 959936 960256 320 0.0
esp32 all-clusters-app c3devkit (read only) 1129862 1130418 556 0.0
.flash.text 1129862 1130418 556 0.0
m5stack (read only) 1175071 1175531 460 0.0
.flash.text 1169687 1170147 460 0.0
k32w contact k32w0+release (read only) 591436 591740 304 0.1
.text 590900 591204 304 0.1
k32w1+release (read/write) 686512 686824 312 0.0
.text 573272 573584 312 0.1
light k32w0+release (read only) 591140 591444 304 0.1
.text 590604 590908 304 0.1
k32w1+release (read/write) 778516 778828 312 0.0
.text 656408 656720 312 0.0
lock k32w0+release (read only) 562948 563276 328 0.1
.text 562412 562740 328 0.1
linux air-purifier-app debug (read only) 2477461 2479613 2152 0.1
(read/write) 126280 126352 72 0.1
.bss 46656 46720 64 0.1
.got 4560 4568 8 0.2
.init_array 800 808 8 1.0
.rodata 177128 177512 384 0.2
.text 2126533 2128181 1648 0.1
all-clusters-app debug (read only) 5279265 5281433 2168 0.0
(read/write) 418800 418872 72 0.0
.bss 128880 128944 64 0.0
.got 5360 5368 8 0.1
.init_array 1208 1216 8 0.7
.rodata 299484 299868 384 0.1
.text 4600115 4601779 1664 0.0
all-clusters-minimal-app debug (read only) 4892153 4894265 2112 0.0
(read/write) 233080 233152 72 0.0
.bss 126704 126768 64 0.1
.got 5320 5328 8 0.2
.init_array 1152 1160 8 0.7
.rodata 270061 270413 352 0.1
.text 4390995 4392643 1648 0.0
bridge-app debug (read only) 4374281 4376433 2152 0.0
(read/write) 215128 215200 72 0.0
.bss 118904 118968 64 0.1
.got 5288 5296 8 0.2
.init_array 824 832 8 1.0
.rodata 218101 218485 384 0.2
.text 3938547 3940195 1648 0.0
chip-tool debug (read only) 10360913 10363513 2600 0.0
(read/write) 448896 448968 72 0.0
.bss 93752 93816 64 0.1
.got 5784 5800 16 0.3
.init_array 768 776 8 1.0
.rodata 391529 391913 384 0.1
.text 9363699 9365699 2000 0.0
chip-tool-ipv6only arm64 (read only) 10238360 10240640 2280 0.0
.bss 103112 103144 32 0.0
.rodata 317744 317816 72 0.0
.text 9141688 9143784 2096 0.0
lighting-app debug+rpc+ui (read only) 5235073 5237225 2152 0.0
(read/write) 223136 223240 104 0.0
.bss 118208 118272 64 0.1
.got 5904 5912 8 0.1
.init_array 952 960 8 0.8
.rodata 336820 337204 384 0.1
.text 4655027 4656675 1648 0.0
lock-app debug (read only) 4473977 4476089 2112 0.0
(read/write) 203304 203344 40 0.0
.bss 113472 113504 32 0.0
.got 5240 5248 8 0.2
.init_array 864 872 8 0.9
.rodata 247381 247765 384 0.2
.text 4016995 4018611 1616 0.0
ota-provider-app debug (read only) 4132361 4133353 992 0.0
.rodata 200085 200309 224 0.1
.text 3741427 3742195 768 0.0
ota-requestor-app debug (read only) 4218665 4219625 960 0.0
.rodata 203861 204053 192 0.1
.text 3819651 3820419 768 0.0
shell debug (read only) 2741177 2743457 2280 0.1
(read/write) 148504 148576 72 0.0
.bss 59528 59592 64 0.1
.got 4088 4096 8 0.2
.init_array 1064 1072 8 0.8
.rodata 179264 179616 352 0.2
.text 2392114 2393922 1808 0.1
thermostat-no-ble arm64 (read only) 4370504 4371912 1408 0.0
.rodata 161428 161540 112 0.1
.text 3870072 3871368 1296 0.0
tv-app debug (read only) 5243353 5245473 2120 0.0
(read/write) 344624 344664 40 0.0
.bss 242080 242112 32 0.0
.got 5528 5536 8 0.1
.init_array 1128 1136 8 0.7
.rodata 266909 267261 352 0.1
.text 4741811 4743459 1648 0.0
tv-casting-app debug (read only) 8299185 8301545 2360 0.0
(read/write) 315640 315712 72 0.0
.bss 155936 156000 64 0.0
.got 5064 5080 16 0.3
.init_array 1136 1144 8 0.7
.rodata 339496 339848 352 0.1
.text 7551571 7553363 1792 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1054364 1054672 308 0.0
rodata 104028 104080 52 0.0
text 774400 774656 256 0.0
nrf7002dk_nrf5340_cpuapp (read/write) 1181196 1181504 308 0.0
rodata 138220 138272 52 0.0
text 772092 772356 264 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read/write) 1039692 1039996 304 0.0
rodata 99300 99348 48 0.0
text 764168 764424 256 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read/write) 1732588 1732900 312 0.0
.text 1528484 1528796 312 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read/write) 1696428 1696740 312 0.0
.text 1494044 1494356 312 0.0
light cy8ckit_062s2_43012 (read/write) 1622612 1622940 328 0.0
.text 1426780 1427108 328 0.0
lock cy8ckit_062s2_43012 (read/write) 1655460 1655788 328 0.0
.text 1432364 1432692 328 0.0
qpg lighting-app qpg6105+debug (read/write) 1178464 1178776 312 0.0
.text 625304 625616 312 0.0
lock-app qpg6105+debug (read/write) 1139220 1139540 320 0.0
.text 586060 586380 320 0.1
telink air-quality-sensor-app tlsr9528a_retention (read/write) 811322 811730 408 0.1
text 606044 606374 330 0.1
all-clusters-app tlsr9518adk80d (read/write) 1071412 1071812 400 0.0
text 755036 755356 320 0.0
all-clusters-minimal-app tlsr9528a (read/write) 1076320 1076736 416 0.0
text 746708 747038 330 0.0
bridge-app tlsr9518adk80d (read/write) 930220 930636 416 0.0
text 643244 643574 330 0.1
contact-sensor-app tlsr9528a_retention (read/write) 814566 814974 408 0.1
text 609094 609424 330 0.1
light-switch-app-ota-shell-factory-data tlsr9528a (read/write) 968828 969236 408 0.0
text 687042 687370 328 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d (read/write) 1086128 1086552 424 0.0
text 763800 764138 338 0.0
lock-app-dfu tlsr9528a_retention (read/write) 871950 872358 408 0.0
text 638942 639270 328 0.1
ota-requestor-app tlsr9518adk80d (read/write) 943508 943924 416 0.0
text 658978 659316 338 0.1
pump-app tlsr9528a (read/write) 871212 871620 408 0.0
text 615618 615948 330 0.1
pump-controller-app tlsr9518adk80d (read/write) 811776 812192 416 0.1
text 582596 582926 330 0.1
resource-monitoring-app tlsr9518adk80d (read/write) 827476 827884 408 0.0
text 593210 593540 330 0.1
smoke_co_alarm-app tlsr9528a_retention (read/write) 816294 816710 416 0.1
text 611824 612154 330 0.1
temperature-measurement-app tlsr9528a_retention (read/write) 802234 802642 408 0.1
text 599840 600170 330 0.1
thermostat tlsr9518adk80d (read/write) 832868 833276 408 0.0
text 597952 598282 330 0.1
window-covering tlsr9518adk80d (read/write) 830336 830744 408 0.0
text 595002 595332 330 0.1
Decreases (5 builds for cc32xx, linux, mbed)
platform target config section dbd6d1d 0bad674 change % change
cc32xx air-purifier CC3235SF_LAUNCHXL .rodata 83690 83682 -8 -0.0
lock CC3235SF_LAUNCHXL .rodata 106306 106298 -8 -0.0
linux chip-tool-ipv6only arm64 (read/write) 515072 512864 -2208 -0.4
.data.rel.ro 380480 380432 -48 -0.0
thermostat-no-ble arm64 (read/write) 247144 245784 -1360 -0.6
mbed lock-app-release cy8cproto_062_4343w (read/write) 2525552 2525288 -264 -0.0
.text 1488236 1487972 -264 -0.0
Full report (73 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
platform target config section dbd6d1d 0bad674 change % change
bl602 lighting-app bl602 (read/write) 1407550 1408022 472 0.0
.bss 84504 84504 0 0.0
.data 9376 9376 0 0.0
.rodata 156376 156408 32 0.0
.text 1076640 1077076 436 0.0
bl602+mfd (read/write) 1421990 1422462 472 0.0
.bss 84672 84672 0 0.0
.data 9344 9344 0 0.0
.rodata 155336 155368 32 0.0
.text 1091992 1092428 436 0.0
bl602+rpc (read/write) 1454570 1455298 728 0.1
.bss 92536 92536 0 0.0
.data 9744 9744 0 0.0
.rodata 163492 163524 32 0.0
.text 1108128 1108820 692 0.1
bl702 lighting-app bl702 (read only) 3478 3478 0 0.0
(read/write) 1173715 1174183 468 0.0
.bss 11197 11197 0 0.0
.data 3560 3560 0 0.0
.rodata 106116 106148 32 0.0
.text 947134 947570 436 0.0
bl702+mfd (read only) 3478 3478 0 0.0
(read/write) 1184839 1185307 468 0.0
.bss 11373 11373 0 0.0
.data 3536 3536 0 0.0
.rodata 105056 105088 32 0.0
.text 959198 959634 436 0.0
bl702+rpc (read only) 3478 3478 0 0.0
(read/write) 1273271 1273739 468 0.0
.bss 19677 19677 0 0.0
.data 4112 4112 0 0.0
.rodata 121016 121048 32 0.0
.text 1022200 1022636 436 0.0
bl706-eth (read/write) 992649 993117 468 0.0
.bss 23772 23772 0 0.0
.data 3128 3128 0 0.0
.rodata 99204 99236 32 0.0
.text 739606 740042 436 0.1
bl706-wifi (read/write) 1227806 1228558 752 0.1
.bss 10657 10657 0 0.0
.data 3568 3568 0 0.0
.rodata 120064 120096 32 0.0
.text 964026 964748 722 0.1
bl702l lighting-app bl702l (read only) 512 512 0 0.0
(read/write) 1143428 1143896 468 0.0
.bss 16408 16408 0 0.0
.data 4920 4920 0 0.0
.rodata 100120 100152 32 0.0
.text 940228 940664 436 0.0
bl702l+mfd (read/write) 1154888 1155868 980 0.1
.bss 16584 16584 0 0.0
.data 4904 4904 0 0.0
.rodata 99060 99092 32 0.0
.text 952604 953040 436 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 (read only) 737451 737755 304 0.0
(read/write) 166528 166528 0 0.0
.bss 88940 88940 0 0.0
.data 3424 3424 0 0.0
.rodata 84599 84647 48 0.1
.text 652464 652720 256 0.0
lock-ftd LP_EM_CC1354P10_6 (read only) 759171 759467 296 0.0
(read/write) 176820 176820 0 0.0
.bss 99188 99188 0 0.0
.data 3444 3444 0 0.0
.rodata 80175 80223 48 0.1
.text 678604 678852 248 0.0
lock-mtd LP_EM_CC1354P10_6 (read only) 746443 746747 304 0.0
(read/write) 171276 171276 0 0.0
.bss 93644 93644 0 0.0
.data 3444 3444 0 0.0
.rodata 106231 106279 48 0.0
.text 639820 640076 256 0.0
pump-app LP_EM_CC1354P10_6 (read only) 697211 697523 312 0.0
(read/write) 165628 165628 0 0.0
.bss 87808 87808 0 0.0
.data 3412 3412 0 0.0
.rodata 80359 80415 56 0.1
.text 616464 616720 256 0.0
pump-controller-app LP_EM_CC1354P10_6 (read only) 682899 683203 304 0.0
(read/write) 165760 165760 0 0.0
.bss 87952 87952 0 0.0
.data 3408 3408 0 0.0
.rodata 76199 76247 48 0.1
.text 606312 606568 256 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL (read only) 563986 564314 328 0.1
(read/write) 206496 206496 0 0.0
.bss 199956 199956 0 0.0
.data 1416 1416 0 0.0
.rodata 83690 83682 -8 -0.0
.text 478172 478508 336 0.1
lock CC3235SF_LAUNCHXL (read only) 620250 620570 320 0.1
(read/write) 206900 206900 0 0.0
.bss 200336 200336 0 0.0
.data 1444 1444 0 0.0
.rodata 106306 106298 -8 -0.0
.text 511824 512152 328 0.1
cyw30739 light cyw930739m2evb_01 (read/write) 554735 555055 320 0.1
.app_xip_area 445809 446129 320 0.1
.bss 63840 63840 0 0.0
.data 664 664 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 540903 541207 304 0.1
.app_xip_area 427177 427481 304 0.1
.bss 68608 68608 0 0.0
.data 696 696 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor cyw930739m2evb_01 (read/write) 576591 576903 312 0.1
.app_xip_area 468993 469305 312 0.1
.bss 62584 62584 0 0.0
.data 592 592 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
switch cyw930739m2evb_01 (read/write) 552623 552943 320 0.1
.app_xip_area 441937 442257 320 0.1
.bss 65568 65568 0 0.0
.data 692 692 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A+rs9116 (read/write) 1008692 1009020 328 0.0
.bss 171920 171920 0 0.0
.data 2696 2696 0 0.0
.text 834056 834384 328 0.0
BRD4187C (read/write) 1094460 1094772 312 0.0
.bss 195564 195564 0 0.0
.data 3304 3304 0 0.0
.text 895572 895884 312 0.0
lock-app BRD4161A+wf200 (read/write) 1105368 1105680 312 0.0
.bss 186640 186640 0 0.0
.data 2712 2712 0 0.0
.text 915996 916308 312 0.0
window-app BRD4187C (read/write) 1131104 1131424 320 0.0
.bss 167972 167972 0 0.0
.data 3176 3176 0 0.0
.text 959936 960256 320 0.0
esp32 all-clusters-app c3devkit (read only) 1129862 1130418 556 0.0
(read/write) 1670084 1670084 0 0.0
.dram0.bss 71848 71848 0 0.0
.dram0.data 12996 12996 0 0.0
.flash.rodata 241360 241360 0 0.0
.flash.text 1129862 1130418 556 0.0
.iram0.text 75694 75694 0 0.0
m5stack (read only) 1175071 1175531 460 0.0
(read/write) 520080 520080 0 0.0
.dram0.bss 78496 78496 0 0.0
.dram0.data 34020 34020 0 0.0
.flash.rodata 273200 273200 0 0.0
.flash.text 1169687 1170147 460 0.0
.iram0.text 123907 123907 0 0.0
k32w contact k32w0+release (read only) 591436 591740 304 0.1
(read/write) 87600 87600 0 0.0
.bss 70840 70840 0 0.0
.data 2136 2136 0 0.0
.text 590900 591204 304 0.1
k32w1+release (read only) 1024 1024 0 0.0
(read/write) 686512 686824 312 0.0
.bss 67040 67040 0 0.0
.data 2720 2720 0 0.0
.text 573272 573584 312 0.1
light k32w0+release (read only) 591140 591444 304 0.1
(read/write) 87276 87276 0 0.0
.bss 70528 70528 0 0.0
.data 2124 2124 0 0.0
.text 590604 590908 304 0.1
k32w1+release (read only) 1024 1024 0 0.0
(read/write) 778516 778828 312 0.0
.bss 76716 76716 0 0.0
.data 1932 1932 0 0.0
.text 656408 656720 312 0.0
lock k32w0+release (read only) 562948 563276 328 0.1
(read/write) 85104 85104 0 0.0
.bss 68416 68416 0 0.0
.data 2064 2064 0 0.0
.text 562412 562740 328 0.1
linux air-purifier-app debug (read only) 2477461 2479613 2152 0.1
(read/write) 126280 126352 72 0.1
.bss 46656 46720 64 0.1
.data 1472 1472 0 0.0
.data.rel.ro 72168 72168 0 0.0
.dynamic 608 608 0 0.0
.got 4560 4568 8 0.2
.init 27 27 0 0.0
.init_array 800 808 8 1.0
.rodata 177128 177512 384 0.2
.text 2126533 2128181 1648 0.1
all-clusters-app debug (read only) 5279265 5281433 2168 0.0
(read/write) 418800 418872 72 0.0
.bss 128880 128944 64 0.0
.data 3856 3856 0 0.0
.data.rel.ro 278832 278832 0 0.0
.dynamic 624 624 0 0.0
.got 5360 5368 8 0.1
.init 27 27 0 0.0
.init_array 1208 1216 8 0.7
.rodata 299484 299868 384 0.1
.text 4600115 4601779 1664 0.0
all-clusters-minimal-app debug (read only) 4892153 4894265 2112 0.0
(read/write) 233080 233152 72 0.0
.bss 126704 126768 64 0.1
.data 3792 3792 0 0.0
.data.rel.ro 95440 95440 0 0.0
.dynamic 624 624 0 0.0
.got 5320 5328 8 0.2
.init 27 27 0 0.0
.init_array 1152 1160 8 0.7
.rodata 270061 270413 352 0.1
.text 4390995 4392643 1648 0.0
bridge-app debug (read only) 4374281 4376433 2152 0.0
(read/write) 215128 215200 72 0.0
.bss 118904 118968 64 0.1
.data 4704 4704 0 0.0
.data.rel.ro 84768 84768 0 0.0
.dynamic 624 624 0 0.0
.got 5288 5296 8 0.2
.init 27 27 0 0.0
.init_array 824 832 8 1.0
.rodata 218101 218485 384 0.2
.text 3938547 3940195 1648 0.0
chip-tool debug (read only) 10360913 10363513 2600 0.0
(read/write) 448896 448968 72 0.0
.bss 93752 93816 64 0.1
.data 4994 4994 0 0.0
.data.rel.ro 342920 342920 0 0.0
.dynamic 624 624 0 0.0
.got 5784 5800 16 0.3
.init 27 27 0 0.0
.init_array 768 776 8 1.0
.rodata 391529 391913 384 0.1
.text 9363699 9365699 2000 0.0
chip-tool-ipv6only arm64 (read only) 10238360 10240640 2280 0.0
(read/write) 515072 512864 -2208 -0.4
.bss 103112 103144 32 0.0
.data 4296 4296 0 0.0
.data.rel.ro 380480 380432 -48 -0.0
.dynamic 512 512 0 0.0
.got 18624 18624 0 0.0
.init 24 24 0 0.0
.init_array 256 256 0 0.0
.rodata 317744 317816 72 0.0
.text 9141688 9143784 2096 0.0
lighting-app debug+rpc+ui (read only) 5235073 5237225 2152 0.0
(read/write) 223136 223240 104 0.0
.bss 118208 118272 64 0.1
.data 4416 4416 0 0.0
.data.rel.ro 92976 92976 0 0.0
.dynamic 672 672 0 0.0
.got 5904 5912 8 0.1
.init 27 27 0 0.0
.init_array 952 960 8 0.8
.rodata 336820 337204 384 0.1
.text 4655027 4656675 1648 0.0
lock-app debug (read only) 4473977 4476089 2112 0.0
(read/write) 203304 203344 40 0.0
.bss 113472 113504 32 0.0
.data 3648 3648 0 0.0
.data.rel.ro 79432 79432 0 0.0
.dynamic 624 624 0 0.0
.got 5240 5248 8 0.2
.init 27 27 0 0.0
.init_array 864 872 8 0.9
.rodata 247381 247765 384 0.2
.text 4016995 4018611 1616 0.0
ota-provider-app debug (read only) 4132361 4133353 992 0.0
(read/write) 192192 192192 0 0.0
.bss 113568 113568 0 0.0
.data 3920 3920 0 0.0
.data.rel.ro 68784 68784 0 0.0
.dynamic 624 624 0 0.0
.got 4544 4544 0 0.0
.init 27 27 0 0.0
.init_array 728 728 0 0.0
.rodata 200085 200309 224 0.1
.text 3741427 3742195 768 0.0
ota-requestor-app debug (read only) 4218665 4219625 960 0.0
(read/write) 196440 196440 0 0.0
.bss 114592 114592 0 0.0
.data 4192 4192 0 0.0
.data.rel.ro 71744 71744 0 0.0
.dynamic 624 624 0 0.0
.got 4480 4480 0 0.0
.init 27 27 0 0.0
.init_array 784 784 0 0.0
.rodata 203861 204053 192 0.1
.text 3819651 3820419 768 0.0
shell debug (read only) 2741177 2743457 2280 0.1
(read/write) 148504 148576 72 0.0
.bss 59528 59592 64 0.1
.data 784 784 0 0.0
.data.rel.ro 82400 82400 0 0.0
.dynamic 592 592 0 0.0
.got 4088 4096 8 0.2
.init 27 27 0 0.0
.init_array 1064 1072 8 0.8
.rodata 179264 179616 352 0.2
.text 2392114 2393922 1808 0.1
thermostat-no-ble arm64 (read only) 4370504 4371912 1408 0.0
(read/write) 247144 245784 -1360 -0.6
.bss 122184 122184 0 0.0
.data 2800 2800 0 0.0
.data.rel.ro 101776 101776 0 0.0
.dynamic 512 512 0 0.0
.got 11928 11928 0 0.0
.init 24 24 0 0.0
.init_array 432 432 0 0.0
.rodata 161428 161540 112 0.1
.text 3870072 3871368 1296 0.0
tv-app debug (read only) 5243353 5245473 2120 0.0
(read/write) 344624 344664 40 0.0
.bss 242080 242112 32 0.0
.data 4992 4992 0 0.0
.data.rel.ro 90240 90240 0 0.0
.dynamic 624 624 0 0.0
.got 5528 5536 8 0.1
.init 27 27 0 0.0
.init_array 1128 1136 8 0.7
.rodata 266909 267261 352 0.1
.text 4741811 4743459 1648 0.0
tv-casting-app debug (read only) 8299185 8301545 2360 0.0
(read/write) 315640 315712 72 0.0
.bss 155936 156000 64 0.0
.data 2464 2464 0 0.0
.data.rel.ro 150384 150384 0 0.0
.dynamic 624 624 0 0.0
.got 5064 5080 16 0.3
.init 27 27 0 0.0
.init_array 1136 1144 8 0.7
.rodata 339496 339848 352 0.1
.text 7551571 7553363 1792 0.0
mbed lock-app-release cy8cproto_062_4343w (read only) 6224 6224 0 0.0
(read/write) 2525552 2525288 -264 -0.0
.bss 219064 219064 0 0.0
.data 5136 5136 0 0.0
.text 1488236 1487972 -264 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1054364 1054672 308 0.0
bss 128343 128343 0 0.0
rodata 104028 104080 52 0.0
text 774400 774656 256 0.0
nrf7002dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 1181196 1181504 308 0.0
bss 120545 120545 0 0.0
rodata 138220 138272 52 0.0
text 772092 772356 264 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1039692 1039996 304 0.0
bss 128636 128636 0 0.0
rodata 99300 99348 48 0.0
text 764168 764424 256 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 837624 837624 0 0.0
(read/write) 1732588 1732900 312 0.0
.bss 193236 193236 0 0.0
.data 2480 2480 0 0.0
.text 1528484 1528796 312 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 839344 839344 0 0.0
(read/write) 1696428 1696740 312 0.0
.bss 191516 191516 0 0.0
.data 2480 2480 0 0.0
.text 1494044 1494356 312 0.0
light cy8ckit_062s2_43012 (read only) 845896 845896 0 0.0
(read/write) 1622612 1622940 328 0.0
.bss 185076 185076 0 0.0
.data 2368 2368 0 0.0
.text 1426780 1427108 328 0.0
lock cy8ckit_062s2_43012 (read only) 818632 818632 0 0.0
(read/write) 1655460 1655788 328 0.0
.bss 212324 212324 0 0.0
.data 2384 2384 0 0.0
.text 1432364 1432692 328 0.0
qpg lighting-app qpg6105+debug (read/write) 1178464 1178776 312 0.0
.bss 100664 100664 0 0.0
.data 748 748 0 0.0
.text 625304 625616 312 0.0
lock-app qpg6105+debug (read/write) 1139220 1139540 320 0.0
.bss 95408 95408 0 0.0
.data 780 780 0 0.0
.text 586060 586380 320 0.1
telink air-quality-sensor-app tlsr9528a_retention (read only) 51910 51910 0 0.0
(read/write) 811322 811730 408 0.1
bss 53132 53132 0 0.0
text 606044 606374 330 0.1
all-clusters-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1071412 1071812 400 0.0
bss 99388 99388 0 0.0
text 755036 755356 320 0.0
all-clusters-minimal-app tlsr9528a (read only) 4 4 0 0.0
(read/write) 1076320 1076736 416 0.0
bss 109084 109084 0 0.0
text 746708 747038 330 0.0
bridge-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 930220 930636 416 0.0
bss 93684 93684 0 0.0
text 643244 643574 330 0.1
contact-sensor-app tlsr9528a_retention (read only) 51910 51910 0 0.0
(read/write) 814566 814974 408 0.1
bss 53240 53240 0 0.0
text 609094 609424 330 0.1
light-switch-app-ota-shell-factory-data tlsr9528a (read only) 4 4 0 0.0
(read/write) 968828 969236 408 0.0
bss 77040 77040 0 0.0
text 687042 687370 328 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1086128 1086552 424 0.0
bss 99192 99192 0 0.0
text 763800 764138 338 0.0
lock-app-dfu tlsr9528a_retention (read only) 51910 51910 0 0.0
(read/write) 871950 872358 408 0.0
bss 53940 53940 0 0.0
text 638942 639270 328 0.1
ota-requestor-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 943508 943924 416 0.0
bss 91792 91792 0 0.0
text 658978 659316 338 0.1
pump-app tlsr9528a (read only) 4 4 0 0.0
(read/write) 871212 871620 408 0.0
bss 67076 67076 0 0.0
text 615618 615948 330 0.1
pump-controller-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 811776 812192 416 0.1
bss 55320 55320 0 0.0
text 582596 582926 330 0.1
resource-monitoring-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 827476 827884 408 0.0
bss 55724 55724 0 0.0
text 593210 593540 330 0.1
shell tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 705712 705712 0 0.0
bss 73232 73232 0 0.0
text 462250 462250 0 0.0
smoke_co_alarm-app tlsr9528a_retention (read only) 51910 51910 0 0.0
(read/write) 816294 816710 416 0.1
bss 53332 53332 0 0.0
text 611824 612154 330 0.1
temperature-measurement-app tlsr9528a_retention (read only) 51910 51910 0 0.0
(read/write) 802234 802642 408 0.1
bss 53052 53052 0 0.0
text 599840 600170 330 0.1
thermostat tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 832868 833276 408 0.0
bss 55608 55608 0 0.0
text 597952 598282 330 0.1
window-covering tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 830336 830744 408 0.0
bss 55960 55960 0 0.0
text 595002 595332 330 0.1

@woody-apple woody-apple added this to the 1.3 Feature Complete milestone Nov 16, 2023
@hnnajh hnnajh requested a review from pidarped December 5, 2023 19:24
@@ -47,10 +47,11 @@ namespace SecureMessageCodec {
* @param msgBuf The message buffer that contains the unencrypted message. If
* the operation is successful, this buffer will be mutated to contain
* the encrypted message.
* @param inputMaxLength Max size for input
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the point of this argument? Why wouldn't callers just pass msgBuf->TotalLength() for it?

Either this argument should not exist, or the documentation needs to do a much better job of explaining what this is for and how it should be used.

My temptation is towards the former: why does the crypto stuff care about this length? It doesn't.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

so this argument is meant to provide the method the maximum length of payload's length
that means we can't just pass msgBuf->TotalLength() because that would bypass the check :) , i think this place is okay since that check is common for all the places that's calling SecureMessageCodec::Encrypt(

Copy link

github-actions bot commented Jan 20, 2024

PR #30404: Size comparison from 5fd93c4 to f0609dc

Increases (71 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, k32w, linux, nrfconnect, psoc6, qpg, stm32, telink)
platform target config section 5fd93c4 f0609dc change % change
bl602 lighting-app bl602 (read/write) 1426674 1426706 32 0.0
.text 1093956 1093990 34 0.0
bl602+mfd (read/write) 1441154 1441186 32 0.0
.text 1109332 1109366 34 0.0
bl602+rpc (read/write) 1474434 1474466 32 0.0
.text 1125716 1125750 34 0.0
bl702 lighting-app bl702 (read/write) 1191527 1191559 32 0.0
.text 963298 963332 34 0.0
bl702+mfd (read/write) 1202403 1202435 32 0.0
.text 975106 975140 34 0.0
bl702+rpc (read/write) 1283143 1283179 36 0.0
.text 1038108 1038142 34 0.0
bl706-eth (read/write) 1010105 1010141 36 0.0
.text 755272 755306 34 0.0
bl706-wifi (read/write) 1242714 1242750 36 0.0
.text 985138 985176 38 0.0
bl702l lighting-app bl702l (read/write) 1160904 1161452 548 0.0
.text 956176 956210 34 0.0
bl702l+mfd .text 968552 968586 34 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 (read only) 780712 780728 16 0.0
.text 690200 690216 16 0.0
lock-ftd LP_EM_CC1354P10_6 (read only) 798248 798264 16 0.0
.text 713340 713356 16 0.0
lock-mtd LP_EM_CC1354P10_6 (read only) 786664 786688 24 0.0
.text 675084 675108 24 0.0
pump-app LP_EM_CC1354P10_6 (read only) 738848 738864 16 0.0
.text 652552 652568 16 0.0
pump-controller-app LP_EM_CC1354P10_6 (read only) 724480 724496 16 0.0
.text 642344 642360 16 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL (read only) 572026 572074 48 0.0
.text 485444 485492 48 0.0
lock CC3235SF_LAUNCHXL (read only) 626282 626322 40 0.0
.text 517836 517876 40 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 563719 563743 24 0.0
.app_xip_area 453641 453665 24 0.0
lock cyw930739m2evb_01 (read/write) 547343 547367 24 0.0
.app_xip_area 432529 432553 24 0.0
ota-requestor cyw930739m2evb_01 (read/write) 566319 566335 16 0.0
.app_xip_area 457697 457713 16 0.0
switch cyw930739m2evb_01 (read/write) 561759 561783 24 0.0
.app_xip_area 449905 449929 24 0.0
efr32 lighting-app BRD4161A+rs9116 (read/write) 1045768 1045800 32 0.0
.text 850172 850204 32 0.0
lock-app BRD4161A+wf200 (read/write) 1121100 1121132 32 0.0
.text 930096 930128 32 0.0
window-app BRD4187C (read/write) 1144024 1144088 64 0.0
.text 973572 973636 64 0.0
esp32 all-clusters-app c3devkit (read only) 1198680 1198702 22 0.0
.flash.text 1198680 1198702 22 0.0
m5stack (read only) 1241075 1241099 24 0.0
.flash.text 1234911 1234935 24 0.0
k32w contact k32w0+release (read only) 609752 609768 16 0.0
.text 609216 609232 16 0.0
k32w1+release (read/write) 695380 695396 16 0.0
.text 581360 581376 16 0.0
light k32w0+release (read only) 599104 599136 32 0.0
.text 598568 598600 32 0.0
k32w1+release (read/write) 787352 787368 16 0.0
.text 664464 664480 16 0.0
lock k32w0+release (read only) 580344 580360 16 0.0
.text 579808 579824 16 0.0
linux air-purifier-app debug (read only) 2556933 2557189 256 0.0
.text 2201045 2201301 256 0.0
all-clusters-app debug (read only) 5723233 5723489 256 0.0
.text 4966179 4966435 256 0.0
all-clusters-minimal-app debug (read only) 5103361 5103617 256 0.0
.text 4589155 4589411 256 0.0
bridge-app debug (read only) 4531185 4531425 240 0.0
.text 4086323 4086563 240 0.0
chip-tool debug (read only) 12044649 12044905 256 0.0
.text 10904243 10904499 256 0.0
chip-tool-ipv6only arm64 (read only) 11584496 11584688 192 0.0
.text 1035398 10354172 192 0.0
lighting-app debug+rpc+ui (read only) 5450145 5450401 256 0.0
.text 4855507 4855763 256 0.0
lock-app debug (read only) 4601585 4601841 256 0.0
.text 4138675 4138931 256 0.0
ota-provider-app debug (read only) 4255545 4255801 256 0.0
.text 3857859 3858115 256 0.0
ota-requestor-app debug (read only) 4371737 4371993 256 0.0
.text 3963859 3964115 256 0.0
shell debug (read only) 2861345 2861601 256 0.0
.text 2502306 2502562 256 0.0
thermostat-no-ble arm64 (read only) 4430152 4430328 176 0.0
.text 3930076 3930252 176 0.0
tv-app debug (read only) 5535305 5535561 256 0.0
.text 5015875 5016131 256 0.0
tv-casting-app debug (read only) 9957641 9957897 256 0.0
.text 9110003 9110259 256 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1094640 1094656 16 0.0
text 805800 805816 16 0.0
nrf7002dk_nrf5340_cpuapp (read/write) 1215104 1215136 32 0.0
text 801568 801592 24 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read/write) 1043412 1043428 16 0.0
text 767092 767112 20 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read/write) 1791012 1791044 32 0.0
.text 1584644 1584676 32 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read/write) 1712532 1712580 48 0.0
.text 1508468 1508516 48 0.0
light cy8ckit_062s2_43012 (read/write) 1635492 1635524 32 0.0
.text 1438124 1438156 32 0.0
lock cy8ckit_062s2_43012 (read/write) 1664780 1664812 32 0.0
.text 1440292 1440324 32 0.0
qpg lighting-app qpg6105+debug (read/write) 1121192 1121208 16 0.0
.text 633572 633588 16 0.0
lock-app qpg6105+debug (read/write) 1085408 1085432 24 0.0
.text 597784 597808 24 0.0
stm32 light STM32WB5MM-DK (read/write) 596877 596893 16 0.0
.text 379520 379536 16 0.0
telink air-quality-sensor-app tlsr9528a_retention (read/write) 825818 825842 24 0.0
text 617778 617800 22 0.0
all-clusters-app tlsr9518adk80d (read/write) 1113236 1113260 24 0.0
text 788054 788076 22 0.0
all-clusters-minimal-app tlsr9528a (read/write) 1089752 1089776 24 0.0
text 758296 758318 22 0.0
bridge-app tlsr9518adk80d (read/write) 935132 935156 24 0.0
text 648990 649012 22 0.0
contact-sensor-app tlsr9528a_retention (read/write) 826558 826574 16 0.0
text 618650 618672 22 0.0
light-switch-app-ota-shell-factory-data tlsr9528a (read/write) 984564 984588 24 0.0
text 699432 699454 22 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d (read/write) 1097156 1097172 16 0.0
text 773254 773276 22 0.0
lock-app-dfu tlsr9528a (read/write) 970580 970604 24 0.0
text 652702 652724 22 0.0
ota-requestor-app tlsr9518adk80d (read/write) 953940 953964 24 0.0
text 667844 667866 22 0.0
pump-app tlsr9528a (read/write) 884956 884980 24 0.0
text 626264 626286 22 0.0
pump-controller-app tlsr9518adk80d (read/write) 825608 825632 24 0.0
text 593188 593210 22 0.0
shell tlsr9518adk80d (read/write) 705844 705864 20 0.0
text 462234 462256 22 0.0
smoke_co_alarm-app tlsr9528a_retention (read/write) 828462 828486 24 0.0
text 621572 621594 22 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d (read/write) 883061 883085 24 0.0
text 635202 635224 22 0.0
thermostat tlsr9518adk80d (read/write) 850820 850844 24 0.0
text 612446 612468 22 0.0
window-covering tlsr9518adk80d (read/write) 844676 844692 16 0.0
text 606110 606132 22 0.0
Decreases (3 builds for bl702l, linux)
platform target config section 5fd93c4 f0609dc change % change
bl702l lighting-app bl702l+mfd (read/write) 1172868 1172392 -476 -0.0
linux chip-tool-ipv6only arm64 (read/write) 582408 582216 -192 -0.0
thermostat-no-ble arm64 (read/write) 244792 244616 -176 -0.1
Full report (73 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, stm32, telink)
platform target config section 5fd93c4 f0609dc change % change
bl602 lighting-app bl602 (read/write) 1426674 1426706 32 0.0
.bss 85328 85328 0 0.0
.data 9488 9488 0 0.0
.rodata 157260 157260 0 0.0
.text 1093956 1093990 34 0.0
bl602+mfd (read/write) 1441154 1441186 32 0.0
.bss 85496 85496 0 0.0
.data 9456 9456 0 0.0
.rodata 156220 156220 0 0.0
.text 1109332 1109366 34 0.0
bl602+rpc (read/write) 1474434 1474466 32 0.0
.bss 93360 93360 0 0.0
.data 9864 9864 0 0.0
.rodata 164828 164828 0 0.0
.text 1125716 1125750 34 0.0
bl702 lighting-app bl702 (read only) 3478 3478 0 0.0
(read/write) 1191527 1191559 32 0.0
.bss 11133 11133 0 0.0
.data 3664 3664 0 0.0
.rodata 106644 106644 0 0.0
.text 963298 963332 34 0.0
bl702+mfd (read only) 3478 3478 0 0.0
(read/write) 1202403 1202435 32 0.0
.bss 11309 11309 0 0.0
.data 3648 3648 0 0.0
.rodata 105584 105584 0 0.0
.text 975106 975140 34 0.0
bl702+rpc (read only) 3478 3478 0 0.0
(read/write) 1283143 1283179 36 0.0
.bss 19597 19597 0 0.0
.data 4224 4224 0 0.0
.rodata 122016 122016 0 0.0
.text 1038108 1038142 34 0.0
bl706-eth (read/write) 1010105 1010141 36 0.0
.bss 23692 23692 0 0.0
.data 3240 3240 0 0.0
.rodata 99964 99964 0 0.0
.text 755272 755306 34 0.0
bl706-wifi (read/write) 1242714 1242750 36 0.0
.bss 10577 10577 0 0.0
.data 3680 3680 0 0.0
.rodata 120944 120944 0 0.0
.text 985138 985176 38 0.0
bl702l lighting-app bl702l (read/write) 1160904 1161452 548 0.0
.bss 16328 16328 0 0.0
.data 5032 5032 0 0.0
.rodata 100648 100648 0 0.0
.text 956176 956210 34 0.0
bl702l+mfd (read/write) 1172868 1172392 -476 -0.0
.bss 16504 16504 0 0.0
.data 5008 5008 0 0.0
.rodata 99588 99588 0 0.0
.text 968552 968586 34 0.0
cc13x4_26x4 lighting-app LP_EM_CC1354P10_6 (read only) 780712 780728 16 0.0
(read/write) 168864 168864 0 0.0
.bss 90884 90884 0 0.0
.data 3552 3552 0 0.0
.rodata 90248 90248 0 0.0
.text 690200 690216 16 0.0
lock-ftd LP_EM_CC1354P10_6 (read only) 798248 798264 16 0.0
(read/write) 179100 179100 0 0.0
.bss 101060 101060 0 0.0
.data 3580 3580 0 0.0
.rodata 84640 84640 0 0.0
.text 713340 713356 16 0.0
lock-mtd LP_EM_CC1354P10_6 (read only) 786664 786688 24 0.0
(read/write) 173556 173556 0 0.0
.bss 95516 95516 0 0.0
.data 3580 3580 0 0.0
.rodata 111312 111312 0 0.0
.text 675084 675108 24 0.0
pump-app LP_EM_CC1354P10_6 (read only) 738848 738864 16 0.0
(read/write) 167836 167836 0 0.0
.bss 89624 89624 0 0.0
.data 3540 3540 0 0.0
.rodata 86032 86032 0 0.0
.text 652552 652568 16 0.0
pump-controller-app LP_EM_CC1354P10_6 (read only) 724480 724496 16 0.0
(read/write) 168048 168048 0 0.0
.bss 89848 89848 0 0.0
.data 3536 3536 0 0.0
.rodata 81872 81872 0 0.0
.text 642344 642360 16 0.0
cc32xx air-purifier CC3235SF_LAUNCHXL (read only) 572026 572074 48 0.0
(read/write) 207888 207888 0 0.0
.bss 201172 201172 0 0.0
.data 1592 1592 0 0.0
.rodata 84458 84458 0 0.0
.text 485444 485492 48 0.0
lock CC3235SF_LAUNCHXL (read only) 626282 626322 40 0.0
(read/write) 208288 208288 0 0.0
.bss 201648 201648 0 0.0
.data 1520 1520 0 0.0
.rodata 106322 106322 0 0.0
.text 517836 517876 40 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 563719 563743 24 0.0
.app_xip_area 453641 453665 24 0.0
.bss 64920 64920 0 0.0
.data 732 732 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 547343 547367 24 0.0
.app_xip_area 432529 432553 24 0.0
.bss 69616 69616 0 0.0
.data 772 772 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor cyw930739m2evb_01 (read/write) 566319 566335 16 0.0
.app_xip_area 457697 457713 16 0.0
.bss 63504 63504 0 0.0
.data 696 696 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
switch cyw930739m2evb_01 (read/write) 561759 561783 24 0.0
.app_xip_area 449905 449929 24 0.0
.bss 66624 66624 0 0.0
.data 804 804 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A+rs9116 (read/write) 1045768 1045800 32 0.0
.bss 192800 192800 0 0.0
.data 2776 2776 0 0.0
.text 850172 850204 32 0.0
BRD4187C (read/write) 1107336 1107336 0 0.0
.bss 195148 195148 0 0.0
.data 3384 3384 0 0.0
.text 908784 908784 0 0.0
lock-app BRD4161A+wf200 (read/write) 1121100 1121132 32 0.0
.bss 188184 188184 0 0.0
.data 2800 2800 0 0.0
.text 930096 930128 32 0.0
window-app BRD4187C (read/write) 1144024 1144088 64 0.0
.bss 167140 167140 0 0.0
.data 3292 3292 0 0.0
.text 973572 973636 64 0.0
esp32 all-clusters-app c3devkit (read only) 1198680 1198702 22 0.0
(read/write) 1744560 1744560 0 0.0
.dram0.bss 73392 73392 0 0.0
.dram0.data 13588 13588 0 0.0
.flash.rodata 248048 248048 0 0.0
.flash.text 1198680 1198702 22 0.0
.iram0.text 75530 75530 0 0.0
m5stack (read only) 1241075 1241099 24 0.0
(read/write) 529528 529528 0 0.0
.dram0.bss 80256 80256 0 0.0
.dram0.data 35132 35132 0 0.0
.flash.rodata 278220 278220 0 0.0
.flash.text 1234911 1234935 24 0.0
.iram0.text 125403 125403 0 0.0
k32w contact k32w0+release (read only) 609752 609768 16 0.0
(read/write) 81324 81324 0 0.0
.bss 69104 69104 0 0.0
.data 2236 2236 0 0.0
.text 609216 609232 16 0.0
k32w1+release (read only) 1024 1024 0 0.0
(read/write) 695380 695396 16 0.0
.bss 67760 67760 0 0.0
.data 2788 2788 0 0.0
.text 581360 581376 16 0.0
light k32w0+release (read only) 599104 599136 32 0.0
(read/write) 79340 79340 0 0.0
.bss 67168 67168 0 0.0
.data 2188 2188 0 0.0
.text 598568 598600 32 0.0
k32w1+release (read only) 1024 1024 0 0.0
(read/write) 787352 787368 16 0.0
.bss 77436 77436 0 0.0
.data 2000 2000 0 0.0
.text 664464 664480 16 0.0
lock k32w0+release (read only) 580344 580360 16 0.0
(read/write) 78756 78756 0 0.0
.bss 66608 66608 0 0.0
.data 2164 2164 0 0.0
.text 579808 579824 16 0.0
linux air-purifier-app debug (read only) 2556933 2557189 256 0.0
(read/write) 127200 127200 0 0.0
.bss 46272 46272 0 0.0
.data 2144 2144 0 0.0
.data.rel.ro 72856 72856 0 0.0
.dynamic 608 608 0 0.0
.got 4552 4552 0 0.0
.init 27 27 0 0.0
.init_array 760 760 0 0.0
.rodata 180584 180584 0 0.0
.text 2201045 2201301 256 0.0
all-clusters-app debug (read only) 5723233 5723489 256 0.0
(read/write) 467320 467320 0 0.0
.bss 132176 132176 0 0.0
.data 4448 4448 0 0.0
.data.rel.ro 323416 323416 0 0.0
.dynamic 624 624 0 0.0
.got 5336 5336 0 0.0
.init 27 27 0 0.0
.init_array 1312 1312 0 0.0
.rodata 335868 335868 0 0.0
.text 4966179 4966435 256 0.0
all-clusters-minimal-app debug (read only) 5103361 5103617 256 0.0
(read/write) 234680 234680 0 0.0
.bss 127216 127216 0 0.0
.data 4384 4384 0 0.0
.data.rel.ro 96008 96008 0 0.0
.dynamic 624 624 0 0.0
.got 5296 5296 0 0.0
.init 27 27 0 0.0
.init_array 1120 1120 0 0.0
.rodata 281869 281869 0 0.0
.text 4589155 4589411 256 0.0
bridge-app debug (read only) 4531185 4531425 240 0.0
(read/write) 215984 215984 0 0.0
.bss 117816 117816 0 0.0
.data 6144 6144 0 0.0
.data.rel.ro 85312 85312 0 0.0
.dynamic 624 624 0 0.0
.got 5264 5264 0 0.0
.init 27 27 0 0.0
.init_array 816 816 0 0.0
.rodata 226293 226293 0 0.0
.text 4086323 4086563 240 0.0
chip-tool debug (read only) 12044649 12044905 256 0.0
(read/write) 515264 515264 0 0.0
.bss 94200 94200 0 0.0
.data 5058 5058 0 0.0
.data.rel.ro 408784 408784 0 0.0
.dynamic 624 624 0 0.0
.got 5784 5784 0 0.0
.init 27 27 0 0.0
.init_array 768 768 0 0.0
.rodata 436793 436793 0 0.0
.text 10904243 10904499 256 0.0
chip-tool-ipv6only arm64 (read only) 11584496 11584688 192 0.0
(read/write) 582408 582216 -192 -0.0
.bss 103256 103256 0 0.0
.data 4472 4472 0 0.0
.data.rel.ro 448240 448240 0 0.0
.dynamic 512 512 0 0.0
.got 20248 20248 0 0.0
.init 24 24 0 0.0
.init_array 240 240 0 0.0
.rodata 345644 345644 0 0.0
.text 1035398 10354172 192 0.0
lighting-app debug+rpc+ui (read only) 5450145 5450401 256 0.0
(read/write) 224880 224880 0 0.0
.bss 118880 118880 0 0.0
.data 4800 4800 0 0.0
.data.rel.ro 93696 93696 0 0.0
.dynamic 672 672 0 0.0
.got 5880 5880 0 0.0
.init 27 27 0 0.0
.init_array 936 936 0 0.0
.rodata 349972 349972 0 0.0
.text 4855507 4855763 256 0.0
lock-app debug (read only) 4601585 4601841 256 0.0
(read/write) 203608 203608 0 0.0
.bss 113248 113248 0 0.0
.data 4096 4096 0 0.0
.data.rel.ro 79544 79544 0 0.0
.dynamic 624 624 0 0.0
.got 5216 5216 0 0.0
.init 27 27 0 0.0
.init_array 848 848 0 0.0
.rodata 252885 252885 0 0.0
.text 4138675 4138931 256 0.0
ota-provider-app debug (read only) 4255545 4255801 256 0.0
(read/write) 192688 192688 0 0.0
.bss 113248 113248 0 0.0
.data 4256 4256 0 0.0
.data.rel.ro 69312 69312 0 0.0
.dynamic 624 624 0 0.0
.got 4528 4528 0 0.0
.init 27 27 0 0.0
.init_array 712 712 0 0.0
.rodata 205813 205813 0 0.0
.text 3857859 3858115 256 0.0
ota-requestor-app debug (read only) 4371737 4371993 256 0.0
(read/write) 196968 196968 0 0.0
.bss 114144 114144 0 0.0
.data 4656 4656 0 0.0
.data.rel.ro 72288 72288 0 0.0
.dynamic 624 624 0 0.0
.got 4464 4464 0 0.0
.init 27 27 0 0.0
.init_array 768 768 0 0.0
.rodata 211701 211701 0 0.0
.text 3963859 3964115 256 0.0
shell debug (read only) 2861345 2861601 256 0.0
(read/write) 154720 154720 0 0.0
.bss 62184 62184 0 0.0
.data 1344 1344 0 0.0
.data.rel.ro 85416 85416 0 0.0
.dynamic 592 592 0 0.0
.got 4088 4088 0 0.0
.init 27 27 0 0.0
.init_array 1072 1072 0 0.0
.rodata 186752 186752 0 0.0
.text 2502306 2502562 256 0.0
thermostat-no-ble arm64 (read only) 4430152 4430328 176 0.0
(read/write) 244792 244616 -176 -0.1
.bss 121624 121624 0 0.0
.data 3328 3328 0 0.0
.data.rel.ro 102824 102824 0 0.0
.dynamic 512 512 0 0.0
.got 12096 12096 0 0.0
.init 24 24 0 0.0
.init_array 416 416 0 0.0
.rodata 157468 157468 0 0.0
.text 3930076 3930252 176 0.0
tv-app debug (read only) 5535305 5535561 256 0.0
(read/write) 349232 349232 0 0.0
.bss 243136 243136 0 0.0
.data 6464 6464 0 0.0
.data.rel.ro 92344 92344 0 0.0
.dynamic 624 624 0 0.0
.got 5512 5512 0 0.0
.init 27 27 0 0.0
.init_array 1128 1128 0 0.0
.rodata 281493 281493 0 0.0
.text 5015875 5016131 256 0.0
tv-casting-app debug (read only) 9957641 9957897 256 0.0
(read/write) 342096 342096 0 0.0
.bss 155936 155936 0 0.0
.data 2912 2912 0 0.0
.data.rel.ro 176384 176384 0 0.0
.dynamic 624 624 0 0.0
.got 5064 5064 0 0.0
.init 27 27 0 0.0
.init_array 1160 1160 0 0.0
.rodata 376200 376200 0 0.0
.text 9110003 9110259 256 0.0
mbed lock-app-release cy8cproto_062_4343w (read only) 6224 6224 0 0.0
(read/write) 2530552 2530552 0 0.0
.bss 220384 220384 0 0.0
.data 5208 5208 0 0.0
.text 1493236 1493236 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1094640 1094656 16 0.0
bss 129796 129796 0 0.0
rodata 111200 111200 0 0.0
text 805800 805816 16 0.0
nrf7002dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 1215104 1215136 32 0.0
bss 121934 121934 0 0.0
rodata 141116 141116 0 0.0
text 801568 801592 24 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1043412 1043428 16 0.0
bss 129522 129522 0 0.0
rodata 99076 99076 0 0.0
text 767092 767112 20 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 835360 835360 0 0.0
(read/write) 1791012 1791044 32 0.0
.bss 195340 195340 0 0.0
.data 2640 2640 0 0.0
.text 1584644 1584676 32 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 837664 837664 0 0.0
(read/write) 1712532 1712580 48 0.0
.bss 193060 193060 0 0.0
.data 2616 2616 0 0.0
.text 1508468 1508516 48 0.0
light cy8ckit_062s2_43012 (read only) 844360 844360 0 0.0
(read/write) 1635492 1635524 32 0.0
.bss 186548 186548 0 0.0
.data 2432 2432 0 0.0
.text 1438124 1438156 32 0.0
lock cy8ckit_062s2_43012 (read only) 817240 817240 0 0.0
(read/write) 1664780 1664812 32 0.0
.bss 213644 213644 0 0.0
.data 2456 2456 0 0.0
.text 1440292 1440324 32 0.0
qpg lighting-app qpg6105+debug (read/write) 1121192 1121208 16 0.0
.bss 102224 102224 0 0.0
.data 808 808 0 0.0
.text 633572 633588 16 0.0
lock-app qpg6105+debug (read/write) 1085408 1085432 24 0.0
.bss 98520 98520 0 0.0
.data 852 852 0 0.0
.text 597784 597808 24 0.0
stm32 light STM32WB5MM-DK (read/write) 596877 596893 16 0.0
.bss 128280 128280 0 0.0
.data 660 660 0 0.0
.rodata 78692 78692 0 0.0
.text 379520 379536 16 0.0
telink air-quality-sensor-app tlsr9528a_retention (read only) 51774 51774 0 0.0
(read/write) 825818 825842 24 0.0
bss 51020 51020 0 0.0
text 617778 617800 22 0.0
all-clusters-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1113236 1113260 24 0.0
bss 100776 100776 0 0.0
text 788054 788076 22 0.0
all-clusters-minimal-app tlsr9528a (read only) 4 4 0 0.0
(read/write) 1089752 1089776 24 0.0
bss 109920 109920 0 0.0
text 758296 758318 22 0.0
bridge-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 935132 935156 24 0.0
bss 92988 92988 0 0.0
text 648990 649012 22 0.0
contact-sensor-app tlsr9528a_retention (read only) 51774 51774 0 0.0
(read/write) 826558 826574 16 0.0
bss 51064 51064 0 0.0
text 618650 618672 22 0.0
light-switch-app-ota-shell-factory-data tlsr9528a (read only) 4 4 0 0.0
(read/write) 984564 984588 24 0.0
bss 79108 79108 0 0.0
text 699432 699454 22 0.0
lighting-app-ota-rpc-factory-data-4mb tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1097156 1097172 16 0.0
bss 100056 100056 0 0.0
text 773254 773276 22 0.0
lock-app-dfu tlsr9528a (read only) 4 4 0 0.0
(read/write) 970580 970604 24 0.0
bss 97408 97408 0 0.0
text 652702 652724 22 0.0
ota-requestor-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 953940 953964 24 0.0
bss 92564 92564 0 0.0
text 667844 667866 22 0.0
pump-app tlsr9528a (read only) 4 4 0 0.0
(read/write) 884956 884980 24 0.0
bss 69136 69136 0 0.0
text 626264 626286 22 0.0
pump-controller-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 825608 825632 24 0.0
bss 57380 57380 0 0.0
text 593188 593210 22 0.0
shell tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 705844 705864 20 0.0
bss 73640 73640 0 0.0
text 462234 462256 22 0.0
smoke_co_alarm-app tlsr9528a_retention (read only) 51774 51774 0 0.0
(read/write) 828462 828486 24 0.0
bss 51200 51200 0 0.0
text 621572 621594 22 0.0
temperature-measurement-app-mars-ota tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 883061 883085 24 0.0
bss 60848 60848 0 0.0
text 635202 635224 22 0.0
thermostat tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 850820 850844 24 0.0
bss 57668 57668 0 0.0
text 612446 612468 22 0.0
window-covering tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 844676 844692 16 0.0
bss 57984 57984 0 0.0
text 606110 606132 22 0.0

@@ -237,7 +238,17 @@ CHIP_ERROR SessionManager::PrepareMessage(const SessionHandle & sessionHandle, P
NodeId sourceNodeId = session->GetLocalScopedNodeId().GetNodeId();
CryptoContext::BuildNonce(nonce, packetHeader.GetSecurityFlags(), messageCounter, sourceNodeId);

ReturnErrorOnFailure(SecureMessageCodec::Encrypt(session->GetCryptoContext(), nonce, payloadHeader, packetHeader, message));
if (session->GetPeerAddress().GetTransportType() == Transport::Type::kTcp)
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of passing the max size into Encrypt() by having this logic here, a better approach might be to have a utility function hanging off the Session that returns this. It could be in the Session object or could also be in the SessionManager, potentially. That utility can be called from inside Encrypt(and elsewhere) for checks.

@@ -71,6 +71,8 @@ static_assert(detail::kMaxApplicationPayloadAndMICSizeBytes > kMaxTagLen, "Need
// tag we will not have source/destination node IDs, but above we are including
// those in the header sizes.
static constexpr size_t kMaxAppMessageLen = detail::kMaxApplicationPayloadAndMICSizeBytes - kMaxTagLen;
// large payload limit
static constexpr size_t kLargePayloadMaxMessageSizeBytes = 128000;
Copy link
Contributor

Choose a reason for hiding this comment

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

Have added a ''CHIP_CONFIG_MAX_TCP_PAYLOAD_SIZE_BYTES 1000000" in a TCPConfig.h file as part of #30339

Copy link

stale bot commented Apr 22, 2024

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale Stale issue or PR label Apr 22, 2024
@bzbarsky-apple bzbarsky-apple removed the stale Stale issue or PR label Apr 24, 2024
@andy31415
Copy link
Contributor

Old PR with changes requested and merge conflicts. Assuming stale and closing.

@andy31415 andy31415 closed this Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Update buffer allocation strategy and maximum buffer size when using TCP as transport
8 participants