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

Fix ESP32 platform manager shutdown. #22417

Conversation

bzbarsky-apple
Copy link
Contributor

@bzbarsky-apple bzbarsky-apple commented Sep 6, 2022

The QEMU ESP32 tests start and stop the platform manager several times, and the
lack of a shutdown implementation was putting things in a bad state.

Also adjusts the test runner script to trigger a test failure when we do end up
in that bad state: we were passing even though we crashed quite early in the
test run and most of the tests did not run.

Fixes #22492

Problem

QEMU tests happily pass when they actually totally fail to run.

Change overview

See above.

Testing

Ran the QEMU tests locally, looked at the logs and the resulting status.

The QEMU ESP32 tests start and stop the platform manager several times, and the
lack of a shutdown implementation was putting things in a bad state.

Also adjusts the test runner script to trigger a test failure when we do end up
in that bad state: we were passing even though we crashed quite early in the
test run and most of the tests did not run.
@github-actions
Copy link

github-actions bot commented Sep 6, 2022

PR #22417: Size comparison from e535710 to 86dc30f

Increases (10 builds for bl602, cc13x2_26x2, esp32, nrfconnect, psoc6, qpg)
platform target config section e535710 86dc30f change % change
bl602 lighting-app bl602+rpc (read/write) 1455450 1455458 8 0.0
.text 1097032 1097034 2 0.0
cc13x2_26x2 pump-controller-app LP_CC2652R7 (read only) 669723 669731 8 0.0
.text 583616 583624 8 0.0
shell LP_CC2652R7 (read only) 666010 666186 176 0.0
.rodata 85770 85818 48 0.1
.text 579924 580052 128 0.0
esp32 all-clusters-app m5stack (read only) 1086195 1086963 768 0.1
(read/write) 490772 490852 80 0.0
.flash.rodata 247312 247392 80 0.0
.flash.text 1080811 1081579 768 0.1
nrfconnect all-clusters-minimal-app nrf52840dk_nrf52840 text 803460 803464 4 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read/write) 1742548 1742732 184 0.0
.debug_frame 372964 372972 8 0.0
.debug_info 26715430 26715486 56 0.0
.debug_line 3657437 3657464 27 0.0
.debug_loc 3573305 3573339 34 0.0
.strtab 570587 570719 132 0.0
.symtab 421456 421552 96 0.0
.text 1542776 1542960 184 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read/write) 1685748 1685940 192 0.0
.debug_frame 376044 376052 8 0.0
.debug_info 26452052 26452109 57 0.0
.debug_line 3677953 3677980 27 0.0
.debug_loc 3560942 3560976 34 0.0
.strtab 535061 535193 132 0.0
.symtab 408048 408144 96 0.0
.text 1486712 1486904 192 0.0
light cy8ckit_062s2_43012 (read/write) 1603020 1603212 192 0.0
.debug_frame 346312 346320 8 0.0
.debug_info 21914335 21914390 55 0.0
.debug_line 3248418 3248445 27 0.0
.debug_loc 3259284 3259318 34 0.0
.strtab 468360 468492 132 0.0
.symtab 375136 375232 96 0.0
.text 1412216 1412408 192 0.0
lock cy8ckit_062s2_43012 (read/write) 1640708 1640900 192 0.0
.debug_frame 349140 349148 8 0.0
.debug_info 22294083 22294138 55 0.0
.debug_line 3257239 3257266 27 0.0
.debug_loc 3299137 3299171 34 0.0
.strtab 474563 474695 132 0.0
.symtab 378320 378416 96 0.0
.text 1444872 1445064 192 0.0
qpg lighting-app qpg6105+debug (read/write) 1129156 1129164 8 0.0
.text 576252 576260 8 0.0
Decreases (7 builds for cc13x2_26x2, esp32, psoc6)
platform target config section e535710 86dc30f change % change
cc13x2_26x2 pump-controller-app LP_CC2652R7 (read/write) 172812 172804 -8 -0.0
shell LP_CC2652R7 (read/write) 180916 180740 -176 -0.1
esp32 all-clusters-app c3devkit (read only) 1033856 1033854 -2 -0.0
.flash.text 1033856 1033854 -2 -0.0
psoc6 all-clusters cy8ckit_062s2_43012 .debug_abbrev 1221471 1221457 -14 -0.0
all-clusters-minimal cy8ckit_062s2_43012 .debug_abbrev 1213310 1213296 -14 -0.0
light cy8ckit_062s2_43012 .debug_abbrev 1048129 1048115 -14 -0.0
lock cy8ckit_062s2_43012 .debug_abbrev 1055564 1055550 -14 -0.0
Full report (45 builds for bl602, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
platform target config section e535710 86dc30f change % change
bl602 lighting-app bl602 (read/write) 1410254 1410254 0 0.0
.bss 121585 121585 0 0.0
.data 9816 9816 0 0.0
.text 1065684 1065684 0 0.0
bl602+rpc (read/write) 1455450 1455458 8 0.0
.bss 129017 129017 0 0.0
.data 10200 10200 0 0.0
.text 1097032 1097034 2 0.0
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 675359 675359 0 0.0
(read/write) 176048 176048 0 0.0
.bss 74300 74300 0 0.0
.data 3380 3380 0 0.0
.rodata 89215 89215 0 0.0
.text 585832 585832 0 0.0
all-clusters-minimal-app LP_CC2652R7 (read only) 640071 640071 0 0.0
(read/write) 157868 157868 0 0.0
.bss 73572 73572 0 0.0
.data 3380 3380 0 0.0
.rodata 78367 78367 0 0.0
.text 561384 561384 0 0.0
lock-ftd LP_CC2652R7 (read only) 676419 676419 0 0.0
(read/write) 165300 165300 0 0.0
.bss 71500 71500 0 0.0
.data 3304 3304 0 0.0
.rodata 77067 77067 0 0.0
.text 598872 598872 0 0.0
lock-mtd LP_CC2652R7 (read only) 659379 659379 0 0.0
(read/write) 178028 178028 0 0.0
.bss 67188 67188 0 0.0
.data 3304 3304 0 0.0
.rodata 102323 102323 0 0.0
.text 556576 556576 0 0.0
pump-app LP_CC2652R7 (read only) 685247 685247 0 0.0
(read/write) 157176 157176 0 0.0
.bss 71436 71436 0 0.0
.data 3296 3296 0 0.0
.rodata 90079 90079 0 0.0
.text 594684 594684 0 0.0
pump-controller-app LP_CC2652R7 (read only) 669723 669731 8 0.0
(read/write) 172812 172804 -8 -0.0
.bss 71548 71548 0 0.0
.data 3292 3292 0 0.0
.rodata 85627 85627 0 0.0
.text 583616 583624 8 0.0
shell LP_CC2652R7 (read only) 666010 666186 176 0.0
(read/write) 180916 180740 -176 -0.1
.bss 76620 76620 0 0.0
.data 3376 3376 0 0.0
.rodata 85770 85818 48 0.1
.text 579924 580052 128 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 586882 586882 0 0.0
.app_xip_area 463540 463540 0 0.0
.bss 65776 65776 0 0.0
.data 744 744 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 592634 592634 0 0.0
.app_xip_area 464508 464508 0 0.0
.bss 70560 70560 0 0.0
.data 748 748 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 599810 599810 0 0.0
.app_xip_area 477188 477188 0 0.0
.bss 65088 65088 0 0.0
.data 716 716 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read/write) 1108544 1108544 0 0.0
.bss 136332 136332 0 0.0
.data 2072 2072 0 0.0
.text 970120 970120 0 0.0
BRD4161A+rpc (read/write) 972188 972188 0 0.0
.bss 150844 150844 0 0.0
.data 2252 2252 0 0.0
.text 819072 819072 0 0.0
BRD4161A+rs911x (read/write) 1002048 1002048 0 0.0
.bss 169168 169168 0 0.0
.data 2064 2064 0 0.0
.text 830796 830796 0 0.0
lock-app BRD4161A+wf200 (read/write) 1150116 1150116 0 0.0
.bss 152248 152248 0 0.0
.data 2072 2072 0 0.0
.text 995776 995776 0 0.0
window-app BRD4161A (read/write) 1099784 1099784 0 0.0
.bss 137772 137772 0 0.0
.data 2096 2096 0 0.0
.text 959896 959896 0 0.0
esp32 all-clusters-app c3devkit (read only) 1033856 1033854 -2 -0.0
(read/write) 1493494 1493494 0 0.0
.dram0.bss 71120 71120 0 0.0
.dram0.data 13696 13696 0 0.0
.flash.rodata 218008 218008 0 0.0
.flash.text 1033856 1033854 -2 -0.0
.iram0.text 65204 65204 0 0.0
m5stack (read only) 1086195 1086963 768 0.1
(read/write) 490772 490852 80 0.0
.dram0.bss 76640 76640 0 0.0
.dram0.data 34152 34152 0 0.0
.flash.rodata 247312 247392 80 0.0
.flash.text 1080811 1081579 768 0.1
.iram0.text 123939 123939 0 0.0
k32w light k32w0+release (read/write) 648204 648204 0 0.0
.bss 70712 70712 0 0.0
.data 2068 2068 0 0.0
.text 572696 572696 0 0.0
lock k32w0+release (read/write) 705216 705216 0 0.0
.bss 71160 71160 0 0.0
.data 2076 2076 0 0.0
.text 629252 629252 0 0.0
linux all-clusters-app debug (read only) 3046409 3046409 0 0.0
(read/write) 156064 156064 0 0.0
.bss 61824 61824 0 0.0
.data 2096 2096 0 0.0
.data.rel.ro 85768 85768 0 0.0
.dynamic 608 608 0 0.0
.got 4568 4568 0 0.0
.init 27 27 0 0.0
.init_array 1176 1176 0 0.0
.rodata 275659 275659 0 0.0
.text 2591314 2591314 0 0.0
all-clusters-minimal-app debug (read only) 2882273 2882273 0 0.0
(read/write) 147664 147664 0 0.0
.bss 61056 61056 0 0.0
.data 2064 2064 0 0.0
.data.rel.ro 78264 78264 0 0.0
.dynamic 608 608 0 0.0
.got 4488 4488 0 0.0
.init 27 27 0 0.0
.init_array 1160 1160 0 0.0
.rodata 275883 275883 0 0.0
.text 2429730 2429730 0 0.0
bridge-app debug+rpc (read only) 2379977 2379977 0 0.0
(read/write) 127752 127752 0 0.0
.bss 50656 50656 0 0.0
.data 3600 3600 0 0.0
.data.rel.ro 67640 67640 0 0.0
.dynamic 608 608 0 0.0
.got 4392 4392 0 0.0
.init 27 27 0 0.0
.init_array 832 832 0 0.0
.rodata 204488 204488 0 0.0
.text 2012578 2012578 0 0.0
chip-tool debug (read only) 10945849 10945849 0 0.0
(read/write) 657352 657352 0 0.0
.bss 25272 25272 0 0.0
.data 3266 3266 0 0.0
.data.rel.ro 622288 622288 0 0.0
.dynamic 608 608 0 0.0
.got 5096 5096 0 0.0
.init 27 27 0 0.0
.init_array 776 776 0 0.0
.rodata 569301 569301 0 0.0
.text 8855732 8855732 0 0.0
chip-tool-ipv6only arm64 (read only) 10320484 10320484 0 0.0
(read/write) 705185 705185 0 0.0
.bss 33313 33313 0 0.0
.data 3280 3280 0 0.0
.data.rel.ro 649784 649784 0 0.0
.dynamic 560 560 0 0.0
.got 13840 13840 0 0.0
.init 24 24 0 0.0
.init_array 200 200 0 0.0
.rodata 499252 499252 0 0.0
.text 8168820 8168820 0 0.0
lighting-app debug+rpc (read only) 2605401 2605401 0 0.0
(read/write) 130536 130536 0 0.0
.bss 49792 49792 0 0.0
.data 2096 2096 0 0.0
.data.rel.ro 72680 72680 0 0.0
.dynamic 608 608 0 0.0
.got 4392 4392 0 0.0
.init 27 27 0 0.0
.init_array 928 928 0 0.0
.rodata 221328 221328 0 0.0
.text 2212882 2212882 0 0.0
lock-app debug (read only) 2588385 2588385 0 0.0
(read/write) 125712 125712 0 0.0
.bss 48288 48288 0 0.0
.data 1712 1712 0 0.0
.data.rel.ro 69688 69688 0 0.0
.dynamic 608 608 0 0.0
.got 4464 4464 0 0.0
.init 27 27 0 0.0
.init_array 904 904 0 0.0
.rodata 238320 238320 0 0.0
.text 2183122 2183122 0 0.0
ota-provider-app debug (read only) 2365657 2365657 0 0.0
(read/write) 119144 119144 0 0.0
.bss 47808 47808 0 0.0
.data 1936 1936 0 0.0
.data.rel.ro 63512 63512 0 0.0
.dynamic 608 608 0 0.0
.got 4488 4488 0 0.0
.init 27 27 0 0.0
.init_array 768 768 0 0.0
.rodata 210328 210328 0 0.0
.text 1991570 1991570 0 0.0
ota-requestor-app debug (read only) 2530969 2530969 0 0.0
(read/write) 127552 127552 0 0.0
.bss 50368 50368 0 0.0
.data 2304 2304 0 0.0
.data.rel.ro 68920 68920 0 0.0
.dynamic 608 608 0 0.0
.got 4480 4480 0 0.0
.init 27 27 0 0.0
.init_array 856 856 0 0.0
.rodata 217120 217120 0 0.0
.text 2140946 2140946 0 0.0
shell debug (read only) 2614713 2614713 0 0.0
(read/write) 142184 142184 0 0.0
.bss 57704 57704 0 0.0
.data 1264 1264 0 0.0
.data.rel.ro 77376 77376 0 0.0
.dynamic 608 608 0 0.0
.got 4136 4136 0 0.0
.init 27 27 0 0.0
.init_array 1048 1048 0 0.0
.rodata 235762 235762 0 0.0
.text 2220242 2220242 0 0.0
thermostat-no-ble arm64 (read only) 2364132 2364132 0 0.0
(read/write) 141857 141857 0 0.0
.bss 55233 55233 0 0.0
.data 1680 1680 0 0.0
.data.rel.ro 76112 76112 0 0.0
.dynamic 560 560 0 0.0
.got 5056 5056 0 0.0
.init 24 24 0 0.0
.init_array 416 416 0 0.0
.rodata 141324 141324 0 0.0
.text 1984768 1984768 0 0.0
tv-app debug (read only) 3192969 3192969 0 0.0
(read/write) 258040 258040 0 0.0
.bss 167352 167352 0 0.0
.data 4752 4752 0 0.0
.data.rel.ro 79368 79368 0 0.0
.dynamic 608 608 0 0.0
.got 4856 4856 0 0.0
.init 27 27 0 0.0
.init_array 1080 1080 0 0.0
.rodata 260328 260328 0 0.0
.text 2742610 2742610 0 0.0
tv-casting-app debug (read only) 5511313 5511313 0 0.0
(read/write) 160536 160536 0 0.0
.bss 51352 51352 0 0.0
.data 2432 2432 0 0.0
.data.rel.ro 100304 100304 0 0.0
.dynamic 608 608 0 0.0
.got 4776 4776 0 0.0
.init 27 27 0 0.0
.init_array 1048 1048 0 0.0
.rodata 345393 345393 0 0.0
.text 4894018 4894018 0 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2455032 2455032 0 0.0
.bss 215044 215044 0 0.0
.data 5872 5872 0 0.0
.text 1417676 1417676 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1181199 1181199 0 0.0
bss 143641 143641 0 0.0
rodata 143552 143552 0 0.0
text 815072 815072 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read/write) 1160395 1160395 0 0.0
bss 142868 142868 0 0.0
rodata 135140 135140 0 0.0
text 803460 803464 4 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 841960 841960 0 0.0
(read/write) 1742548 1742732 184 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 188720 188720 0 0.0
.comment 204 204 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2664 2664 0 0.0
.debug_abbrev 1221471 1221457 -14 -0.0
.debug_aranges 111728 111728 0 0.0
.debug_frame 372964 372972 8 0.0
.debug_info 26715430 26715486 56 0.0
.debug_line 3657437 3657464 27 0.0
.debug_loc 3573305 3573339 34 0.0
.debug_ranges 338440 338440 0 0.0
.debug_str 3427396 3427396 0 0.0
.heap 841960 841960 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 570587 570719 132 0.0
.symtab 421456 421552 96 0.0
.text 0 0 0 0.0
1542776 1542960 184 0.0
.zero.table 8 8 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 842696 842696 0 0.0
(read/write) 1685748 1685940 192 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 187984 187984 0 0.0
.comment 204 204 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2664 2664 0 0.0
.debug_abbrev 1213310 1213296 -14 -0.0
.debug_aranges 111200 111200 0 0.0
.debug_frame 376044 376052 8 0.0
.debug_info 26452052 26452109 57 0.0
.debug_line 3677953 3677980 27 0.0
.debug_loc 3560942 3560976 34 0.0
.debug_ranges 337056 337056 0 0.0
.debug_str 3416401 3416401 0 0.0
.heap 842696 842696 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 535061 535193 132 0.0
.symtab 408048 408144 96 0.0
.text 1486712 1486904 192 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
light cy8ckit_062s2_43012 (read only) 850928 850928 0 0.0
(read/write) 1603020 1603212 192 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 179960 179960 0 0.0
.comment 204 204 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2456 2456 0 0.0
.debug_abbrev 1048129 1048115 -14 -0.0
.debug_aranges 103376 103376 0 0.0
.debug_frame 346312 346320 8 0.0
.debug_info 21914335 21914390 55 0.0
.debug_line 3248418 3248445 27 0.0
.debug_loc 3259284 3259318 34 0.0
.debug_ranges 302528 302528 0 0.0
.debug_str 3221667 3221667 0 0.0
.heap 850928 850928 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 468360 468492 132 0.0
.symtab 375136 375232 96 0.0
.text 1412216 1412408 192 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
lock cy8ckit_062s2_43012 (read only) 845896 845896 0 0.0
(read/write) 1640708 1640900 192 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 184976 184976 0 0.0
.comment 204 204 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2472 2472 0 0.0
.debug_abbrev 1055564 1055550 -14 -0.0
.debug_aranges 104048 104048 0 0.0
.debug_frame 349140 349148 8 0.0
.debug_info 22294083 22294138 55 0.0
.debug_line 3257239 3257266 27 0.0
.debug_loc 3299137 3299171 34 0.0
.debug_ranges 305872 305872 0 0.0
.debug_str 3249088 3249088 0 0.0
.heap 845896 845896 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 474563 474695 132 0.0
.symtab 378320 378416 96 0.0
.text 1444872 1445064 192 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1129156 1129164 8 0.0
.bss 106112 106112 0 0.0
.data 1028 1028 0 0.0
.text 576252 576260 8 0.0
lock-app qpg6105+debug (read/write) 1100176 1100176 0 0.0
.bss 102344 102344 0 0.0
.data 1032 1032 0 0.0
.text 547276 547276 0 0.0
telink light-switch-app tlsr9518adk80d (read/write) 809096 809096 0 0.0
bss 71344 71344 0 0.0
noinit 43488 43488 0 0.0
text 571518 571518 0 0.0
lighting-app tlsr9518adk80d (read/write) 831004 831004 0 0.0
bss 72200 72200 0 0.0
noinit 43488 43488 0 0.0
text 589642 589642 0 0.0

