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

SystemLayerImplSelect: libev: avoid timers firing early (#28434) #28740

Merged

Conversation

plan44
Copy link
Contributor

@plan44 plan44 commented Aug 17, 2023

Fixes #28434

This fixes a ReportEngine problem that was caused by libev-based timers firing slightly (in the range of 20mS) too early, because libev by default uses the time when events started processing as the "now" reference for relative timers for efficiency reasons.

To ensure timers cannot fire early, timer setup must compensate for any difference between ev_now() which is the time events started processing and ev_time(), which is the actual current time (but is a bit less efficient to obtain).

The PR also avoids and warns about useless (but harmless) calls to Signal() in libev case.

@github-actions
Copy link

github-actions bot commented Aug 17, 2023

PR #28740: Size comparison from a40963d to 5182250

Increases (11 builds for bl602, bl702, psoc6, telink)
platform target config section a40963d 5182250 change % change
bl602 lighting-app bl602 .text 1057908 1057912 4 0.0
bl702 lighting-app bl702 (read/write) 1167991 1167995 4 0.0
.debug_info 41524216 41524217 1 0.0
.text 955060 955062 2 0.0
bl702+rpc .debug_info 46419658 46419659 1 0.0
.text 1029742 1029744 2 0.0
psoc6 light cy8ckit_062s2_43012 .debug_info 22387455 22387457 2 0.0
telink bridge-app tlsr9518adk80d text 647450 647452 2 0.0
lighting-app tlsr9518adk80d (read/write) 983032 983040 8 0.0
text 686252 686254 2 0.0
pump-app tlsr9518adk80d text 596444 596446 2 0.0
pump-controller-app tlsr9518adk80d text 586906 586908 2 0.0
shell tlsr9518adk80d text 478830 478834 4 0.0
smoke_co_alarm-app tlsr9518adk80d (read/write) 879300 879308 8 0.0
text 594316 594318 2 0.0
temperature-measurement-app tlsr9518adk80d (read/write) 865444 865452 8 0.0
text 582552 582556 4 0.0
Decreases (12 builds for bl702l, efr32, esp32, k32w, nrfconnect, psoc6, telink)
platform target config section a40963d 5182250 change % change
bl702l lighting-app bl702l .debug_info 41525325 41525324 -1 -0.0
.text 943812 943810 -2 -0.0
efr32 lighting-app BRD4187C (read/write) 1036996 1036988 -8 -0.0
.text 869940 869932 -8 -0.0
esp32 all-clusters-app c3devkit (read only) 1151598 1151596 -2 -0.0
.flash.text 1151598 1151596 -2 -0.0
k32w contact k32w0+release (read only) 591044 591028 -16 -0.0
.text 590508 590492 -16 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1220736 1220720 -16 -0.0
text 845252 845248 -4 -0.0
psoc6 all-clusters cy8ckit_062s2_43012 .debug_info 30284104 30284102 -2 -0.0
lock cy8ckit_062s2_43012 .debug_info 22302332 22302331 -1 -0.0
telink all-clusters-minimal-app tlsr9518adk80d text 672528 672526 -2 -0.0
light-switch-app tlsr9518adk80d text 618572 618568 -4 -0.0
lock-app tlsr9518adk80d (read/write) 934692 934684 -8 -0.0
text 621902 621900 -2 -0.0
ota-requestor-app tlsr9518adk80d text 612684 612682 -2 -0.0
window-covering tlsr9518adk80d text 617242 617238 -4 -0.0
Full report (60 builds for bl602, bl702, bl702l, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
platform target config section a40963d 5182250 change % change
bl602 lighting-app bl602 (read/write) 1364962 1364962 0 0.0
.bss 73430 73430 0 0.0
.data 9560 9560 0 0.0
.text 1057908 1057912 4 0.0
bl602+rpc (read/write) 1412430 1412430 0 0.0
.bss 81470 81470 0 0.0
.data 9952 9952 0 0.0
.text 1089842 1089842 0 0.0
bl702 lighting-app bl702 (read only) 3358 3358 0 0.0
(read/write) 1167991 1167995 4 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 328 328 0 0.0
.bss 41285 41285 0 0.0
.bss_psram 43232 43232 0 0.0
.comment 48 48 0 0.0
.data 3544 3544 0 0.0
.debug_abbrev 1567499 1567499 0 0.0
.debug_aranges 140392 140392 0 0.0
.debug_frame 516608 516608 0 0.0
.debug_info 41524216 41524217 1 0.0
.debug_line 5485483 5485483 0 0.0
.debug_loc 3566604 3566604 0 0.0
.debug_ranges 384688 384688 0 0.0
.debug_str 4014668 4014668 0 0.0
.hbn 544 544 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 144 144 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 107196 107196 0 0.0
.rsvd 4 4 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 304 304 0 0.0
.stack 2048 2048 0 0.0
.strtab 589615 589615 0 0.0
.symtab 175792 175792 0 0.0
.tcm_data 28 28 0 0.0
.tcmcode 3358 3358 0 0.0
.text 0 0 0 0.0
955060 955062 2 0.0
bl702+rpc (read only) 3358 3358 0 0.0
(read/write) 1266927 1266927 0 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 328 328 0 0.0
.bss 49749 49749 0 0.0
.bss_psram 43232 43232 0 0.0
.comment 48 48 0 0.0
.data 4104 4104 0 0.0
.debug_abbrev 1744629 1744629 0 0.0
.debug_aranges 148936 148936 0 0.0
.debug_frame 545512 545512 0 0.0
.debug_info 46419658 46419659 1 0.0
.debug_line 5898005 5898005 0 0.0
.debug_loc 3772760 3772760 0 0.0
.debug_ranges 410440 410440 0 0.0
.debug_str 4434533 4434533 0 0.0
.hbn 544 544 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 160 160 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 121848 121848 0 0.0
.rsvd 4 4 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 304 304 0 0.0
.stack 2048 2048 0 0.0
.strtab 652578 652578 0 0.0
.symtab 194720 194720 0 0.0
.tcm_data 28 28 0 0.0
.tcmcode 3358 3358 0 0.0
.text 0 0 0 0.0
1029742 1029744 2 0.0
bl702l lighting-app bl702l (read only) 278 278 0 0.0
(read/write) 1153600 1153600 0 0.0
.boot2 292 292 0 0.0
.bss 15988 15988 0 0.0
.bss_psram 77648 77648 0 0.0
.comment 48 48 0 0.0
.data 4528 4528 0 0.0
.debug_abbrev 1569718 1569718 0 0.0
.debug_aranges 134896 134896 0 0.0
.debug_frame 496296 496296 0 0.0
.debug_info 41525325 41525324 -1 -0.0
.debug_line 5401177 5401177 0 0.0
.debug_loc 3502755 3502755 0 0.0
.debug_ranges 389896 389896 0 0.0
.debug_str 4027137 4027137 0 0.0
.hbn 3244 3244 0 0.0
.hbn_noinit 308 308 0 0.0
.init 408 408 0 0.0
.init_array 144 144 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 101080 101080 0 0.0
.romdata 3224 3224 0 0.0
.rsvd 4 4 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 286 286 0 0.0
.stack 2048 2048 0 0.0
.strtab 589830 589830 0 0.0
.symtab 175344 175344 0 0.0
.tcm_data 692 692 0 0.0
.tcmcode 278 278 0 0.0
.text 0 0 0 0.0
943812 943810 -2 -0.0
cc32xx lock CC3235SF_LAUNCHXL (blank) 0 0 0 0.0
(read only) 616586 616586 0 0.0
(read/write) 207240 207240 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 200680 200680 0 0.0
.comment 206 206 0 0.0
.data 1440 1440 0 0.0
.debug_abbrev 962108 962108 0 0.0
.debug_aranges 109072 109072 0 0.0
.debug_frame 369896 369896 0 0.0
.debug_info 19439145 19439145 0 0.0
.debug_line 2814647 2814647 0 0.0
.debug_line_str 513 513 0 0.0
.debug_loc 33340 33340 0 0.0
.debug_loclists 1598058 1598058 0 0.0
.debug_ranges 4984 4984 0 0.0
.debug_rnglists 100615 100615 0 0.0
.debug_str 3429756 3429756 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 106602 106602 0 0.0
.shstrtab 265 265 0 0.0
.stack 2048 2048 0 0.0
.strtab 497700 497700 0 0.0
.symtab 293792 293792 0 0.0
.text 507860 507860 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 550567 550567 0 0.0
.app_xip_area 442017 442017 0 0.0
.bss 63568 63568 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) 538007 538007 0 0.0
.app_xip_area 424401 424401 0 0.0
.bss 68600 68600 0 0.0
.data 692 692 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor cyw930739m2evb_01 (read/write) 574279 574279 0 0.0
.app_xip_area 466809 466809 0 0.0
.bss 62560 62560 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) 549279 549279 0 0.0
.app_xip_area 438801 438801 0 0.0
.bss 65472 65472 0 0.0
.data 688 688 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A+rs9116 (read/write) 1012772 1012772 0 0.0
.bss 184204 184204 0 0.0
.data 2652 2652 0 0.0
.text 825896 825896 0 0.0
BRD4187C (read/write) 1036996 1036988 -8 -0.0
.bss 163788 163788 0 0.0
.data 3248 3248 0 0.0
.text 869940 869932 -8 -0.0
lock-app BRD4161A+wf200 (read/write) 1089784 1089784 0 0.0
.bss 178268 178268 0 0.0
.data 2672 2672 0 0.0
.text 908824 908824 0 0.0
window-app BRD4187C (read/write) 1108808 1108808 0 0.0
.bss 146828 146828 0 0.0
.data 3132 3132 0 0.0
.text 958828 958828 0 0.0
esp32 all-clusters-app c3devkit (read only) 1151598 1151596 -2 -0.0
(read/write) 1702676 1702676 0 0.0
.dram0.bss 78960 78960 0 0.0
.dram0.data 13084 13084 0 0.0
.flash.rodata 266896 266896 0 0.0
.flash.text 1151598 1151596 -2 -0.0
.iram0.text 75262 75262 0 0.0
m5stack (read only) 1193275 1193275 0 0.0
(read/write) 550878 550878 0 0.0
.dram0.bss 85328 85328 0 0.0
.dram0.data 34036 34036 0 0.0
.flash.rodata 297872 297872 0 0.0
.flash.text 1187891 1187891 0 0.0
.iram0.text 123311 123311 0 0.0
k32w contact k32w0+release (read only) 591044 591028 -16 -0.0
(read/write) 87936 87936 0 0.0
.bss 71184 71184 0 0.0
.data 2128 2128 0 0.0
.text 590508 590492 -16 -0.0
light k32w0+release (read only) 589828 589828 0 0.0
(read/write) 87588 87588 0 0.0
.bss 70848 70848 0 0.0
.data 2116 2116 0 0.0
.text 589292 589292 0 0.0
lock k32w0+release (read only) 562180 562180 0 0.0
(read/write) 85388 85388 0 0.0
.bss 68704 68704 0 0.0
.data 2060 2060 0 0.0
.text 561644 561644 0 0.0
linux all-clusters-app debug (read only) 5519553 5519553 0 0.0
(read/write) 416856 416856 0 0.0
.bss 128704 128704 0 0.0
.data 4016 4016 0 0.0
.data.rel.ro 276808 276808 0 0.0
.dynamic 624 624 0 0.0
.got 5384 5384 0 0.0
.init 27 27 0 0.0
.init_array 1296 1296 0 0.0
.rodata 336208 336208 0 0.0
.text 4805187 4805187 0 0.0
all-clusters-minimal-app debug (read only) 4914209 4914209 0 0.0
(read/write) 231936 231936 0 0.0
.bss 126048 126048 0 0.0
.data 3856 3856 0 0.0
.data.rel.ro 94896 94896 0 0.0
.dynamic 624 624 0 0.0
.got 5344 5344 0 0.0
.init 27 27 0 0.0
.init_array 1144 1144 0 0.0
.rodata 272486 272486 0 0.0
.text 4411331 4411331 0 0.0
bridge-app debug (read only) 2770849 2770849 0 0.0
(read/write) 132848 132848 0 0.0
.bss 51512 51512 0 0.0
.data 3824 3824 0 0.0
.data.rel.ro 71408 71408 0 0.0
.dynamic 624 624 0 0.0
.got 4640 4640 0 0.0
.init 27 27 0 0.0
.init_array 816 816 0 0.0
.rodata 214600 214600 0 0.0
.text 2378723 2378723 0 0.0
chip-tool debug (read only) 17564185 17564185 0 0.0
(read/write) 1036192 1036192 0 0.0
.bss 93752 93752 0 0.0
.data 5090 5090 0 0.0
.data.rel.ro 929992 929992 0 0.0
.dynamic 624 624 0 0.0
.got 5880 5880 0 0.0
.init 27 27 0 0.0
.init_array 800 800 0 0.0
.rodata 907441 907441 0 0.0
.text 14647219 14647219 0 0.0
chip-tool-ipv6only arm64 (read only) 16786756 16786756 0 0.0
(read/write) 1103512 1103512 0 0.0
.bss 103064 103064 0 0.0
.data 4392 4392 0 0.0
.data.rel.ro 967368 967368 0 0.0
.dynamic 512 512 0 0.0
.got 23192 23192 0 0.0
.init 24 24 0 0.0
.init_array 248 248 0 0.0
.rodata 819856 819856 0 0.0
.text 13773096 13773096 0 0.0
lighting-app debug+rpc+ui (read only) 5242513 5242513 0 0.0
(read/write) 222088 222088 0 0.0
.bss 117744 117744 0 0.0
.data 4528 4528 0 0.0
.data.rel.ro 92248 92248 0 0.0
.dynamic 672 672 0 0.0
.got 5928 5928 0 0.0
.init 27 27 0 0.0
.init_array 944 944 0 0.0
.rodata 337108 337108 0 0.0
.text 4663331 4663331 0 0.0
lock-app debug (read only) 4475817 4475817 0 0.0
(read/write) 202936 202936 0 0.0
.bss 113360 113360 0 0.0
.data 3728 3728 0 0.0
.data.rel.ro 79048 79048 0 0.0
.dynamic 624 624 0 0.0
.got 5264 5264 0 0.0
.init 27 27 0 0.0
.init_array 864 864 0 0.0
.rodata 248102 248102 0 0.0
.text 4018339 4018339 0 0.0
ota-provider-app debug (read only) 4128585 4128585 0 0.0
(read/write) 191872 191872 0 0.0
.bss 113504 113504 0 0.0
.data 4000 4000 0 0.0
.data.rel.ro 68448 68448 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 201190 201190 0 0.0
.text 3737075 3737075 0 0.0
ota-requestor-app debug (read only) 4222481 4222481 0 0.0
(read/write) 196184 196184 0 0.0
.bss 114560 114560 0 0.0
.data 4240 4240 0 0.0
.data.rel.ro 71448 71448 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 204582 204582 0 0.0
.text 3823251 3823251 0 0.0
shell debug (read only) 2939929 2939929 0 0.0
(read/write) 151040 151040 0 0.0
.bss 60008 60008 0 0.0
.data 784 784 0 0.0
.data.rel.ro 84376 84376 0 0.0
.dynamic 592 592 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 1136 1136 0 0.0
.rodata 212562 212562 0 0.0
.text 2556258 2556258 0 0.0
thermostat-no-ble arm64 (read only) 4452052 4452052 0 0.0
(read/write) 243848 243848 0 0.0
.bss 122280 122280 0 0.0
.data 2880 2880 0 0.0
.data.rel.ro 102232 102232 0 0.0
.dynamic 512 512 0 0.0
.got 11984 11984 0 0.0
.init 24 24 0 0.0
.init_array 440 440 0 0.0
.rodata 162236 162236 0 0.0
.text 3951736 3951736 0 0.0
tv-app debug (read only) 5317617 5317617 0 0.0
(read/write) 349856 349856 0 0.0
.bss 241280 241280 0 0.0
.data 5104 5104 0 0.0
.data.rel.ro 96048 96048 0 0.0
.dynamic 624 624 0 0.0
.got 5616 5616 0 0.0
.init 27 27 0 0.0
.init_array 1144 1144 0 0.0
.rodata 272534 272534 0 0.0
.text 4801443 4801443 0 0.0
tv-casting-app debug (read only) 8297113 8297113 0 0.0
(read/write) 210576 210576 0 0.0
.bss 54208 54208 0 0.0
.data 2544 2544 0 0.0
.data.rel.ro 147016 147016 0 0.0
.dynamic 624 624 0 0.0
.got 5096 5096 0 0.0
.init 27 27 0 0.0
.init_array 1064 1064 0 0.0
.rodata 367772 367772 0 0.0
.text 7529155 7529155 0 0.0
mbed lock-app-release cy8cproto_062_4343w (read only) 6224 6224 0 0.0
(read/write) 2522984 2522984 0 0.0
.bss 219408 219408 0 0.0
.data 5128 5128 0 0.0
.text 1485668 1485668 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1220736 1220720 -16 -0.0
bss 154482 154482 0 0.0
rodata 142036 142036 0 0.0
text 845252 845248 -4 -0.0
nrf7002dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 1338948 1338948 0 0.0
bss 139940 139940 0 0.0
rodata 136028 136028 0 0.0
text 772288 772288 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1159924 1159924 0 0.0
bss 154680 154680 0 0.0
rodata 113728 113728 0 0.0
text 812552 812552 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 838176 838176 0 0.0
(read/write) 1768748 1768748 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 192628 192628 0 0.0
.comment 212 212 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 2536 2536 0 0.0
.debug_abbrev 1382576 1382576 0 0.0
.debug_aranges 144024 144024 0 0.0
.debug_frame 479764 479764 0 0.0
.debug_info 30284104 30284102 -2 -0.0
.debug_line 4151623 4151623 0 0.0
.debug_line_str 957 957 0 0.0
.debug_loclists 2251820 2251820 0 0.0
.debug_rnglists 142446 142446 0 0.0
.debug_str 4128757 4128757 0 0.0
.heap 838176 838176 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 296 296 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 806287 806287 0 0.0
.symtab 501840 501840 0 0.0
.text 1565196 1565196 0 0.0
.zero.table 8 8 0 0.0
text 0 0 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 840112 840112 0 0.0
(read/write) 1677556 1677556 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 190764 190764 0 0.0
.comment 212 212 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 2464 2464 0 0.0
.debug_abbrev 1285212 1285212 0 0.0
.debug_aranges 137240 137240 0 0.0
.debug_frame 462528 462528 0 0.0
.debug_info 27249667 27249667 0 0.0
.debug_line 3962287 3962287 0 0.0
.debug_line_str 981 981 0 0.0
.debug_loclists 2150645 2150645 0 0.0
.debug_rnglists 135581 135581 0 0.0
.debug_str 3982948 3982948 0 0.0
.heap 840112 840112 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 296 296 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 717396 717396 0 0.0
.symtab 467296 467296 0 0.0
.text 1475940 1475940 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
light cy8ckit_062s2_43012 (read only) 846424 846424 0 0.0
(read/write) 1605644 1605644 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 184564 184564 0 0.0
.comment 212 212 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 2352 2352 0 0.0
.debug_abbrev 1125436 1125436 0 0.0
.debug_aranges 127336 127336 0 0.0
.debug_frame 425572 425572 0 0.0
.debug_info 22387455 22387457 2 0.0
.debug_line 3527128 3527128 0 0.0
.debug_line_str 942 942 0 0.0
.debug_loclists 1987102 1987102 0 0.0
.debug_rnglists 125268 125268 0 0.0
.debug_str 3789885 3789885 0 0.0
.heap 846424 846424 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 296 296 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 634730 634730 0 0.0
.symtab 430608 430608 0 0.0
.text 1410340 1410340 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
lock cy8ckit_062s2_43012 (read only) 818896 818896 0 0.0
(read/write) 1639684 1639684 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 212076 212076 0 0.0
.comment 212 212 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 2368 2368 0 0.0
.debug_abbrev 1116899 1116899 0 0.0
.debug_aranges 126264 126264 0 0.0
.debug_frame 421636 421636 0 0.0
.debug_info 22302332 22302331 -1 -0.0
.debug_line 3482694 3482694 0 0.0
.debug_line_str 933 933 0 0.0
.debug_loclists 1967668 1967668 0 0.0
.debug_rnglists 123469 123469 0 0.0
.debug_str 3754695 3754695 0 0.0
.heap 818896 818896 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 296 296 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 609601 609601 0 0.0
.symtab 423056 423056 0 0.0
.text 1416852 1416852 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1178460 1178460 0 0.0
.bss 101016 101016 0 0.0
.data 744 744 0 0.0
.text 625304 625304 0 0.0
lock-app qpg6105+debug (read/write) 1135524 1135524 0 0.0
.bss 95736 95736 0 0.0
.data 748 748 0 0.0
.text 582364 582364 0 0.0
telink all-clusters-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1072684 1072684 0 0.0
bss 107176 107176 0 0.0
text 730922 730922 0 0.0
all-clusters-minimal-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 980404 980404 0 0.0
bss 105168 105168 0 0.0
text 672528 672526 -2 -0.0
bridge-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 944736 944736 0 0.0
bss 109500 109500 0 0.0
text 647450 647452 2 0.0
contact-sensor-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 876692 876692 0 0.0
bss 98680 98680 0 0.0
text 590840 590840 0 0.0
light-switch-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 907996 907996 0 0.0
bss 99304 99304 0 0.0
text 618572 618568 -4 -0.0
lighting-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 983032 983040 8 0.0
bss 107356 107356 0 0.0
text 686252 686254 2 0.0
lighting-app-factory-data tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 994396 994396 0 0.0
bss 111604 111604 0 0.0
text 693766 693766 0 0.0
lighting-app-rpc tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1052564 1052564 0 0.0
bss 108928 108928 0 0.0
text 731184 731184 0 0.0
lighting-app-shell tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1084108 1084108 0 0.0
bss 120004 120004 0 0.0
text 751458 751458 0 0.0
lock-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 934692 934684 -8 -0.0
bss 99408 99408 0 0.0
text 621902 621900 -2 -0.0
ota-requestor-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 899272 899272 0 0.0
bss 99988 99988 0 0.0
text 612684 612682 -2 -0.0
pump-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 882092 882092 0 0.0
bss 98812 98812 0 0.0
text 596444 596446 2 0.0
pump-controller-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 869272 869272 0 0.0
bss 98612 98612 0 0.0
text 586906 586908 2 0.0
shell tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 744420 744420 0 0.0
bss 97208 97208 0 0.0
text 478830 478834 4 0.0
smoke_co_alarm-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 879300 879308 8 0.0
bss 98800 98800 0 0.0
text 594316 594318 2 0.0
temperature-measurement-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 865444 865452 8 0.0
bss 98520 98520 0 0.0
text 582552 582556 4 0.0
thermostat tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 911324 911324 0 0.0
bss 99064 99064 0 0.0
text 621928 621928 0 0.0
window-covering tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 907132 907132 0 0.0
bss 99400 99400 0 0.0
text 617242 617238 -4 -0.0

@plan44 plan44 force-pushed the PR/fix-timers-in-libev-mainloop-case branch from 5182250 to 2ccd2c3 Compare August 22, 2023 09:40
@github-actions
Copy link

github-actions bot commented Aug 22, 2023

PR #28740: Size comparison from cbc3865 to 2ccd2c3

Increases (11 builds for bl602, bl702, cyw30739, esp32, nrfconnect, telink)
platform target config section cbc3865 2ccd2c3d change % change
bl602 lighting-app bl602+rpc .text 1089844 1089846 2 0.0
bl702 lighting-app bl702 .debug_info 41529037 41529038 1 0.0
.text 955426 955428 2 0.0
cyw30739 lock cyw930739m2evb_01 (read/write) 537871 537879 8 0.0
.app_xip_area 424225 424233 8 0.0
esp32 all-clusters-app c3devkit (read only) 1166480 1166482 2 0.0
.flash.text 1166480 1166482 2 0.0
nrfconnect all-clusters-app nrf7002dk_nrf5340_cpuapp text 784724 784728 4 0.0
telink all-clusters-app tlsr9518adk80d text 745374 745376 2 0.0
light-switch-app tlsr9518adk80d text 632486 632490 4 0.0
lighting-app-rpc tlsr9518adk80d text 731190 731192 2 0.0
lock-app tlsr9518adk80d (read/write) 934692 934700 8 0.0
text 621908 621912 4 0.0
thermostat tlsr9518adk80d (read/write) 890712 890720 8 0.0
text 602624 602628 4 0.0
window-covering tlsr9518adk80d text 597920 597922 2 0.0
Decreases (14 builds for bl602, bl702l, nrfconnect, psoc6, telink)
platform target config section cbc3865 2ccd2c3d change % change
bl602 lighting-app bl602 .text 1057912 1057910 -2 -0.0
bl702l lighting-app bl702l (read/write) 1153956 1153952 -4 -0.0
.debug_info 41530146 41530145 -1 -0.0
.text 944182 944180 -2 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 text 857828 857824 -4 -0.0
psoc6 all-clusters cy8ckit_062s2_43012 .debug_info 32927390 32927388 -2 -0.0
all-clusters-minimal cy8ckit_062s2_43012 .debug_info 29051950 29051948 -2 -0.0
telink bridge-app tlsr9518adk80d (read/write) 944744 944736 -8 -0.0
text 647458 647456 -2 -0.0
contact-sensor-app tlsr9518adk80d (read/write) 876708 876700 -8 -0.0
text 590850 590846 -4 -0.0
lighting-app tlsr9518adk80d (read/write) 983048 983040 -8 -0.0
text 686262 686258 -4 -0.0
ota-requestor-app tlsr9518adk80d text 612692 612688 -4 -0.0
pump-app tlsr9518adk80d text 596454 596450 -4 -0.0
pump-controller-app tlsr9518adk80d text 586918 586916 -2 -0.0
shell tlsr9518adk80d text 478834 478832 -2 -0.0
smoke_co_alarm-app tlsr9518adk80d (read/write) 880208 880200 -8 -0.0
text 595214 595210 -4 -0.0
temperature-measurement-app tlsr9518adk80d (read/write) 865460 865452 -8 -0.0
text 582564 582560 -4 -0.0
Full report (60 builds for bl602, bl702, bl702l, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
platform target config section cbc3865 2ccd2c3d change % change
bl602 lighting-app bl602 (read/write) 1364962 1364962 0 0.0
.bss 73430 73430 0 0.0
.data 9560 9560 0 0.0
.text 1057912 1057910 -2 -0.0
bl602+rpc (read/write) 1412430 1412430 0 0.0
.bss 81470 81470 0 0.0
.data 9952 9952 0 0.0
.text 1089844 1089846 2 0.0
bl702 lighting-app bl702 (read only) 3358 3358 0 0.0
(read/write) 1168343 1168343 0 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 328 328 0 0.0
.bss 41269 41269 0 0.0
.bss_psram 43232 43232 0 0.0
.comment 48 48 0 0.0
.data 3544 3544 0 0.0
.debug_abbrev 1565077 1565077 0 0.0
.debug_aranges 140416 140416 0 0.0
.debug_frame 516744 516744 0 0.0
.debug_info 41529037 41529038 1 0.0
.debug_line 5486801 5486801 0 0.0
.debug_loc 3567667 3567667 0 0.0
.debug_ranges 384936 384936 0 0.0
.debug_str 4014157 4014157 0 0.0
.hbn 544 544 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 144 144 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 107196 107196 0 0.0
.rsvd 4 4 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 304 304 0 0.0
.stack 2048 2048 0 0.0
.strtab 589684 589684 0 0.0
.symtab 175824 175824 0 0.0
.tcm_data 28 28 0 0.0
.tcmcode 3358 3358 0 0.0
.text 0 0 0 0.0
955426 955428 2 0.0
bl702+rpc (read only) 3358 3358 0 0.0
(read/write) 1267267 1267267 0 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 328 328 0 0.0
.bss 49733 49733 0 0.0
.bss_psram 43232 43232 0 0.0
.comment 48 48 0 0.0
.data 4104 4104 0 0.0
.debug_abbrev 1741815 1741815 0 0.0
.debug_aranges 148960 148960 0 0.0
.debug_frame 545648 545648 0 0.0
.debug_info 46425453 46425453 0 0.0
.debug_line 5899327 5899327 0 0.0
.debug_loc 3773812 3773812 0 0.0
.debug_ranges 410688 410688 0 0.0
.debug_str 4434076 4434076 0 0.0
.hbn 544 544 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 160 160 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 121848 121848 0 0.0
.rsvd 4 4 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 304 304 0 0.0
.stack 2048 2048 0 0.0
.strtab 652647 652647 0 0.0
.symtab 194752 194752 0 0.0
.tcm_data 28 28 0 0.0
.tcmcode 3358 3358 0 0.0
.text 0 0 0 0.0
1030100 1030100 0 0.0
bl702l lighting-app bl702l (read only) 278 278 0 0.0
(read/write) 1153956 1153952 -4 -0.0
.boot2 292 292 0 0.0
.bss 15988 15988 0 0.0
.bss_psram 77632 77632 0 0.0
.comment 48 48 0 0.0
.data 4528 4528 0 0.0
.debug_abbrev 1567296 1567296 0 0.0
.debug_aranges 134920 134920 0 0.0
.debug_frame 496432 496432 0 0.0
.debug_info 41530146 41530145 -1 -0.0
.debug_line 5402495 5402495 0 0.0
.debug_loc 3503778 3503778 0 0.0
.debug_ranges 390144 390144 0 0.0
.debug_str 4026633 4026633 0 0.0
.hbn 3244 3244 0 0.0
.hbn_noinit 308 308 0 0.0
.init 408 408 0 0.0
.init_array 144 144 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 101080 101080 0 0.0
.romdata 3224 3224 0 0.0
.rsvd 4 4 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 286 286 0 0.0
.stack 2048 2048 0 0.0
.strtab 589899 589899 0 0.0
.symtab 175376 175376 0 0.0
.tcm_data 692 692 0 0.0
.tcmcode 278 278 0 0.0
.text 0 0 0 0.0
944182 944180 -2 -0.0
cc32xx lock CC3235SF_LAUNCHXL (blank) 0 0 0 0.0
(read only) 617050 617050 0 0.0
(read/write) 207240 207240 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 200680 200680 0 0.0
.comment 206 206 0 0.0
.data 1440 1440 0 0.0
.debug_abbrev 966209 966209 0 0.0
.debug_aranges 109176 109176 0 0.0
.debug_frame 370332 370332 0 0.0
.debug_info 21098923 21098923 0 0.0
.debug_line 2820767 2820767 0 0.0
.debug_line_str 513 513 0 0.0
.debug_loc 33340 33340 0 0.0
.debug_loclists 1600421 1600421 0 0.0
.debug_ranges 4984 4984 0 0.0
.debug_rnglists 100774 100774 0 0.0
.debug_str 3429144 3429144 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 106602 106602 0 0.0
.shstrtab 265 265 0 0.0
.stack 2048 2048 0 0.0
.strtab 498188 498188 0 0.0
.symtab 294032 294032 0 0.0
.text 508324 508324 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 550447 550447 0 0.0
.app_xip_area 441857 441857 0 0.0
.bss 63560 63560 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) 537871 537879 8 0.0
.app_xip_area 424225 424233 8 0.0
.bss 68592 68592 0 0.0
.data 692 692 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor cyw930739m2evb_01 (read/write) 574151 574151 0 0.0
.app_xip_area 466641 466641 0 0.0
.bss 62552 62552 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) 557815 557815 0 0.0
.app_xip_area 447089 447089 0 0.0
.bss 65672 65672 0 0.0
.data 688 688 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A+rs9116 (read/write) 1024960 1024960 0 0.0
.bss 192896 192896 0 0.0
.data 2652 2652 0 0.0
.text 829392 829392 0 0.0
BRD4187C (read/write) 1065600 1065600 0 0.0
.bss 173588 173588 0 0.0
.data 3240 3240 0 0.0
.text 888752 888752 0 0.0
lock-app BRD4161A+wf200 (read/write) 1102036 1102036 0 0.0
.bss 186960 186960 0 0.0
.data 2672 2672 0 0.0
.text 912384 912384 0 0.0
window-app BRD4187C (read/write) 1115360 1115360 0 0.0
.bss 156460 156460 0 0.0
.data 3120 3120 0 0.0
.text 955760 955760 0 0.0
esp32 all-clusters-app c3devkit (read only) 1166480 1166482 2 0.0
(read/write) 1704084 1704084 0 0.0
.dram0.bss 79192 79192 0 0.0
.dram0.data 13084 13084 0 0.0
.flash.rodata 267864 267864 0 0.0
.flash.text 1166480 1166482 2 0.0
.iram0.text 75262 75262 0 0.0
m5stack (read only) 1207559 1207559 0 0.0
(read/write) 552054 552054 0 0.0
.dram0.bss 85568 85568 0 0.0
.dram0.data 34036 34036 0 0.0
.flash.rodata 298808 298808 0 0.0
.flash.text 1202175 1202175 0 0.0
.iram0.text 123311 123311 0 0.0
k32w contact k32w0+release (read only) 590964 590964 0 0.0
(read/write) 87928 87928 0 0.0
.bss 71176 71176 0 0.0
.data 2128 2128 0 0.0
.text 590428 590428 0 0.0
light k32w0+release (read only) 589764 589764 0 0.0
(read/write) 87580 87580 0 0.0
.bss 70840 70840 0 0.0
.data 2116 2116 0 0.0
.text 589228 589228 0 0.0
lock k32w0+release (read only) 562100 562100 0 0.0
(read/write) 85380 85380 0 0.0
.bss 68696 68696 0 0.0
.data 2060 2060 0 0.0
.text 561564 561564 0 0.0
linux all-clusters-app debug (read only) 5624297 5624297 0 0.0
(read/write) 418328 418328 0 0.0
.bss 129024 129024 0 0.0
.data 4016 4016 0 0.0
.data.rel.ro 277912 277912 0 0.0
.dynamic 624 624 0 0.0
.got 5384 5384 0 0.0
.init 27 27 0 0.0
.init_array 1328 1328 0 0.0
.rodata 338160 338160 0 0.0
.text 4905411 4905411 0 0.0
all-clusters-minimal-app debug (read only) 4914705 4914705 0 0.0
(read/write) 231976 231976 0 0.0
.bss 126080 126080 0 0.0
.data 3856 3856 0 0.0
.data.rel.ro 94896 94896 0 0.0
.dynamic 624 624 0 0.0
.got 5344 5344 0 0.0
.init 27 27 0 0.0
.init_array 1152 1152 0 0.0
.rodata 272614 272614 0 0.0
.text 4411651 4411651 0 0.0
bridge-app debug (read only) 2771217 2771217 0 0.0
(read/write) 132856 132856 0 0.0
.bss 51512 51512 0 0.0
.data 3824 3824 0 0.0
.data.rel.ro 71408 71408 0 0.0
.dynamic 624 624 0 0.0
.got 4640 4640 0 0.0
.init 27 27 0 0.0
.init_array 824 824 0 0.0
.rodata 214696 214696 0 0.0
.text 2378947 2378947 0 0.0
chip-tool debug (read only) 17564521 17564521 0 0.0
(read/write) 1036192 1036192 0 0.0
.bss 93752 93752 0 0.0
.data 5090 5090 0 0.0
.data.rel.ro 929992 929992 0 0.0
.dynamic 624 624 0 0.0
.got 5880 5880 0 0.0
.init 27 27 0 0.0
.init_array 800 800 0 0.0
.rodata 907505 907505 0 0.0
.text 14647491 14647491 0 0.0
chip-tool-ipv6only arm64 (read only) 16787028 16787028 0 0.0
(read/write) 1103512 1103512 0 0.0
.bss 103064 103064 0 0.0
.data 4392 4392 0 0.0
.data.rel.ro 967368 967368 0 0.0
.dynamic 512 512 0 0.0
.got 23192 23192 0 0.0
.init 24 24 0 0.0
.init_array 248 248 0 0.0
.rodata 819888 819888 0 0.0
.text 13773336 13773336 0 0.0
lighting-app debug+rpc+ui (read only) 5242921 5242921 0 0.0
(read/write) 222152 222152 0 0.0
.bss 117808 117808 0 0.0
.data 4528 4528 0 0.0
.data.rel.ro 92248 92248 0 0.0
.dynamic 672 672 0 0.0
.got 5928 5928 0 0.0
.init 27 27 0 0.0
.init_array 944 944 0 0.0
.rodata 337204 337204 0 0.0
.text 4663619 4663619 0 0.0
lock-app debug (read only) 4477505 4477505 0 0.0
(read/write) 203000 203000 0 0.0
.bss 113392 113392 0 0.0
.data 3760 3760 0 0.0
.data.rel.ro 79048 79048 0 0.0
.dynamic 624 624 0 0.0
.got 5264 5264 0 0.0
.init 27 27 0 0.0
.init_array 864 864 0 0.0
.rodata 248582 248582 0 0.0
.text 4019523 4019523 0 0.0
ota-provider-app debug (read only) 4128913 4128913 0 0.0
(read/write) 191936 191936 0 0.0
.bss 113536 113536 0 0.0
.data 4032 4032 0 0.0
.data.rel.ro 68448 68448 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 201286 201286 0 0.0
.text 3737283 3737283 0 0.0
ota-requestor-app debug (read only) 4222857 4222857 0 0.0
(read/write) 196248 196248 0 0.0
.bss 114592 114592 0 0.0
.data 4272 4272 0 0.0
.data.rel.ro 71448 71448 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 204710 204710 0 0.0
.text 3823475 3823475 0 0.0
shell debug (read only) 3046201 3046201 0 0.0
(read/write) 152448 152448 0 0.0
.bss 60328 60328 0 0.0
.data 784 784 0 0.0
.data.rel.ro 85416 85416 0 0.0
.dynamic 592 592 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 1168 1168 0 0.0
.rodata 213938 213938 0 0.0
.text 2658754 2658754 0 0.0
thermostat-no-ble arm64 (read only) 4357692 4357692 0 0.0
(read/write) 241752 241752 0 0.0
.bss 122120 122120 0 0.0
.data 2896 2896 0 0.0
.data.rel.ro 100432 100432 0 0.0
.dynamic 512 512 0 0.0
.got 11848 11848 0 0.0
.init 24 24 0 0.0
.init_array 424 424 0 0.0
.rodata 161444 161444 0 0.0
.text 3862248 3862248 0 0.0
tv-app debug (read only) 5317977 5317977 0 0.0
(read/write) 349920 349920 0 0.0
.bss 241312 241312 0 0.0
.data 5136 5136 0 0.0
.data.rel.ro 96048 96048 0 0.0
.dynamic 624 624 0 0.0
.got 5616 5616 0 0.0
.init 27 27 0 0.0
.init_array 1144 1144 0 0.0
.rodata 272662 272662 0 0.0
.text 4801651 4801651 0 0.0
tv-casting-app debug (read only) 8297393 8297393 0 0.0
(read/write) 210608 210608 0 0.0
.bss 54240 54240 0 0.0
.data 2544 2544 0 0.0
.data.rel.ro 147016 147016 0 0.0
.dynamic 624 624 0 0.0
.got 5096 5096 0 0.0
.init 27 27 0 0.0
.init_array 1064 1064 0 0.0
.rodata 367900 367900 0 0.0
.text 7529283 7529283 0 0.0
mbed lock-app-release cy8cproto_062_4343w (read only) 6224 6224 0 0.0
(read/write) 2523176 2523176 0 0.0
.bss 219408 219408 0 0.0
.data 5128 5128 0 0.0
.text 1485860 1485860 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1234504 1234504 0 0.0
bss 154716 154716 0 0.0
rodata 142972 142972 0 0.0
text 857828 857824 -4 -0.0
nrf7002dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 1352024 1352024 0 0.0
bss 140174 140174 0 0.0
rodata 136424 136424 0 0.0
text 784724 784728 4 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1159940 1159940 0 0.0
bss 154680 154680 0 0.0
rodata 113728 113728 0 0.0
text 812556 812556 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 837944 837944 0 0.0
(read/write) 1787332 1787332 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 192860 192860 0 0.0
.comment 212 212 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 2536 2536 0 0.0
.debug_abbrev 1406582 1406582 0 0.0
.debug_aranges 146840 146840 0 0.0
.debug_frame 489260 489260 0 0.0
.debug_info 32927390 32927388 -2 -0.0
.debug_line 4227362 4227362 0 0.0
.debug_line_str 957 957 0 0.0
.debug_loclists 2318448 2318448 0 0.0
.debug_rnglists 145487 145487 0 0.0
.debug_str 4570755 4570755 0 0.0
.heap 837944 837944 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 296 296 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 841731 841731 0 0.0
.symtab 512800 512800 0 0.0
.text 0 0 0 0.0
1583548 1583548 0 0.0
.zero.table 8 8 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 840112 840112 0 0.0
(read/write) 1677940 1677940 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 190764 190764 0 0.0
.comment 212 212 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 2464 2464 0 0.0
.debug_abbrev 1289514 1289514 0 0.0
.debug_aranges 137336 137336 0 0.0
.debug_frame 462928 462928 0 0.0
.debug_info 29051950 29051948 -2 -0.0
.debug_line 3969647 3969647 0 0.0
.debug_line_str 981 981 0 0.0
.debug_loclists 2152686 2152686 0 0.0
.debug_rnglists 135734 135734 0 0.0
.debug_str 3982620 3982620 0 0.0
.heap 840112 840112 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 296 296 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 717764 717764 0 0.0
.symtab 467472 467472 0 0.0
.text 1476324 1476324 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
light cy8ckit_062s2_43012 (read only) 846424 846424 0 0.0
(read/write) 1606028 1606028 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 184564 184564 0 0.0
.comment 212 212 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 2352 2352 0 0.0
.debug_abbrev 1129800 1129800 0 0.0
.debug_aranges 127432 127432 0 0.0
.debug_frame 425972 425972 0 0.0
.debug_info 24188465 24188465 0 0.0
.debug_line 3534032 3534032 0 0.0
.debug_line_str 942 942 0 0.0
.debug_loclists 1989144 1989144 0 0.0
.debug_rnglists 125421 125421 0 0.0
.debug_str 3789557 3789557 0 0.0
.heap 846424 846424 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 296 296 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 635098 635098 0 0.0
.symtab 430784 430784 0 0.0
.text 1410724 1410724 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
lock cy8ckit_062s2_43012 (read only) 818896 818896 0 0.0
(read/write) 1640004 1640004 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 212076 212076 0 0.0
.comment 212 212 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 2368 2368 0 0.0
.debug_abbrev 1120999 1120999 0 0.0
.debug_aranges 126360 126360 0 0.0
.debug_frame 422036 422036 0 0.0
.debug_info 24009152 24009152 0 0.0
.debug_line 3489172 3489172 0 0.0
.debug_line_str 933 933 0 0.0
.debug_loclists 1969710 1969710 0 0.0
.debug_rnglists 123622 123622 0 0.0
.debug_str 3754010 3754010 0 0.0
.heap 818896 818896 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 296 296 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 609883 609883 0 0.0
.symtab 423200 423200 0 0.0
.text 1417172 1417172 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1177932 1177932 0 0.0
.bss 101008 101008 0 0.0
.data 744 744 0 0.0
.text 624776 624776 0 0.0
lock-app qpg6105+debug (read/write) 1135356 1135356 0 0.0
.bss 95728 95728 0 0.0
.data 748 748 0 0.0
.text 582196 582196 0 0.0
telink all-clusters-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1088312 1088312 0 0.0
bss 107408 107408 0 0.0
text 745374 745376 2 0.0
all-clusters-minimal-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 980412 980412 0 0.0
bss 105168 105168 0 0.0
text 672536 672536 0 0.0
bridge-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 944744 944736 -8 -0.0
bss 109500 109500 0 0.0
text 647458 647456 -2 -0.0
contact-sensor-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 876708 876700 -8 -0.0
bss 98680 98680 0 0.0
text 590850 590846 -4 -0.0
light-switch-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 922988 922988 0 0.0
bss 99512 99512 0 0.0
text 632486 632490 4 0.0
lighting-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 983048 983040 -8 -0.0
bss 107356 107356 0 0.0
text 686262 686258 -4 -0.0
lighting-app-factory-data tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 994404 994404 0 0.0
bss 111604 111604 0 0.0
text 693776 693776 0 0.0
lighting-app-rpc tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1052572 1052572 0 0.0
bss 108928 108928 0 0.0
text 731190 731192 2 0.0
lighting-app-shell tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1084116 1084116 0 0.0
bss 120004 120004 0 0.0
text 751466 751466 0 0.0
lock-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 934692 934700 8 0.0
bss 99408 99408 0 0.0
text 621908 621912 4 0.0
ota-requestor-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 899280 899280 0 0.0
bss 99988 99988 0 0.0
text 612692 612688 -4 -0.0
pump-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 882100 882100 0 0.0
bss 98812 98812 0 0.0
text 596454 596450 -4 -0.0
pump-controller-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 869280 869280 0 0.0
bss 98612 98612 0 0.0
text 586918 586916 -2 -0.0
shell tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 744420 744420 0 0.0
bss 97208 97208 0 0.0
text 478834 478832 -2 -0.0
smoke_co_alarm-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 880208 880200 -8 -0.0
bss 98800 98800 0 0.0
text 595214 595210 -4 -0.0
temperature-measurement-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 865460 865452 -8 -0.0
bss 98520 98520 0 0.0
text 582564 582560 -4 -0.0
thermostat tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 890712 890720 8 0.0
bss 98912 98912 0 0.0
text 602624 602628 4 0.0
window-covering tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 886304 886304 0 0.0
bss 99228 99228 0 0.0
text 597920 597922 2 0.0

plan44 added 3 commits August 29, 2023 15:03
…roject-chip#28434)

This fixes a ReportEngine problem that was caused by libev based timers
firing slightly (in the range of 20mS) too early, because libev by
default uses the time when events started processing as the "now"
reference for relative timers for efficiency reasons.

To ensure timers cannot fire early, timer setup must compensate for
any difference between ev_now() which is the time events started
processing and ev_time(), which is the actual current time (but is
a bit less efficient to obtain).

# Conflicts:
#	src/system/SystemLayerImplSelect.cpp
libev based regular builds do not need a separate I/O wakeup thread, so
the wakeup thread can be eliminated in CHIP_SYSTEM_CONFIG_USE_LIBEV case.

In normal operation, libev based builds also never call Signal(), so if it
is still called it now emits a error log message, to indicate something might
be wrong in the setup.

However we keep Signal() and related LayerSocketsLoop methods, following the
Darwin dispatch implementation, as fallback to select-based event handling
seems to be needed for some I/O tests.

As noted in a comment to the original libev PR [1], eventually, the select() based
mainloop and external mainloop based solutions like Darwin Dispatch and libev
should be detangled and extracted into separate classes, adapting all the tests
that somehow rely on the select() fallback. As a single self-funded
developer however, I cannot possibly be expected to solve this for Apple ;-)

[1] project-chip#24232 (review)
- the fix prevents them in normal libev case
- however the caller MUST NOT rely on timers *never* firing a bit early
@plan44 plan44 force-pushed the PR/fix-timers-in-libev-mainloop-case branch from 2ccd2c3 to d201208 Compare August 29, 2023 13:06
@github-actions
Copy link

github-actions bot commented Aug 29, 2023

PR #28740: Size comparison from 96c6c7a to d201208

Decreases (1 build for efr32)
platform target config section 96c6c7a d201208 change % change
efr32 lighting-app BRD4187C (read/write) 1070688 1070680 -8 -0.0
.text 890600 890592 -8 -0.0
Full report (62 builds for bl602, bl702, bl702l, cc32xx, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
platform target config section 96c6c7a d201208 change % change
bl602 lighting-app bl602 (read/write) 1365550 1365550 0 0.0
.bss 73446 73446 0 0.0
.data 9600 9600 0 0.0
.text 1058510 1058510 0 0.0
bl602+rpc (read/write) 1412698 1412698 0 0.0
.bss 81486 81486 0 0.0
.data 9952 9952 0 0.0
.text 1090188 1090188 0 0.0
bl702 lighting-app bl702 (read only) 3358 3358 0 0.0
(read/write) 1168659 1168659 0 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 328 328 0 0.0
.bss 41301 41301 0 0.0
.bss_psram 43248 43248 0 0.0
.comment 48 48 0 0.0
.data 3584 3584 0 0.0
.debug_abbrev 1565758 1565758 0 0.0
.debug_aranges 137936 137936 0 0.0
.debug_frame 507216 507216 0 0.0
.debug_info 41817071 41817071 0 0.0
.debug_line 5448758 5448758 0 0.0
.debug_loc 3516528 3516528 0 0.0
.debug_ranges 380504 380504 0 0.0
.debug_str 3952868 3952868 0 0.0
.hbn 544 544 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 144 144 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 107136 107136 0 0.0
.rsvd 4 4 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 304 304 0 0.0
.stack 2048 2048 0 0.0
.strtab 590829 590829 0 0.0
.symtab 176000 176000 0 0.0
.tcm_data 28 28 0 0.0
.tcmcode 3358 3358 0 0.0
.text 0 0 0 0.0
955666 955666 0 0.0
bl702+rpc (read only) 3358 3358 0 0.0
(read/write) 1265475 1265475 0 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 328 328 0 0.0
.bss 49749 49749 0 0.0
.bss_psram 43248 43248 0 0.0
.comment 48 48 0 0.0
.data 4104 4104 0 0.0
.debug_abbrev 1742578 1742578 0 0.0
.debug_aranges 146600 146600 0 0.0
.debug_frame 536468 536468 0 0.0
.debug_info 46720198 46720198 0 0.0
.debug_line 5857643 5857643 0 0.0
.debug_loc 3721819 3721819 0 0.0
.debug_ranges 406400 406400 0 0.0
.debug_str 4374333 4374333 0 0.0
.hbn 544 544 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 160 160 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 122008 122008 0 0.0
.rsvd 4 4 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 304 304 0 0.0
.stack 2048 2048 0 0.0
.strtab 655000 655000 0 0.0
.symtab 195200 195200 0 0.0
.tcm_data 28 28 0 0.0
.tcmcode 3358 3358 0 0.0
.text 0 0 0 0.0
1028116 1028116 0 0.0
bl706-eth (read/write) 1014788 1014788 0 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 328 328 0 0.0
.bss 25586 25586 0 0.0
.bss_psram 94415 94415 0 0.0
.comment 48 48 0 0.0
.data 3304 3304 0 0.0
.debug_abbrev 1114794 1114794 0 0.0
.debug_aranges 114232 114232 0 0.0
.debug_frame 424088 424088 0 0.0
.debug_info 23271358 23271358 0 0.0
.debug_line 4406961 4406961 0 0.0
.debug_loc 3014759 3014759 0 0.0
.debug_ranges 317304 317304 0 0.0
.debug_str 3524886 3524886 0 0.0
.hbn 184 184 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 152 152 0 0.0
.psram 1 1 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 97332 97332 0 0.0
.rsvd 4 4 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 304 304 0 0.0
.stack 2048 2048 0 0.0
.strtab 455888 455888 0 0.0
.symtab 138032 138032 0 0.0
.tcm_data 28 28 0 0.0
.tcmcode 3338 3338 0 0.0
.text 0 0 0 0.0
773744 773744 0 0.0
bl706-wifi (read/write) 1086959 1086959 0 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 328 328 0 0.0
.bss 9981 9981 0 0.0
.bss_psram 95151 95151 0 0.0
.comment 48 48 0 0.0
.data 3624 3624 0 0.0
.debug_abbrev 1207655 1207655 0 0.0
.debug_aranges 118496 118496 0 0.0
.debug_frame 439532 439532 0 0.0
.debug_info 24436468 24436468 0 0.0
.debug_line 4627962 4627962 0 0.0
.debug_loc 3098838 3098838 0 0.0
.debug_ranges 326200 326200 0 0.0
.debug_str 3586271 3586271 0 0.0
.hbn 468 468 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 156 156 0 0.0
.psram 1 1 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 109608 109608 0 0.0
.rsvd 4 4 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 304 304 0 0.0
.stack 2048 2048 0 0.0
.strtab 492653 492653 0 0.0
.symtab 150544 150544 0 0.0
.tcm_data 28 28 0 0.0
.tcmcode 3402 3402 0 0.0
.text 0 0 0 0.0
847450 847450 0 0.0
bl702l lighting-app bl702l (read only) 278 278 0 0.0
(read/write) 1153892 1153892 0 0.0
.boot2 292 292 0 0.0
.bss 16004 16004 0 0.0
.bss_psram 77648 77648 0 0.0
.comment 48 48 0 0.0
.data 4528 4528 0 0.0
.debug_abbrev 1568126 1568126 0 0.0
.debug_aranges 132456 132456 0 0.0
.debug_frame 486948 486948 0 0.0
.debug_info 41823876 41823876 0 0.0
.debug_line 5364965 5364965 0 0.0
.debug_loc 3452328 3452328 0 0.0
.debug_ranges 385824 385824 0 0.0
.debug_str 3965311 3965311 0 0.0
.hbn 3244 3244 0 0.0
.hbn_noinit 308 308 0 0.0
.init 408 408 0 0.0
.init_array 144 144 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 101000 101000 0 0.0
.romdata 3224 3224 0 0.0
.rsvd 4 4 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 286 286 0 0.0
.stack 2048 2048 0 0.0
.strtab 591023 591023 0 0.0
.symtab 175536 175536 0 0.0
.tcm_data 692 692 0 0.0
.tcmcode 278 278 0 0.0
.text 0 0 0 0.0
944166 944166 0 0.0
cc32xx lock CC3235SF_LAUNCHXL (blank) 0 0 0 0.0
(read only) 617146 617146 0 0.0
(read/write) 207256 207256 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 200696 200696 0 0.0
.comment 206 206 0 0.0
.data 1440 1440 0 0.0
.debug_abbrev 966884 966884 0 0.0
.debug_aranges 106736 106736 0 0.0
.debug_frame 360948 360948 0 0.0
.debug_info 21242224 21242224 0 0.0
.debug_line 2796143 2796143 0 0.0
.debug_line_str 513 513 0 0.0
.debug_loc 33340 33340 0 0.0
.debug_loclists 1566793 1566793 0 0.0
.debug_ranges 4984 4984 0 0.0
.debug_rnglists 98923 98923 0 0.0
.debug_str 3367821 3367821 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 106506 106506 0 0.0
.shstrtab 265 265 0 0.0
.stack 2048 2048 0 0.0
.strtab 499911 499911 0 0.0
.symtab 294208 294208 0 0.0
.text 508520 508520 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 552247 552247 0 0.0
.app_xip_area 443513 443513 0 0.0
.bss 63704 63704 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) 538703 538703 0 0.0
.app_xip_area 425033 425033 0 0.0
.bss 68608 68608 0 0.0
.data 692 692 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor cyw930739m2evb_01 (read/write) 574063 574063 0 0.0
.app_xip_area 466529 466529 0 0.0
.bss 62576 62576 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) 558671 558671 0 0.0
.app_xip_area 447921 447921 0 0.0
.bss 65696 65696 0 0.0
.data 688 688 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A+rs9116 (read/write) 1027016 1027016 0 0.0
.bss 193040 193040 0 0.0
.data 2668 2668 0 0.0
.text 831288 831288 0 0.0
BRD4187C (read/write) 1070688 1070680 -8 -0.0
.bss 176812 176812 0 0.0
.data 3256 3256 0 0.0
.text 890600 890592 -8 -0.0
lock-app BRD4161A+wf200 (read/write) 1103776 1103776 0 0.0
.bss 186976 186976 0 0.0
.data 2684 2684 0 0.0
.text 914096 914096 0 0.0
window-app BRD4187C (read/write) 1119540 1119540 0 0.0
.bss 159564 159564 0 0.0
.data 3132 3132 0 0.0
.text 956824 956824 0 0.0
esp32 all-clusters-app c3devkit (read only) 1172992 1172992 0 0.0
(read/write) 1703892 1703892 0 0.0
.dram0.bss 79056 79056 0 0.0
.dram0.data 13084 13084 0 0.0
.flash.rodata 268840 268840 0 0.0
.flash.text 1172992 1172992 0 0.0
.iram0.text 75244 75244 0 0.0
m5stack (read only) 1213787 1213787 0 0.0
(read/write) 552802 552802 0 0.0
.dram0.bss 85424 85424 0 0.0
.dram0.data 34036 34036 0 0.0
.flash.rodata 299724 299724 0 0.0
.flash.text 1208403 1208403 0 0.0
.iram0.text 123287 123287 0 0.0
k32w contact k32w0+release (read only) 591052 591052 0 0.0
(read/write) 87944 87944 0 0.0
.bss 71192 71192 0 0.0
.data 2128 2128 0 0.0
.text 590516 590516 0 0.0
light k32w0+release (read only) 589836 589836 0 0.0
(read/write) 87596 87596 0 0.0
.bss 70856 70856 0 0.0
.data 2116 2116 0 0.0
.text 589300 589300 0 0.0
lock k32w0+release (read only) 562196 562196 0 0.0
(read/write) 85396 85396 0 0.0
.bss 68712 68712 0 0.0
.data 2060 2060 0 0.0
.text 561660 561660 0 0.0
linux all-clusters-app debug (read only) 5649113 5649113 0 0.0
(read/write) 420456 420456 0 0.0
.bss 130688 130688 0 0.0
.data 4016 4016 0 0.0
.data.rel.ro 278376 278376 0 0.0
.dynamic 624 624 0 0.0
.got 5384 5384 0 0.0
.init 27 27 0 0.0
.init_array 1344 1344 0 0.0
.rodata 339188 339188 0 0.0
.text 4928435 4928435 0 0.0
all-clusters-minimal-app debug (read only) 4915681 4915681 0 0.0
(read/write) 232392 232392 0 0.0
.bss 126368 126368 0 0.0
.data 3856 3856 0 0.0
.data.rel.ro 95024 95024 0 0.0
.dynamic 624 624 0 0.0
.got 5344 5344 0 0.0
.init 27 27 0 0.0
.init_array 1152 1152 0 0.0
.rodata 272584 272584 0 0.0
.text 4412323 4412323 0 0.0
bridge-app debug (read only) 2772737 2772737 0 0.0
(read/write) 133176 133176 0 0.0
.bss 51800 51800 0 0.0
.data 3824 3824 0 0.0
.data.rel.ro 71440 71440 0 0.0
.dynamic 624 624 0 0.0
.got 4640 4640 0 0.0
.init 27 27 0 0.0
.init_array 824 824 0 0.0
.rodata 214536 214536 0 0.0
.text 2380531 2380531 0 0.0
chip-tool debug (read only) 10332073 10332073 0 0.0
(read/write) 441688 441688 0 0.0
.bss 93688 93688 0 0.0
.data 5090 5090 0 0.0
.data.rel.ro 335664 335664 0 0.0
.dynamic 624 624 0 0.0
.got 5816 5816 0 0.0
.init 27 27 0 0.0
.init_array 760 760 0 0.0
.rodata 388785 388785 0 0.0
.text 9347811 9347811 0 0.0
chip-tool-ipv6only arm64 (read only) 10173452 10173452 0 0.0
(read/write) 504152 504152 0 0.0
.bss 103080 103080 0 0.0
.data 4392 4392 0 0.0
.data.rel.ro 373032 373032 0 0.0
.dynamic 512 512 0 0.0
.got 18192 18192 0 0.0
.init 24 24 0 0.0
.init_array 248 248 0 0.0
.rodata 316168 316168 0 0.0
.text 9093336 9093336 0 0.0
lighting-app debug+rpc+ui (read only) 5245465 5245465 0 0.0
(read/write) 222536 222536 0 0.0
.bss 118064 118064 0 0.0
.data 4528 4528 0 0.0
.data.rel.ro 92376 92376 0 0.0
.dynamic 672 672 0 0.0
.got 5928 5928 0 0.0
.init 27 27 0 0.0
.init_array 944 944 0 0.0
.rodata 337076 337076 0 0.0
.text 4665955 4665955 0 0.0
lock-app debug (read only) 4479073 4479073 0 0.0
(read/write) 203128 203128 0 0.0
.bss 113488 113488 0 0.0
.data 3760 3760 0 0.0
.data.rel.ro 79080 79080 0 0.0
.dynamic 624 624 0 0.0
.got 5264 5264 0 0.0
.init 27 27 0 0.0
.init_array 864 864 0 0.0
.rodata 248488 248488 0 0.0
.text 4021091 4021091 0 0.0
ota-provider-app debug (read only) 4130449 4130449 0 0.0
(read/write) 192064 192064 0 0.0
.bss 113632 113632 0 0.0
.data 4032 4032 0 0.0
.data.rel.ro 68480 68480 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 201160 201160 0 0.0
.text 3738851 3738851 0 0.0
ota-requestor-app debug (read only) 4223913 4223913 0 0.0
(read/write) 196376 196376 0 0.0
.bss 114688 114688 0 0.0
.data 4272 4272 0 0.0
.data.rel.ro 71480 71480 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 204488 204488 0 0.0
.text 3824659 3824659 0 0.0
shell debug (read only) 3049361 3049361 0 0.0
(read/write) 152936 152936 0 0.0
.bss 60392 60392 0 0.0
.data 784 784 0 0.0
.data.rel.ro 85832 85832 0 0.0
.dynamic 592 592 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 1176 1176 0 0.0
.rodata 214162 214162 0 0.0
.text 2661090 2661090 0 0.0
thermostat-no-ble arm64 (read only) 4358044 4358044 0 0.0
(read/write) 241912 241912 0 0.0
.bss 122216 122216 0 0.0
.data 2896 2896 0 0.0
.data.rel.ro 100512 100512 0 0.0
.dynamic 512 512 0 0.0
.got 11824 11824 0 0.0
.init 24 24 0 0.0
.init_array 424 424 0 0.0
.rodata 161268 161268 0 0.0
.text 3862712 3862712 0 0.0
tv-app debug (read only) 5318937 5318937 0 0.0
(read/write) 350272 350272 0 0.0
.bss 241632 241632 0 0.0
.data 5136 5136 0 0.0
.data.rel.ro 96096 96096 0 0.0
.dynamic 624 624 0 0.0
.got 5616 5616 0 0.0
.init 27 27 0 0.0
.init_array 1144 1144 0 0.0
.rodata 272472 272472 0 0.0
.text 4802707 4802707 0 0.0
tv-casting-app debug (read only) 8277705 8277705 0 0.0
(read/write) 210768 210768 0 0.0
.bss 54336 54336 0 0.0
.data 2544 2544 0 0.0
.data.rel.ro 147064 147064 0 0.0
.dynamic 624 624 0 0.0
.got 5088 5088 0 0.0
.init 27 27 0 0.0
.init_array 1064 1064 0 0.0
.rodata 337980 337980 0 0.0
.text 7539507 7539507 0 0.0
mbed lock-app-release cy8cproto_062_4343w (read only) 6224 6224 0 0.0
(read/write) 2523272 2523272 0 0.0
.bss 219424 219424 0 0.0
.data 5128 5128 0 0.0
.text 1485956 1485956 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1241172 1241172 0 0.0
bss 155482 155482 0 0.0
rodata 143176 143176 0 0.0
text 863512 863512 0 0.0
nrf7002dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 1359568 1359568 0 0.0
bss 140948 140948 0 0.0
rodata 137080 137080 0 0.0
text 790836 790836 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1161112 1161112 0 0.0
bss 154852 154852 0 0.0
rodata 113748 113748 0 0.0
text 813580 813580 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 837160 837160 0 0.0
(read/write) 1793916 1793916 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 193628 193628 0 0.0
.comment 212 212 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 2552 2552 0 0.0
.debug_abbrev 1418440 1418440 0 0.0
.debug_aranges 145152 145152 0 0.0
.debug_frame 482876 482876 0 0.0
.debug_info 33508639 33508639 0 0.0
.debug_line 4234156 4234156 0 0.0
.debug_line_str 957 957 0 0.0
.debug_loclists 2304378 2304378 0 0.0
.debug_rnglists 144584 144584 0 0.0
.debug_str 4529477 4529477 0 0.0
.heap 837160 837160 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 296 296 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 850431 850431 0 0.0
.symtab 515376 515376 0 0.0
.text 1589348 1589348 0 0.0
.zero.table 8 8 0 0.0
text 0 0 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 839944 839944 0 0.0
(read/write) 1678740 1678740 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 190932 190932 0 0.0
.comment 212 212 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 2464 2464 0 0.0
.debug_abbrev 1290847 1290847 0 0.0
.debug_aranges 135016 135016 0 0.0
.debug_frame 454352 454352 0 0.0
.debug_info 29288700 29288700 0 0.0
.debug_line 3947274 3947274 0 0.0
.debug_line_str 981 981 0 0.0
.debug_loclists 2120055 2120055 0 0.0
.debug_rnglists 133976 133976 0 0.0
.debug_str 3922055 3922055 0 0.0
.heap 839944 839944 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 296 296 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 719966 719966 0 0.0
.symtab 467712 467712 0 0.0
.text 1476956 1476956 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
light cy8ckit_062s2_43012 (read only) 846280 846280 0 0.0
(read/write) 1607052 1607052 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 184708 184708 0 0.0
.comment 212 212 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 2352 2352 0 0.0
.debug_abbrev 1130672 1130672 0 0.0
.debug_aranges 125112 125112 0 0.0
.debug_frame 417396 417396 0 0.0
.debug_info 24342759 24342759 0 0.0
.debug_line 3511711 3511711 0 0.0
.debug_line_str 942 942 0 0.0
.debug_loclists 1956839 1956839 0 0.0
.debug_rnglists 123673 123673 0 0.0
.debug_str 3729298 3729298 0 0.0
.heap 846280 846280 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 296 296 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 637531 637531 0 0.0
.symtab 431248 431248 0 0.0
.text 1411604 1411604 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
lock cy8ckit_062s2_43012 (read only) 818880 818880 0 0.0
(read/write) 1640324 1640324 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 212092 212092 0 0.0
.comment 212 212 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 2368 2368 0 0.0
.debug_abbrev 1121636 1121636 0 0.0
.debug_aranges 123920 123920 0 0.0
.debug_frame 413048 413048 0 0.0
.debug_info 24154482 24154482 0 0.0
.debug_line 3464766 3464766 0 0.0
.debug_line_str 933 933 0 0.0
.debug_loclists 1935358 1935358 0 0.0
.debug_rnglists 121769 121769 0 0.0
.debug_str 3692687 3692687 0 0.0
.heap 818880 818880 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 296 296 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 611606 611606 0 0.0
.symtab 423296 423296 0 0.0
.text 1417476 1417476 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1177908 1177908 0 0.0
.bss 101024 101024 0 0.0
.data 744 744 0 0.0
.text 624752 624752 0 0.0
lock-app qpg6105+debug (read/write) 1135388 1135388 0 0.0
.bss 95744 95744 0 0.0
.data 748 748 0 0.0
.text 582228 582228 0 0.0
telink all-clusters-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1096064 1096064 0 0.0
bss 108180 108180 0 0.0
text 752068 752068 0 0.0
all-clusters-minimal-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 981696 981696 0 0.0
bss 105332 105332 0 0.0
text 673682 673682 0 0.0
bridge-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 944936 944936 0 0.0
bss 109652 109652 0 0.0
text 647580 647580 0 0.0
contact-sensor-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 876892 876892 0 0.0
bss 98696 98696 0 0.0
text 591102 591102 0 0.0
light-switch-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 923228 923228 0 0.0
bss 99536 99536 0 0.0
text 632788 632788 0 0.0
lighting-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 984156 984156 0 0.0
bss 107504 107504 0 0.0
text 687250 687250 0 0.0
lighting-app-factory-data tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 995520 995520 0 0.0
bss 111752 111752 0 0.0
text 694766 694766 0 0.0
lighting-app-rpc tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1053744 1053744 0 0.0
bss 109076 109076 0 0.0
text 732246 732246 0 0.0
lighting-app-shell tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1085232 1085232 0 0.0
bss 120152 120152 0 0.0
text 752462 752462 0 0.0
lock-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 934956 934956 0 0.0
bss 99424 99424 0 0.0
text 622230 622230 0 0.0
ota-requestor-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 899488 899488 0 0.0
bss 100012 100012 0 0.0
text 612956 612956 0 0.0
pump-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 882308 882308 0 0.0
bss 98828 98828 0 0.0
text 596728 596728 0 0.0
pump-controller-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 869448 869448 0 0.0
bss 98628 98628 0 0.0
text 587150 587150 0 0.0
shell tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 744116 744116 0 0.0
bss 97208 97208 0 0.0
text 478532 478532 0 0.0
smoke_co_alarm-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 880384 880384 0 0.0
bss 98816 98816 0 0.0
text 595460 595460 0 0.0
temperature-measurement-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 865628 865628 0 0.0
bss 98536 98536 0 0.0
text 582796 582796 0 0.0
thermostat tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 890904 890904 0 0.0
bss 98928 98928 0 0.0
text 602878 602878 0 0.0
window-covering tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 886528 886528 0 0.0
bss 99252 99252 0 0.0
text 598202 598202 0 0.0

@mergify mergify bot merged commit 4c9a1ad into project-chip:master Aug 29, 2023
HunsupJung pushed a commit to HunsupJung/connectedhomeip that referenced this pull request Oct 23, 2023
…#28434) (project-chip#28740)

* SystemLayerImplSelect: libev: avoid timers firing slightly too early (project-chip#28434)

This fixes a ReportEngine problem that was caused by libev based timers
firing slightly (in the range of 20mS) too early, because libev by
default uses the time when events started processing as the "now"
reference for relative timers for efficiency reasons.

To ensure timers cannot fire early, timer setup must compensate for
any difference between ev_now() which is the time events started
processing and ev_time(), which is the actual current time (but is
a bit less efficient to obtain).

# Conflicts:
#	src/system/SystemLayerImplSelect.cpp

* SystemLayerImplSelect: libev: eliminate I/O wakeup thread

libev based regular builds do not need a separate I/O wakeup thread, so
the wakeup thread can be eliminated in CHIP_SYSTEM_CONFIG_USE_LIBEV case.

In normal operation, libev based builds also never call Signal(), so if it
is still called it now emits a error log message, to indicate something might
be wrong in the setup.

However we keep Signal() and related LayerSocketsLoop methods, following the
Darwin dispatch implementation, as fallback to select-based event handling
seems to be needed for some I/O tests.

As noted in a comment to the original libev PR [1], eventually, the select() based
mainloop and external mainloop based solutions like Darwin Dispatch and libev
should be detangled and extracted into separate classes, adapting all the tests
that somehow rely on the select() fallback. As a single self-funded
developer however, I cannot possibly be expected to solve this for Apple ;-)

[1] project-chip#24232 (review)

* SystemLayerImplSelect: reword comment: early firing timers can happen

- the fix prevents them in normal libev case
- however the caller MUST NOT rely on timers *never* firing a bit early
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] [ReadHandler] Regression in report engine caused by #28104
3 participants