@andy31415
Copy link
Contributor

Accepted for v1: high value fix for testing only (assuming other FreeRTOS platforms generally have no need to call shutdown, they would just reboot)

@bzbarsky-apple
Copy link
Contributor Author

With the no-deleting change, xQueueSend fails after shutdown+restart as far as I can tell, which is why the QEMU tests are failing.... re-creating the queue seems to fix that part, but the tests still get stuck somewhere under "chip-system-schedule-lambda"... and re-creating the lock fixes that problem as well and the tests complete. :(

@jmartinez-silabs @tcarmelveilleux any ideas what might be going on there?

@bzbarsky-apple
Copy link
Contributor Author

OK, so I now understand why things started failing. There were two problems:

  1. TestSystemTimer queues up timers (which will normally post events to the platform manager's event loop to trigger a "platform timer") but does not actually run the platform manager event loop. Instead it manually calls HandlePlatformTimer on the System::Layer. If the platform manager has no mChipEventQueue, then the PostEvent fails, but the error return from LayerImplFreeRTOS::StartPlatformTimer is ignored at all its callsites, so things "work". Filed [Platform] LayerImplFreeRTOS::StartPlatformTimer return value is never checked #22484 on that. But if we have a mChipEventQueue it fills up with events that never get processed, and then the next test fails when it tries to post an event to that queue. The fix for that is to xQueueReset the queue in _InitChipStack if it's not null.
  2. _RunEventLoop was locking the stack but not actually unlocking it when the event loop was stopped. In the original version of the PR we would delete and re-create the semaphore, which effectively "cleared" the lock. But now that the semaphore persists across stack restarts, the second attempt to run the event loop deadlocks. The fix for that is to not leave the semaphore locked when exiting the event loop.

Ensure we always start with an empty event queue after FreeRTOS _InitChipStack.
@bzbarsky-apple bzbarsky-apple force-pushed the fix-esp32-platform-manager-shutdown branch from f6ffaa4 to cf2d6b8 Compare September 8, 2022 17:12
@github-actions
Copy link

github-actions bot commented Sep 8, 2022

PR #22417: Size comparison from 0e3bbae to cf2d6b8

Increases above 0.2%:

platform target config section 0e3bbae cf2d6b8 change % change
cc13x2_26x2 shell LP_CC2652R7 .rodata 85778 85994 216 0.3
psoc6 all-clusters cy8ckit_062s2_43012 .debug_ranges 338400 340544 2144 0.6
all-clusters-minimal cy8ckit_062s2_43012 .debug_ranges 337016 339160 2144 0.6
light cy8ckit_062s2_43012 .debug_ranges 302488 304632 2144 0.7
lock cy8ckit_062s2_43012 .debug_ranges 305832 307976 2144 0.7
Increases (33 builds for bl602, cc13x2_26x2, cyw30739, efr32, esp32, k32w, mbed, nrfconnect, psoc6, qpg, telink)
platform target config section 0e3bbae cf2d6b8 change % change
bl602 lighting-app bl602 (read/write) 1410290 1411830 1540 0.1
1410290 1410362 72 0.0
.text 1065690 1067066 1376 0.1
1065690 1065762 72 0.0
bl602+rpc (read/write) 1455486 1457282 1796 0.1
1455486 1455558 72 0.0
.text 1097038 1098670 1632 0.1
1097038 1097108 70 0.0
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 675431 676159 728 0.1
675431 675463 32 0.0
.rodata 89223 89383 160 0.2
.text 585896 586464 568 0.1
585896 585928 32 0.0
all-clusters-minimal-app LP_CC2652R7 (read only) 640151 640879 728 0.1
640151 640183 32 0.0
.rodata 78375 78535 160 0.2
.text 561456 562024 568 0.1
561456 561488 32 0.0
lock-ftd LP_CC2652R7 (read only) 676483 677235 752 0.1
676483 676515 32 0.0
.rodata 77075 77235 160 0.2
.text 598928 599520 592 0.1
598928 598960 32 0.0
lock-mtd LP_CC2652R7 (read only) 659483 660219 736 0.1
659483 659515 32 0.0
.rodata 102355 102515 160 0.2
.text 556648 557224 576 0.1
556648 556680 32 0.0
pump-app LP_CC2652R7 (read only) 685343 686071 728 0.1
685343 685375 32 0.0
.rodata 90103 90263 160 0.2
.text 594756 595324 568 0.1
594756 594788 32 0.0
pump-controller-app LP_CC2652R7 (read only) 669835 670563 728 0.1
669835 669867 32 0.0
.rodata 85659 85819 160 0.2
.text 583696 584264 568 0.1
583696 583728 32 0.0
shell LP_CC2652R7 (read only) 666090 666986 896 0.1
666090 666282 192 0.0
.rodata 85778 85994 216 0.3
85778 85834 56 0.1
.text 579996 580676 680 0.1
579996 580132 136 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 587002 587394 392 0.1
.app_xip_area 463660 464052 392 0.1
lock cyw930739m2evb_01 (read/write) 592738 593146 408 0.1
.app_xip_area 464612 465020 408 0.1
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 599914 600618 704 0.1
.app_xip_area 477292 477996 704 0.1
efr32 lighting-app BRD4161A (read/write) 1108624 1109992 1368 0.1
1108624 1108672 48 0.0
.text 970200 971568 1368 0.1
970200 970248 48 0.0
BRD4161A+rpc (read/write) 972316 973052 736 0.1
972316 972348 32 0.0
.text 819200 819936 736 0.1
819200 819232 32 0.0
BRD4161A+rs911x (read/write) 1002056 1003432 1376 0.1
1002056 1002120 64 0.0
.text 830804 832180 1376 0.2
830804 830868 64 0.0
lock-app BRD4161A+wf200 (read/write) 1150180 1150916 736 0.1
1150180 1150212 32 0.0
.text 995840 996576 736 0.1
995840 995872 32 0.0
window-app BRD4161A (read/write) 1099856 1101224 1368 0.1
1099856 1099904 48 0.0
.text 959968 961336 1368 0.1
959968 960016 48 0.0
esp32 all-clusters-app c3devkit (read only) 1033930 1034678 748 0.1
1033930 1033994 64 0.0
(read/write) 1493566 1493734 168 0.0
.flash.rodata 218080 218248 168 0.1
.flash.text 1033930 1034678 748 0.1
1033930 1033994 64 0.0
m5stack (read only) 1086511 1087699 1188 0.1
1086511 1087035 524 0.0
(read/write) 490852 491076 224 0.0
490852 490924 72 0.0
.flash.rodata 247392 247616 224 0.1
247392 247464 72 0.0
.flash.text 1081127 1082315 1188 0.1
1081127 1081651 524 0.0
k32w light k32w0+release (read/write) 648268 648860 592 0.1
648268 648300 32 0.0
.text 572760 573352 592 0.1
572760 572792 32 0.0
lock k32w0+release (read/write) 705312 706048 736 0.1
705312 705344 32 0.0
.text 629348 630084 736 0.1
629348 629380 32 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read/write) 2455136 2455224 88 0.0
.text 1417780 1417868 88 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1181327 1182027 700 0.1
rodata 143584 143740 156 0.1
text 815164 815708 544 0.1
all-clusters-minimal-app nrf52840dk_nrf52840 (read/write) 1160507 1161227 720 0.1
1160507 1160523 16 0.0
rodata 135172 135332 160 0.1
text 803552 804100 548 0.1
803552 803556 4 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read/write) 1742572 1744108 1536 0.1
1742572 1742788 216 0.0
.debug_abbrev 1221650 1221909 259 0.0
1221650 1221652 2 0.0
.debug_aranges 111744 111776 32 0.0
.debug_frame 373048 373172 124 0.0
373048 373052 4 0.0
.debug_info 26719024 26739034 20010 0.1
26719024 26720030 1006 0.0
.debug_line 3658002 3662824 4822 0.1
3658002 3658265 263 0.0
.debug_loc 3573942 3581159 7217 0.2
3573942 3574259 317 0.0
.debug_ranges 338400 340544 2144 0.6
338400 338640 240 0.1
.debug_str 3427580 3428604 1024 0.0
3427580 3428140 560 0.0
.strtab 570615 571087 472 0.1
570615 570747 132 0.0
.symtab 421488 421776 288 0.1
421488 421584 96 0.0
.text 1542800 1544336 1536 0.1
1542800 1543016 216 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read/write) 1685772 1687316 1544 0.1
1685772 1685996 224 0.0
.debug_abbrev 1213489 1213748 259 0.0
1213489 1213491 2 0.0
.debug_aranges 111216 111248 32 0.0
.debug_frame 376128 376252 124 0.0
376128 376132 4 0.0
.debug_info 26455647 26475658 20011 0.1
26455647 26456654 1007 0.0
.debug_line 3678518 3683364 4846 0.1
3678518 3678781 263 0.0
.debug_loc 3561579 3568796 7217 0.2
3561579 3561896 317 0.0
.debug_ranges 337016 339160 2144 0.6
337016 337256 240 0.1
.debug_str 3416585 3417609 1024 0.0
3416585 3417145 560 0.0
.strtab 535089 535561 472 0.1
535089 535221 132 0.0
.symtab 408080 408368 288 0.1
408080 408176 96 0.0
.text 1486736 1488280 1544 0.1
1486736 1486960 224 0.0
light cy8ckit_062s2_43012 (read/write) 1603028 1604548 1520 0.1
1603028 1603236 208 0.0
.debug_abbrev 1048308 1048567 259 0.0
1048308 1048310 2 0.0
.debug_aranges 103392 103424 32 0.0
.debug_frame 346396 346520 124 0.0
346396 346400 4 0.0
.debug_info 21917818 21937828 20010 0.1
21917818 21918823 1005 0.0
.debug_line 3248983 3253793 4810 0.1
3248983 3249246 263 0.0
.debug_loc 3259921 3267090 7169 0.2
3259921 3260190 269 0.0
.debug_ranges 302488 304632 2144 0.7
302488 302728 240 0.1
.debug_str 3221851 3222875 1024 0.0
3221851 3222411 560 0.0
.strtab 468388 468860 472 0.1
468388 468520 132 0.0
.symtab 375168 375456 288 0.1
375168 375264 96 0.0
.text 1412224 1413744 1520 0.1
1412224 1412432 208 0.0
lock cy8ckit_062s2_43012 (read/write) 1640716 1642236 1520 0.1
1640716 1640924 208 0.0
.debug_abbrev 1055743 1056002 259 0.0
1055743 1055745 2 0.0
.debug_aranges 104064 104096 32 0.0
.debug_frame 349224 349348 124 0.0
349224 349228 4 0.0
.debug_info 22297601 22317612 20011 0.1
22297601 22298608 1007 0.0
.debug_line 3257804 3262602 4798 0.1
3257804 3258067 263 0.0
.debug_loc 3299773 3306957 7184 0.2
3299773 3300042 269 0.0
.debug_ranges 305832 307976 2144 0.7
305832 306072 240 0.1
.debug_str 3249272 3250296 1024 0.0
3249272 3249832 560 0.0
.strtab 474591 475063 472 0.1
474591 474723 132 0.0
.symtab 378352 378640 288 0.1
378352 378448 96 0.0
.text 1444880 1446400 1520 0.1
1444880 1445088 208 0.0
qpg lighting-app qpg6105+debug (read/write) 1129284 1130012 728 0.1
1129284 1129316 32 0.0
.text 576380 577108 728 0.1
576380 576412 32 0.0
lock-app qpg6105+debug (read/write) 1100264 1101008 744 0.1
1100264 1100296 32 0.0
.text 547364 548108 744 0.1
547364 547396 32 0.0
telink light-switch-app tlsr9518adk80d (read/write) 812168 812960 792 0.1
text 573712 574346 634 0.1
lighting-app tlsr9518adk80d (read/write) 834072 834872 800 0.1
text 591838 592478 640 0.1
ota-requestor-app tlsr9518adk80d (read/write) 842324 843116 792 0.1
text 598106 598740 634 0.1
Decreases (8 builds for cc13x2_26x2, telink)
platform target config section 0e3bbae cf2d6b8 change % change
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read/write) 175976 175248 -728 -0.4
175976 175944 -32 -0.0
lock-ftd LP_CC2652R7 (read/write) 165236 164484 -752 -0.5
165236 165204 -32 -0.0
lock-mtd LP_CC2652R7 (read/write) 177924 177188 -736 -0.4
177924 177892 -32 -0.0
pump-app LP_CC2652R7 (read/write) 157080 156352 -728 -0.5
157080 157048 -32 -0.0
pump-controller-app LP_CC2652R7 (read/write) 172700 171972 -728 -0.4
172700 172668 -32 -0.0
shell LP_CC2652R7 (read/write) 180836 179940 -896 -0.5
180836 180644 -192 -0.1
telink light-switch-app tlsr9518adk80d text 573712 573710 -2 -0.0
ota-requestor-app tlsr9518adk80d (read/write) 842324 842316 -8 -0.0
text 598106 598102 -4 -0.0
Full report (46 builds for bl602, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
platform target config section 0e3bbae cf2d6b8 change % change
bl602 lighting-app bl602 (read/write) 1410290 1411830 1540 0.1
1410290 1410362 72 0.0
.bss 121585 121585 0 0.0
.data 9816 9816 0 0.0
.text 1065690 1067066 1376 0.1
1065690 1065762 72 0.0
bl602+rpc (read/write) 1455486 1457282 1796 0.1
1455486 1455558 72 0.0
.bss 129017 129017 0 0.0
.data 10200 10200 0 0.0
.text 1097038 1098670 1632 0.1
1097038 1097108 70 0.0
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 675431 676159 728 0.1
675431 675463 32 0.0
(read/write) 175976 175248 -728 -0.4
175976 175944 -32 -0.0
.bss 74300 74300 0 0.0
.data 3380 3380 0 0.0
.rodata 89223 89383 160 0.2
89223 89223 0 0.0
.text 585896 586464 568 0.1
585896 585928 32 0.0
all-clusters-minimal-app LP_CC2652R7 (read only) 640151 640879 728 0.1
640151 640183 32 0.0
(read/write) 157868 157868 0 0.0
.bss 73572 73572 0 0.0
.data 3380 3380 0 0.0
.rodata 78375 78535 160 0.2
78375 78375 0 0.0
.text 561456 562024 568 0.1
561456 561488 32 0.0
lock-ftd LP_CC2652R7 (read only) 676483 677235 752 0.1
676483 676515 32 0.0
(read/write) 165236 164484 -752 -0.5
165236 165204 -32 -0.0
.bss 71500 71500 0 0.0
.data 3304 3304 0 0.0
.rodata 77075 77235 160 0.2
77075 77075 0 0.0
.text 598928 599520 592 0.1
598928 598960 32 0.0
lock-mtd LP_CC2652R7 (read only) 659483 660219 736 0.1
659483 659515 32 0.0
(read/write) 177924 177188 -736 -0.4
177924 177892 -32 -0.0
.bss 67188 67188 0 0.0
.data 3304 3304 0 0.0
.rodata 102355 102515 160 0.2
102355 102355 0 0.0
.text 556648 557224 576 0.1
556648 556680 32 0.0
pump-app LP_CC2652R7 (read only) 685343 686071 728 0.1
685343 685375 32 0.0
(read/write) 157080 156352 -728 -0.5
157080 157048 -32 -0.0
.bss 71436 71436 0 0.0
.data 3296 3296 0 0.0
.rodata 90103 90263 160 0.2
90103 90103 0 0.0
.text 594756 595324 568 0.1
594756 594788 32 0.0
pump-controller-app LP_CC2652R7 (read only) 669835 670563 728 0.1
669835 669867 32 0.0
(read/write) 172700 171972 -728 -0.4
172700 172668 -32 -0.0
.bss 71548 71548 0 0.0
.data 3292 3292 0 0.0
.rodata 85659 85819 160 0.2
85659 85659 0 0.0
.text 583696 584264 568 0.1
583696 583728 32 0.0
shell LP_CC2652R7 (read only) 666090 666986 896 0.1
666090 666282 192 0.0
(read/write) 180836 179940 -896 -0.5
180836 180644 -192 -0.1
.bss 76620 76620 0 0.0
.data 3376 3376 0 0.0
.rodata 85778 85994 216 0.3
85778 85834 56 0.1
.text 579996 580676 680 0.1
579996 580132 136 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 587002 587394 392 0.1
587002 587002 0 0.0
.app_xip_area 463660 464052 392 0.1
463660 463660 0 0.0
.bss 65776 65776 0 0.0
.data 744 744 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 592738 593146 408 0.1
592738 592738 0 0.0
.app_xip_area 464612 465020 408 0.1
464612 464612 0 0.0
.bss 70560 70560 0 0.0
.data 748 748 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 599914 600618 704 0.1
599914 599914 0 0.0
.app_xip_area 477292 477996 704 0.1
477292 477292 0 0.0
.bss 65088 65088 0 0.0
.data 716 716 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read/write) 1108624 1109992 1368 0.1
1108624 1108672 48 0.0
.bss 136332 136332 0 0.0
.data 2072 2072 0 0.0
.text 970200 971568 1368 0.1
970200 970248 48 0.0
BRD4161A+rpc (read/write) 972316 973052 736 0.1
972316 972348 32 0.0
.bss 150844 150844 0 0.0
.data 2252 2252 0 0.0
.text 819200 819936 736 0.1
819200 819232 32 0.0
BRD4161A+rs911x (read/write) 1002056 1003432 1376 0.1
1002056 1002120 64 0.0
.bss 169168 169168 0 0.0
.data 2064 2064 0 0.0
.text 830804 832180 1376 0.2
830804 830868 64 0.0
lock-app BRD4161A+wf200 (read/write) 1150180 1150916 736 0.1
1150180 1150212 32 0.0
.bss 152248 152248 0 0.0
.data 2072 2072 0 0.0
.text 995840 996576 736 0.1
995840 995872 32 0.0
window-app BRD4161A (read/write) 1099856 1101224 1368 0.1
1099856 1099904 48 0.0
.bss 137772 137772 0 0.0
.data 2096 2096 0 0.0
.text 959968 961336 1368 0.1
959968 960016 48 0.0
esp32 all-clusters-app c3devkit (read only) 1033930 1034678 748 0.1
1033930 1033994 64 0.0
(read/write) 1493566 1493734 168 0.0
1493566 1493566 0 0.0
.dram0.bss 71120 71120 0 0.0
.dram0.data 13696 13696 0 0.0
.flash.rodata 218080 218248 168 0.1
218080 218080 0 0.0
.flash.text 1033930 1034678 748 0.1
1033930 1033994 64 0.0
.iram0.text 65204 65204 0 0.0
m5stack (read only) 1086511 1087699 1188 0.1
1086511 1087035 524 0.0
(read/write) 490852 491076 224 0.0
490852 490924 72 0.0
.dram0.bss 76640 76640 0 0.0
.dram0.data 34152 34152 0 0.0
.flash.rodata 247392 247616 224 0.1
247392 247464 72 0.0
.flash.text 1081127 1082315 1188 0.1
1081127 1081651 524 0.0
.iram0.text 123939 123939 0 0.0
k32w light k32w0+release (read/write) 648268 648860 592 0.1
648268 648300 32 0.0
.bss 70712 70712 0 0.0
.data 2068 2068 0 0.0
.text 572760 573352 592 0.1
572760 572792 32 0.0
lock k32w0+release (read/write) 705312 706048 736 0.1
705312 705344 32 0.0
.bss 71160 71160 0 0.0
.data 2076 2076 0 0.0
.text 629348 630084 736 0.1
629348 629380 32 0.0
linux all-clusters-app debug (read only) 3046569 3046569 0 0.0
(read/write) 156064 156064 0 0.0
.bss 61824 61824 0 0.0
.data 2096 2096 0 0.0
.data.rel.ro 85768 85768 0 0.0
.dynamic 608 608 0 0.0
.got 4568 4568 0 0.0
.init 27 27 0 0.0
.init_array 1176 1176 0 0.0
.rodata 275691 275691 0 0.0
.text 2591442 2591442 0 0.0
all-clusters-minimal-app debug (read only) 2882433 2882433 0 0.0
(read/write) 147664 147664 0 0.0
.bss 61056 61056 0 0.0
.data 2064 2064 0 0.0
.data.rel.ro 78264 78264 0 0.0
.dynamic 608 608 0 0.0
.got 4488 4488 0 0.0
.init 27 27 0 0.0
.init_array 1160 1160 0 0.0
.rodata 275915 275915 0 0.0
.text 2429858 2429858 0 0.0
bridge-app debug+rpc (read only) 2380169 2380169 0 0.0
(read/write) 127752 127752 0 0.0
.bss 50656 50656 0 0.0
.data 3600 3600 0 0.0
.data.rel.ro 67640 67640 0 0.0
.dynamic 608 608 0 0.0
.got 4392 4392 0 0.0
.init 27 27 0 0.0
.init_array 832 832 0 0.0
.rodata 204552 204552 0 0.0
.text 2012706 2012706 0 0.0
chip-tool debug (read only) 10958017 10958017 0 0.0
(read/write) 657736 657736 0 0.0
.bss 26072 26072 0 0.0
.data 2690 2690 0 0.0
.data.rel.ro 622456 622456 0 0.0
.dynamic 608 608 0 0.0
.got 5096 5096 0 0.0
.init 27 27 0 0.0
.init_array 776 776 0 0.0
.rodata 570325 570325 0 0.0
.text 8866468 8866468 0 0.0
chip-tool-ipv6only arm64 (read only) 10330188 10330188 0 0.0
(read/write) 705601 705601 0 0.0
.bss 33937 33937 0 0.0
.data 2856 2856 0 0.0
.data.rel.ro 649976 649976 0 0.0
.dynamic 560 560 0 0.0
.got 13864 13864 0 0.0
.init 24 24 0 0.0
.init_array 200 200 0 0.0
.rodata 499948 499948 0 0.0
.text 8177220 8177220 0 0.0
lighting-app debug+rpc (read only) 2605593 2605593 0 0.0
(read/write) 130536 130536 0 0.0
.bss 49792 49792 0 0.0
.data 2096 2096 0 0.0
.data.rel.ro 72680 72680 0 0.0
.dynamic 608 608 0 0.0
.got 4392 4392 0 0.0
.init 27 27 0 0.0
.init_array 928 928 0 0.0
.rodata 221392 221392 0 0.0
.text 2213010 2213010 0 0.0
lock-app debug (read only) 2588577 2588577 0 0.0
(read/write) 125712 125712 0 0.0
.bss 48288 48288 0 0.0
.data 1712 1712 0 0.0
.data.rel.ro 69688 69688 0 0.0
.dynamic 608 608 0 0.0
.got 4464 4464 0 0.0
.init 27 27 0 0.0
.init_array 904 904 0 0.0
.rodata 238384 238384 0 0.0
.text 2183250 2183250 0 0.0
ota-provider-app debug (read only) 2365833 2365833 0 0.0
(read/write) 119144 119144 0 0.0
.bss 47808 47808 0 0.0
.data 1936 1936 0 0.0
.data.rel.ro 63512 63512 0 0.0
.dynamic 608 608 0 0.0
.got 4488 4488 0 0.0
.init 27 27 0 0.0
.init_array 768 768 0 0.0
.rodata 210360 210360 0 0.0
.text 1991714 1991714 0 0.0
ota-requestor-app debug (read only) 2531161 2531161 0 0.0
(read/write) 127552 127552 0 0.0
.bss 50368 50368 0 0.0
.data 2304 2304 0 0.0
.data.rel.ro 68920 68920 0 0.0
.dynamic 608 608 0 0.0
.got 4480 4480 0 0.0
.init 27 27 0 0.0
.init_array 856 856 0 0.0
.rodata 217184 217184 0 0.0
.text 2141074 2141074 0 0.0
shell debug (read only) 2614905 2614905 0 0.0
(read/write) 142184 142184 0 0.0
.bss 57704 57704 0 0.0
.data 1264 1264 0 0.0
.data.rel.ro 77376 77376 0 0.0
.dynamic 608 608 0 0.0
.got 4136 4136 0 0.0
.init 27 27 0 0.0
.init_array 1048 1048 0 0.0
.rodata 235826 235826 0 0.0
.text 2220370 2220370 0 0.0
thermostat-no-ble arm64 (read only) 2364244 2364244 0 0.0
(read/write) 141857 141857 0 0.0
.bss 55233 55233 0 0.0
.data 1680 1680 0 0.0
.data.rel.ro 76112 76112 0 0.0
.dynamic 560 560 0 0.0
.got 5056 5056 0 0.0
.init 24 24 0 0.0
.init_array 416 416 0 0.0
.rodata 141356 141356 0 0.0
.text 1984848 1984848 0 0.0
tv-app debug (read only) 3198785 3198785 0 0.0
(read/write) 258392 258392 0 0.0
.bss 168152 168152 0 0.0
.data 4144 4144 0 0.0
.data.rel.ro 79520 79520 0 0.0
.dynamic 608 608 0 0.0
.got 4856 4856 0 0.0
.init 27 27 0 0.0
.init_array 1080 1080 0 0.0
.rodata 260616 260616 0 0.0
.text 2747778 2747778 0 0.0
tv-casting-app debug (read only) 5516377 5516377 0 0.0
(read/write) 160888 160888 0 0.0
.bss 52120 52120 0 0.0
.data 1824 1824 0 0.0
.data.rel.ro 100488 100488 0 0.0
.dynamic 608 608 0 0.0
.got 4776 4776 0 0.0
.init 27 27 0 0.0
.init_array 1048 1048 0 0.0
.rodata 346001 346001 0 0.0
.text 4898066 4898066 0 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2455136 2455224 88 0.0
2455136 2455136 0 0.0
.bss 215044 215044 0 0.0
.data 5872 5872 0 0.0
.text 1417780 1417868 88 0.0
1417780 1417780 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1181327 1182027 700 0.1
1181327 1181327 0 0.0
bss 143641 143641 0 0.0
rodata 143584 143740 156 0.1
143584 143584 0 0.0
text 815164 815708 544 0.1
815164 815164 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read/write) 1160507 1161227 720 0.1
1160507 1160523 16 0.0
bss 142868 142868 0 0.0
rodata 135172 135332 160 0.1
135172 135172 0 0.0
text 803552 804100 548 0.1
803552 803556 4 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 841960 841960 0 0.0
(read/write) 1742572 1744108 1536 0.1
1742572 1742788 216 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 188720 188720 0 0.0
.comment 204 204 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2664 2664 0 0.0
.debug_abbrev 1221650 1221909 259 0.0
1221650 1221652 2 0.0
.debug_aranges 111744 111776 32 0.0
111744 111744 0 0.0
.debug_frame 373048 373172 124 0.0
373048 373052 4 0.0
.debug_info 26719024 26739034 20010 0.1
26719024 26720030 1006 0.0
.debug_line 3658002 3662824 4822 0.1
3658002 3658265 263 0.0
.debug_loc 3573942 3581159 7217 0.2
3573942 3574259 317 0.0
.debug_ranges 338400 340544 2144 0.6
338400 338640 240 0.1
.debug_str 3427580 3428604 1024 0.0
3427580 3428140 560 0.0
.heap 841960 841960 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 570615 571087 472 0.1
570615 570747 132 0.0
.symtab 421488 421776 288 0.1
421488 421584 96 0.0
.text 1542800 1544336 1536 0.1
1542800 1543016 216 0.0
.zero.table 8 8 0 0.0
text 0 0 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 842696 842696 0 0.0
(read/write) 1685772 1687316 1544 0.1
1685772 1685996 224 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 187984 187984 0 0.0
.comment 204 204 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2664 2664 0 0.0
.debug_abbrev 1213489 1213748 259 0.0
1213489 1213491 2 0.0
.debug_aranges 111216 111248 32 0.0
111216 111216 0 0.0
.debug_frame 376128 376252 124 0.0
376128 376132 4 0.0
.debug_info 26455647 26475658 20011 0.1
26455647 26456654 1007 0.0
.debug_line 3678518 3683364 4846 0.1
3678518 3678781 263 0.0
.debug_loc 3561579 3568796 7217 0.2
3561579 3561896 317 0.0
.debug_ranges 337016 339160 2144 0.6
337016 337256 240 0.1
.debug_str 3416585 3417609 1024 0.0
3416585 3417145 560 0.0
.heap 842696 842696 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 535089 535561 472 0.1
535089 535221 132 0.0
.symtab 408080 408368 288 0.1
408080 408176 96 0.0
.text 1486736 1488280 1544 0.1
1486736 1486960 224 0.0
.zero.table 8 8 0 0.0
0 0 0 0.0
text 0 0 0 0.0
light cy8ckit_062s2_43012 (read only) 850928 850928 0 0.0
(read/write) 1603028 1604548 1520 0.1
1603028 1603236 208 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 179960 179960 0 0.0
.comment 204 204 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2456 2456 0 0.0
.debug_abbrev 1048308 1048567 259 0.0
1048308 1048310 2 0.0
.debug_aranges 103392 103424 32 0.0
103392 103392 0 0.0
.debug_frame 346396 346520 124 0.0
346396 346400 4 0.0
.debug_info 21917818 21937828 20010 0.1
21917818 21918823 1005 0.0
.debug_line 3248983 3253793 4810 0.1
3248983 3249246 263 0.0
.debug_loc 3259921 3267090 7169 0.2
3259921 3260190 269 0.0
.debug_ranges 302488 304632 2144 0.7
302488 302728 240 0.1
.debug_str 3221851 3222875 1024 0.0
3221851 3222411 560 0.0
.heap 850928 850928 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 468388 468860 472 0.1
468388 468520 132 0.0
.symtab 375168 375456 288 0.1
375168 375264 96 0.0
.text 1412224 1413744 1520 0.1
1412224 1412432 208 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
lock cy8ckit_062s2_43012 (read only) 845896 845896 0 0.0
(read/write) 1640716 1642236 1520 0.1
1640716 1640924 208 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 184976 184976 0 0.0
.comment 204 204 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2472 2472 0 0.0
.debug_abbrev 1055743 1056002 259 0.0
1055743 1055745 2 0.0
.debug_aranges 104064 104096 32 0.0
104064 104064 0 0.0
.debug_frame 349224 349348 124 0.0
349224 349228 4 0.0
.debug_info 22297601 22317612 20011 0.1
22297601 22298608 1007 0.0
.debug_line 3257804 3262602 4798 0.1
3257804 3258067 263 0.0
.debug_loc 3299773 3306957 7184 0.2
3299773 3300042 269 0.0
.debug_ranges 305832 307976 2144 0.7
305832 306072 240 0.1
.debug_str 3249272 3250296 1024 0.0
3249272 3249832 560 0.0
.heap 845896 845896 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 474591 475063 472 0.1
474591 474723 132 0.0
.symtab 378352 378640 288 0.1
378352 378448 96 0.0
.text 1444880 1446400 1520 0.1
1444880 1445088 208 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1129284 1130012 728 0.1
1129284 1129316 32 0.0
.bss 106112 106112 0 0.0
.data 1028 1028 0 0.0
.text 576380 577108 728 0.1
576380 576412 32 0.0
lock-app qpg6105+debug (read/write) 1100264 1101008 744 0.1
1100264 1100296 32 0.0
.bss 102344 102344 0 0.0
.data 1032 1032 0 0.0
.text 547364 548108 744 0.1
547364 547396 32 0.0
telink light-switch-app tlsr9518adk80d (read/write) 812168 812960 792 0.1
812168 812168 0 0.0
bss 71372 71372 0 0.0
noinit 43488 43488 0 0.0
text 573712 574346 634 0.1
573712 573710 -2 -0.0
lighting-app tlsr9518adk80d (read/write) 834072 834872 800 0.1
834072 834072 0 0.0
bss 72228 72228 0 0.0
noinit 43488 43488 0 0.0
text 591838 592478 640 0.1
591838 591838 0 0.0
ota-requestor-app tlsr9518adk80d (read/write) 842324 843116 792 0.1
842324 842316 -8 -0.0
bss 73136 73136 0 0.0
noinit 43488 43488 0 0.0
text 598106 598740 634 0.1
598106 598102 -4 -0.0

@bzbarsky-apple bzbarsky-apple merged commit 27f9fb4 into project-chip:master Sep 9, 2022
@bzbarsky-apple bzbarsky-apple deleted the fix-esp32-platform-manager-shutdown branch September 9, 2022 00:54
isiu-apple pushed a commit to isiu-apple/connectedhomeip that referenced this pull request Sep 16, 2022
* Fix ESP32 platform manager shutdown.

The QEMU ESP32 tests start and stop the platform manager several times, and the
lack of a shutdown implementation was putting things in a bad state.

Also adjusts the test runner script to trigger a test failure when we do end up
in that bad state: we were passing even though we crashed quite early in the
test run and most of the tests did not run.

* Address review comments.

* Fix unlocking in FreeRTOS _RunEventLoop.

Ensure we always start with an empty event queue after FreeRTOS _InitChipStack.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants