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

[dnssd] Replace invalid forced reset logic #24698

Merged
merged 4 commits into from
Jan 30, 2023

Conversation

Damian-Nordic
Copy link
Contributor

The platform implementation of DNS-SD contains a mechanism for restarting the advertising when the platform returns the CHIP_ERROR_FORCED_RESET error. This mechanism is broken as it assumes that only one operational service is used and it uses extra RAM although it is only used by Linux.

Switch to an event-based approach that allows the DNS-SD server to restart the advertising when needed.

Additionally, handle the case in which DiscoveryImplPlatform::InitImpl() is called while the initialization is in progress

The platform implementation of DNS-SD contains a mechanism
for restarting the advertising when the platform returns
the CHIP_ERROR_FORCED_RESET error. This mechanism is broken
as it assumes that only one operational service is used and
it uses extra RAM although it is only used by Linux.

Switch to an event-based approach that allows the DNS-SD
server to restart the advertising when needed.
Currently, the platform implementation of DNS-SD uses
a boolean member to indicate if the backend has already been
initialized, but the initialization is asynchronous so it
may happen that the initialization is invoked twice. Add
another "initializing" state to handle that case.
@github-actions
Copy link

github-actions bot commented Jan 27, 2023

PR #24698: Size comparison from 4820cbd to 6ee2fa7

Increases (26 builds for bl602, bl702, cc13x2_26x2, linux, nrfconnect, psoc6)
platform target config section 4820cbd 6ee2fa7 change % change
bl602 lighting-app bl602 (read/write) 1345482 1345490 8 0.0
.text 1022518 1022522 4 0.0
bl602+rpc (read/write) 1390930 1390938 8 0.0
.text 1053454 1053458 4 0.0
bl702 lighting-app bl702 .rodata 106704 106752 48 0.0
bl702+rpc .rodata 121232 121280 48 0.0
cc13x2_26x2 all-clusters-app LP_CC2652R7 .rodata 87471 87515 44 0.1
all-clusters-minimal-app LP_CC2652R7 .rodata 77423 77467 44 0.1
lock-ftd LP_CC2652R7 .rodata 76267 76311 44 0.1
lock-mtd LP_CC2652R7 .rodata 102735 102775 40 0.0
pump-app LP_CC2652R7 .rodata 90395 90435 40 0.0
pump-controller-app LP_CC2652R7 .rodata 86475 86515 40 0.0
shell LP_CC2652R7 .rodata 84206 84254 48 0.1
linux all-clusters-app debug (read only) 3154921 3154937 16 0.0
.text 2685842 2685858 16 0.0
all-clusters-minimal-app debug (read only) 2971193 2971209 16 0.0
.text 2506722 2506738 16 0.0
bridge-app debug (read only) 2524809 2524825 16 0.0
.text 2138498 2138514 16 0.0
chip-tool debug (read only) 11646465 11646481 16 0.0
.text 9493684 9493700 16 0.0
lighting-app debug+rpc (read only) 2692241 2692257 16 0.0
.text 2285026 2285042 16 0.0
ota-provider-app debug (read only) 2225041 2225057 16 0.0
.text 1887106 1887122 16 0.0
ota-requestor-app debug (read only) 2386553 2386569 16 0.0
.text 2032610 2032626 16 0.0
tv-casting-app debug (read only) 5692681 5692697 16 0.0
.text 5048690 5048706 16 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 rodata 133352 133392 40 0.0
nrf7002dk_nrf5340_cpuapp text 763636 763640 4 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 rodata 110496 110536 40 0.0
psoc6 all-clusters cy8ckit_062s2_43012 .debug_info 27505917 27506003 86 0.0
.debug_line 3778983 3778996 13 0.0
.debug_loc 3673163 3673164 1 0.0
.debug_str 3485010 3485030 20 0.0
all-clusters-minimal cy8ckit_062s2_43012 .debug_info 27063670 27063756 86 0.0
.debug_line 3787349 3787362 13 0.0
.debug_loc 3656893 3656895 2 0.0
.debug_str 3470763 3470783 20 0.0
light cy8ckit_062s2_43012 .debug_info 22491102 22491181 79 0.0
.debug_line 3340154 3340167 13 0.0
.debug_str 3274787 3274807 20 0.0
lock cy8ckit_062s2_43012 .debug_info 22711757 22711837 80 0.0
.debug_line 3341884 3341897 13 0.0
.debug_str 3291194 3291214 20 0.0
Decreases (29 builds for bl702, cc13x2_26x2, cyw30739, efr32, k32w, nrfconnect, qpg, telink)
platform target config section 4820cbd 6ee2fa7 change % change
bl702 lighting-app bl702 (read/write) 1184951 1183451 -1500 -0.1
.bss 70701 69969 -732 -1.0
.debug_abbrev 1549986 1549895 -91 -0.0
.debug_aranges 134056 134048 -8 -0.0
.debug_frame 490996 490972 -24 -0.0
.debug_info 40198121 40195690 -2431 -0.0
.debug_line 5267150 5265956 -1194 -0.0
.debug_loc 3401859 3400685 -1174 -0.0
.debug_ranges 371928 371528 -400 -0.1
.debug_str 3535090 3534638 -452 -0.0
.strtab 571692 571636 -56 -0.0
.symtab 173184 173168 -16 -0.0
.text 952356 951542 -814 -0.1
bl702+rpc (read/write) 1277579 1276095 -1484 -0.1
.bss 78749 78017 -732 -0.9
.debug_abbrev 1698382 1698291 -91 -0.0
.debug_aranges 142280 142272 -8 -0.0
.debug_frame 518700 518676 -24 -0.0
.debug_info 44594413 44591982 -2431 -0.0
.debug_line 5665475 5664281 -1194 -0.0
.debug_loc 3597998 3596794 -1204 -0.0
.debug_ranges 395632 395232 -400 -0.1
.debug_str 3938399 3937947 -452 -0.0
.strtab 632289 632233 -56 -0.0
.symtab 191536 191520 -16 -0.0
.text 1029344 1028530 -814 -0.1
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 677311 676731 -580 -0.1
(read/write) 174672 174516 -156 -0.1
.bss 81676 80940 -736 -0.9
.text 589524 588900 -624 -0.1
all-clusters-minimal-app LP_CC2652R7 (read only) 641391 640803 -588 -0.1
(read/write) 158368 157632 -736 -0.5
.bss 80868 80132 -736 -0.9
.text 563648 563016 -632 -0.1
lock-ftd LP_CC2652R7 (read only) 674379 673807 -572 -0.1
(read/write) 174948 174784 -164 -0.1
.bss 79108 78372 -736 -0.9
.text 597632 597016 -616 -0.1
lock-mtd LP_CC2652R7 (read only) 660727 660143 -584 -0.1
(read/write) 183864 183712 -152 -0.1
.bss 74372 73636 -736 -1.0
.text 557512 556888 -624 -0.1
pump-app LP_CC2652R7 (read only) 687443 686867 -576 -0.1
(read/write) 162612 162460 -152 -0.1
.bss 79068 78340 -728 -0.9
.text 596568 595952 -616 -0.1
pump-controller-app LP_CC2652R7 (read only) 672875 672299 -576 -0.1
(read/write) 177292 177140 -152 -0.1
.bss 79180 78452 -728 -0.9
.text 585920 585304 -616 -0.1
shell LP_CC2652R7 (read only) 668558 667982 -576 -0.1
(read/write) 185496 185336 -160 -0.1
.bss 83748 83012 -736 -0.9
.text 584040 583416 -624 -0.1
cyw30739 light cyw930739m2evb_01 (read/write) 585450 584082 -1368 -0.2
.app_xip_area 461468 460836 -632 -0.1
.bss 66432 65696 -736 -1.1
lock cyw930739m2evb_01 (read/write) 589182 587798 -1384 -0.2
.app_xip_area 459904 459256 -648 -0.1
.bss 71720 70984 -736 -1.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 550822 549526 -1296 -0.2
.app_xip_area 432328 431760 -568 -0.1
.bss 60984 60256 -728 -1.2
efr32 lighting-app BRD4161A+rpc (read/write) 974160 972840 -1320 -0.1
.bss 147152 146416 -736 -0.5
.text 824792 824208 -584 -0.1
BRD4187C (read/write) 1151296 1149900 -1396 -0.1
.bss 133652 132916 -736 -0.6
.text 990504 989844 -660 -0.1
window-app BRD4187C (read/write) 1146240 1144844 -1396 -0.1
.bss 135164 134428 -736 -0.5
.text 983908 983248 -660 -0.1
k32w contact k32w0+release (read/write) 660940 659564 -1376 -0.2
.bss 77360 76624 -736 -1.0
.text 562356 561716 -640 -0.1
light k32w0+release (read/write) 672884 671564 -1320 -0.2
.bss 75144 74408 -736 -1.0
.text 592948 592364 -584 -0.1
lock k32w0+release (read/write) 632320 630944 -1376 -0.2
.bss 75912 75176 -736 -1.0
.text 551596 550956 -640 -0.1
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1165296 1163960 -1336 -0.1
bss 147246 146514 -732 -0.5
text 804472 803856 -616 -0.1
all-clusters-minimal-app nrf52840dk_nrf52840 (read/write) 1111544 1110336 -1208 -0.1
bss 146402 145670 -732 -0.5
text 774540 773932 -608 -0.1
qpg lighting-app qpg6105+debug (read/write) 1148344 1147776 -568 -0.0
.bss 100668 99940 -728 -0.7
.text 595444 594876 -568 -0.1
lock-app qpg6105+debug (read/write) 1116048 1115472 -576 -0.1
.bss 97188 96460 -728 -0.7
.text 563144 562568 -576 -0.1
telink all-clusters-app tlsr9518adk80d (read/write) 1027500 1026104 -1396 -0.1
bss 98680 97948 -732 -0.7
text 689448 688738 -710 -0.1
all-clusters-minimal-app tlsr9518adk80d (read/write) 966472 965076 -1396 -0.1
bss 97824 97092 -732 -0.7
text 653548 652838 -710 -0.1
contact-sensor-app tlsr9518adk80d (read/write) 869316 867920 -1396 -0.2
bss 89844 89112 -732 -0.8
text 582652 581942 -710 -0.1
light-switch-app tlsr9518adk80d (read/write) 885780 884376 -1404 -0.2
bss 89940 89208 -732 -0.8
text 597256 596546 -710 -0.1
lighting-app tlsr9518adk80d (read/write) 964124 962720 -1404 -0.1
bss 97996 97264 -732 -0.7
text 663260 662548 -712 -0.1
ota-requestor-app tlsr9518adk80d (read/write) 899612 898216 -1396 -0.2
bss 90888 90156 -732 -0.8
text 608368 607658 -710 -0.1
thermostat tlsr9518adk80d (read/write) 889068 887664 -1404 -0.2
bss 91328 90596 -732 -0.8
text 598096 597386 -710 -0.1
Full report (54 builds for bl602, bl702, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
platform target config section 4820cbd 6ee2fa7 change % change
bl602 lighting-app bl602 (read/write) 1345482 1345490 8 0.0
.bss 94858 94858 0 0.0
.data 9736 9736 0 0.0
.text 1022518 1022522 4 0.0
bl602+rpc (read/write) 1390930 1390938 8 0.0
.bss 102906 102906 0 0.0
.data 10128 10128 0 0.0
.text 1053454 1053458 4 0.0
bl702 lighting-app bl702 (read only) 3358 3358 0 0.0
(read/write) 1184951 1183451 -1500 -0.1
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 292 292 0 0.0
.bss 70701 69969 -732 -1.0
.bss_psram 30048 30048 0 0.0
.comment 48 48 0 0.0
.data 4056 4056 0 0.0
.debug_abbrev 1549986 1549895 -91 -0.0
.debug_aranges 134056 134048 -8 -0.0
.debug_frame 490996 490972 -24 -0.0
.debug_info 40198121 40195690 -2431 -0.0
.debug_line 5267150 5265956 -1194 -0.0
.debug_loc 3401859 3400685 -1174 -0.0
.debug_ranges 371928 371528 -400 -0.1
.debug_str 3535090 3534638 -452 -0.0
.hbn 536 536 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 106704 106752 48 0.0
.rsvd 2960 2960 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 304 304 0 0.0
.stack 2048 2048 0 0.0
.strtab 571692 571636 -56 -0.0
.symtab 173184 173168 -16 -0.0
.tcm_data 36 36 0 0.0
.tcmcode 3358 3358 0 0.0
.text 0 0 0 0.0
952356 951542 -814 -0.1
bl702+rpc (read only) 3358 3358 0 0.0
(read/write) 1277579 1276095 -1484 -0.1
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 292 292 0 0.0
.bss 78749 78017 -732 -0.9
.bss_psram 30304 30304 0 0.0
.comment 48 48 0 0.0
.data 4608 4608 0 0.0
.debug_abbrev 1698382 1698291 -91 -0.0
.debug_aranges 142280 142272 -8 -0.0
.debug_frame 518700 518676 -24 -0.0
.debug_info 44594413 44591982 -2431 -0.0
.debug_line 5665475 5664281 -1194 -0.0
.debug_loc 3597998 3596794 -1204 -0.0
.debug_ranges 395632 395232 -400 -0.1
.debug_str 3938399 3937947 -452 -0.0
.hbn 536 536 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 121232 121280 48 0.0
.rsvd 2960 2960 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 304 304 0 0.0
.stack 2048 2048 0 0.0
.strtab 632289 632233 -56 -0.0
.symtab 191536 191520 -16 -0.0
.tcm_data 36 36 0 0.0
.tcmcode 3358 3358 0 0.0
.text 0 0 0 0.0
1029344 1028530 -814 -0.1
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 677311 676731 -580 -0.1
(read/write) 174672 174516 -156 -0.1
.bss 81676 80940 -736 -0.9
.data 3384 3384 0 0.0
.rodata 87471 87515 44 0.1
.text 589524 588900 -624 -0.1
all-clusters-minimal-app LP_CC2652R7 (read only) 641391 640803 -588 -0.1
(read/write) 158368 157632 -736 -0.5
.bss 80868 80132 -736 -0.9
.data 3384 3384 0 0.0
.rodata 77423 77467 44 0.1
.text 563648 563016 -632 -0.1
lock-ftd LP_CC2652R7 (read only) 674379 673807 -572 -0.1
(read/write) 174948 174784 -164 -0.1
.bss 79108 78372 -736 -0.9
.data 3312 3312 0 0.0
.rodata 76267 76311 44 0.1
.text 597632 597016 -616 -0.1
lock-mtd LP_CC2652R7 (read only) 660727 660143 -584 -0.1
(read/write) 183864 183712 -152 -0.1
.bss 74372 73636 -736 -1.0
.data 3312 3312 0 0.0
.rodata 102735 102775 40 0.0
.text 557512 556888 -624 -0.1
pump-app LP_CC2652R7 (read only) 687443 686867 -576 -0.1
(read/write) 162612 162460 -152 -0.1
.bss 79068 78340 -728 -0.9
.data 3276 3276 0 0.0
.rodata 90395 90435 40 0.0
.text 596568 595952 -616 -0.1
pump-controller-app LP_CC2652R7 (read only) 672875 672299 -576 -0.1
(read/write) 177292 177140 -152 -0.1
.bss 79180 78452 -728 -0.9
.data 3300 3300 0 0.0
.rodata 86475 86515 40 0.0
.text 585920 585304 -616 -0.1
shell LP_CC2652R7 (read only) 668558 667982 -576 -0.1
(read/write) 185496 185336 -160 -0.1
.bss 83748 83012 -736 -0.9
.data 3380 3380 0 0.0
.rodata 84206 84254 48 0.1
.text 584040 583416 -624 -0.1
cyw30739 light cyw930739m2evb_01 (read/write) 585450 584082 -1368 -0.2
.app_xip_area 461468 460836 -632 -0.1
.bss 66432 65696 -736 -1.1
.data 736 736 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 589182 587798 -1384 -0.2
.app_xip_area 459904 459256 -648 -0.1
.bss 71720 70984 -736 -1.0
.data 744 744 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 550822 549526 -1296 -0.2
.app_xip_area 432328 431760 -568 -0.1
.bss 60984 60256 -728 -1.2
.data 692 692 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A+rpc (read/write) 974160 972840 -1320 -0.1
.bss 147152 146416 -736 -0.5
.data 2196 2196 0 0.0
.text 824792 824208 -584 -0.1
BRD4161A+rs911x (read/write) 1037164 1037164 0 0.0
.bss 181632 181632 0 0.0
.data 2040 2040 0 0.0
.text 853472 853472 0 0.0
BRD4187C (read/write) 1151296 1149900 -1396 -0.1
.bss 133652 132916 -736 -0.6
.data 2544 2544 0 0.0
.text 990504 989844 -660 -0.1
lock-app BRD4161A+wf200 (read/write) 1064788 1064788 0 0.0
.bss 153152 153152 0 0.0
.data 2048 2048 0 0.0
.text 909568 909568 0 0.0
window-app BRD4187C (read/write) 1146240 1144844 -1396 -0.1
.bss 135164 134428 -736 -0.5
.data 2572 2572 0 0.0
.text 983908 983248 -660 -0.1
esp32 all-clusters-app c3devkit (read only) 1042098 1042098 0 0.0
(read/write) 1516178 1516178 0 0.0
.dram0.bss 76032 76032 0 0.0
.dram0.data 13792 13792 0 0.0
.flash.rodata 220136 220136 0 0.0
.flash.text 1042098 1042098 0 0.0
.iram0.text 72896 72896 0 0.0
m5stack (read only) 1094279 1094279 0 0.0
(read/write) 497827 497827 0 0.0
.dram0.bss 81080 81080 0 0.0
.dram0.data 34072 34072 0 0.0
.flash.rodata 248904 248904 0 0.0
.flash.text 1088895 1088895 0 0.0
.iram0.text 124855 124855 0 0.0
k32w contact k32w0+release (read/write) 660940 659564 -1376 -0.2
.bss 77360 76624 -736 -1.0
.data 2112 2112 0 0.0
.text 562356 561716 -640 -0.1
light k32w0+release (read/write) 672884 671564 -1320 -0.2
.bss 75144 74408 -736 -1.0
.data 2064 2064 0 0.0
.text 592948 592364 -584 -0.1
lock k32w0+release (read/write) 632320 630944 -1376 -0.2
.bss 75912 75176 -736 -1.0
.data 2084 2084 0 0.0
.text 551596 550956 -640 -0.1
linux all-clusters-app debug (read only) 3154921 3154937 16 0.0
(read/write) 154864 154864 0 0.0
.bss 63744 63744 0 0.0
.data 2272 2272 0 0.0
.data.rel.ro 82248 82248 0 0.0
.dynamic 608 608 0 0.0
.got 4776 4776 0 0.0
.init 27 27 0 0.0
.init_array 1192 1192 0 0.0
.rodata 283659 283659 0 0.0
.text 2685842 2685858 16 0.0
all-clusters-minimal-app debug (read only) 2971193 2971209 16 0.0
(read/write) 148080 148080 0 0.0
.bss 62880 62880 0 0.0
.data 2240 2240 0 0.0
.data.rel.ro 76472 76472 0 0.0
.dynamic 608 608 0 0.0
.got 4688 4688 0 0.0
.init 27 27 0 0.0
.init_array 1160 1160 0 0.0
.rodata 282379 282379 0 0.0
.text 2506722 2506738 16 0.0
bridge-app debug (read only) 2524809 2524825 16 0.0
(read/write) 132320 132320 0 0.0
.bss 53632 53632 0 0.0
.data 3632 3632 0 0.0
.data.rel.ro 68952 68952 0 0.0
.dynamic 608 608 0 0.0
.got 4616 4616 0 0.0
.init 27 27 0 0.0
.init_array 856 856 0 0.0
.rodata 213920 213920 0 0.0
.text 2138498 2138514 16 0.0
chip-tool debug (read only) 11646465 11646481 16 0.0
(read/write) 648720 648720 0 0.0
.bss 26264 26264 0 0.0
.data 3042 3042 0 0.0
.data.rel.ro 612656 612656 0 0.0
.dynamic 608 608 0 0.0
.got 5352 5352 0 0.0
.init 27 27 0 0.0
.init_array 752 752 0 0.0
.rodata 650021 650021 0 0.0
.text 9493684 9493700 16 0.0
chip-tool-ipv6only arm64 (read only) 11024108 11024108 0 0.0
(read/write) 698024 698024 0 0.0
.bss 34248 34248 0 0.0
.data 3008 3008 0 0.0
.data.rel.ro 641448 641448 0 0.0
.dynamic 560 560 0 0.0
.got 14120 14120 0 0.0
.init 24 24 0 0.0
.init_array 208 208 0 0.0
.rodata 576124 576124 0 0.0
.text 8795284 8795284 0 0.0
lighting-app debug+rpc (read only) 2692241 2692257 16 0.0
(read/write) 131688 131688 0 0.0
.bss 51104 51104 0 0.0
.data 2288 2288 0 0.0
.data.rel.ro 72088 72088 0 0.0
.dynamic 608 608 0 0.0
.got 4648 4648 0 0.0
.init 27 27 0 0.0
.init_array 928 928 0 0.0
.rodata 229856 229856 0 0.0
.text 2285026 2285042 16 0.0
lock-app debug (read only) 2655033 2655033 0 0.0
(read/write) 126736 126736 0 0.0
.bss 49536 49536 0 0.0
.data 1904 1904 0 0.0
.data.rel.ro 69064 69064 0 0.0
.dynamic 608 608 0 0.0
.got 4680 4680 0 0.0
.init 27 27 0 0.0
.init_array 904 904 0 0.0
.rodata 246088 246088 0 0.0
.text 2236434 2236434 0 0.0
ota-provider-app debug (read only) 2225041 2225057 16 0.0
(read/write) 106480 106480 0 0.0
.bss 47712 47712 0 0.0
.data 2080 2080 0 0.0
.data.rel.ro 51560 51560 0 0.0
.dynamic 608 608 0 0.0
.got 3744 3744 0 0.0
.init 27 27 0 0.0
.init_array 744 744 0 0.0
.rodata 197416 197416 0 0.0
.text 1887106 1887122 16 0.0
ota-requestor-app debug (read only) 2386553 2386569 16 0.0
(read/write) 114208 114208 0 0.0
.bss 50176 50176 0 0.0
.data 2480 2480 0 0.0
.data.rel.ro 56328 56328 0 0.0
.dynamic 608 608 0 0.0
.got 3744 3744 0 0.0
.init 27 27 0 0.0
.init_array 824 824 0 0.0
.rodata 204400 204400 0 0.0
.text 2032610 2032626 16 0.0
shell debug (read only) 2684385 2684385 0 0.0
(read/write) 139360 139360 0 0.0
.bss 59144 59144 0 0.0
.data 1264 1264 0 0.0
.data.rel.ro 73128 73128 0 0.0
.dynamic 608 608 0 0.0
.got 4136 4136 0 0.0
.init 27 27 0 0.0
.init_array 1040 1040 0 0.0
.rodata 241746 241746 0 0.0
.text 2282194 2282194 0 0.0
thermostat-no-ble arm64 (read only) 2504436 2504436 0 0.0
(read/write) 144648 144648 0 0.0
.bss 56456 56456 0 0.0
.data 1824 1824 0 0.0
.data.rel.ro 76944 76944 0 0.0
.dynamic 560 560 0 0.0
.got 5392 5392 0 0.0
.init 24 24 0 0.0
.init_array 432 432 0 0.0
.rodata 150800 150800 0 0.0
.text 2091840 2091840 0 0.0
tv-app debug (read only) 3314609 3314609 0 0.0
(read/write) 259568 259568 0 0.0
.bss 170872 170872 0 0.0
.data 3904 3904 0 0.0
.data.rel.ro 78096 78096 0 0.0
.dynamic 608 608 0 0.0
.got 5008 5008 0 0.0
.init 27 27 0 0.0
.init_array 1072 1072 0 0.0
.rodata 270520 270520 0 0.0
.text 2849362 2849362 0 0.0
tv-casting-app debug (read only) 5692681 5692697 16 0.0
(read/write) 162264 162264 0 0.0
.bss 53496 53496 0 0.0
.data 1936 1936 0 0.0
.data.rel.ro 100216 100216 0 0.0
.dynamic 608 608 0 0.0
.got 4928 4928 0 0.0
.init 27 27 0 0.0
.init_array 1048 1048 0 0.0
.rodata 365332 365332 0 0.0
.text 5048690 5048706 16 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2463256 2463256 0 0.0
.bss 215956 215956 0 0.0
.data 5880 5880 0 0.0
.text 1425900 1425900 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1165296 1163960 -1336 -0.1
bss 147246 146514 -732 -0.5
rodata 133352 133392 40 0.0
text 804472 803856 -616 -0.1
nrf7002dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 1366864 1366864 0 0.0
bss 106546 106546 0 0.0
rodata 210832 210832 0 0.0
text 763636 763640 4 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1111544 1110336 -1208 -0.1
bss 146402 145670 -732 -0.5
rodata 110496 110536 40 0.0
text 774540 773932 -608 -0.1
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 840808 840808 0 0.0
(read/write) 1755764 1755764 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 189864 189864 0 0.0
.comment 200 200 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 2672 2672 0 0.0
.debug_abbrev 1251453 1251453 0 0.0
.debug_aranges 111280 111280 0 0.0
.debug_frame 373636 373636 0 0.0
.debug_info 27505917 27506003 86 0.0
.debug_line 3778983 3778996 13 0.0
.debug_loc 3673163 3673164 1 0.0
.debug_ranges 362248 362248 0 0.0
.debug_str 3485010 3485030 20 0.0
.heap 840808 840808 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 577246 577246 0 0.0
.symtab 424288 424288 0 0.0
.text 1554840 1554840 0 0.0
.zero.table 8 8 0 0.0
text 0 0 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 841624 841624 0 0.0
(read/write) 1697644 1697644 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 189056 189056 0 0.0
.comment 200 200 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 1237164 1237164 0 0.0
.debug_aranges 110544 110544 0 0.0
.debug_frame 376080 376080 0 0.0
.debug_info 27063670 27063756 86 0.0
.debug_line 3787349 3787362 13 0.0
.debug_loc 3656893 3656895 2 0.0
.debug_ranges 360216 360216 0 0.0
.debug_str 3470763 3470783 20 0.0
.heap 841624 841624 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 538662 538662 0 0.0
.symtab 409728 409728 0 0.0
.text 1497536 1497536 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
light cy8ckit_062s2_43012 (read only) 849944 849944 0 0.0
(read/write) 1611196 1611196 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 180936 180936 0 0.0
.comment 200 200 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 1072030 1072030 0 0.0
.debug_aranges 102800 102800 0 0.0
.debug_frame 346624 346624 0 0.0
.debug_info 22491102 22491181 79 0.0
.debug_line 3340154 3340167 13 0.0
.debug_loc 3336443 3336443 0 0.0
.debug_ranges 319440 319440 0 0.0
.debug_str 3274787 3274807 20 0.0
.heap 849944 849944 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 474072 474072 0 0.0
.symtab 377632 377632 0 0.0
.text 1419408 1419408 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
lock cy8ckit_062s2_43012 (read only) 844960 844960 0 0.0
(read/write) 1645260 1645260 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 185912 185912 0 0.0
.comment 200 200 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 1073378 1073378 0 0.0
.debug_aranges 103184 103184 0 0.0
.debug_frame 348424 348424 0 0.0
.debug_info 22711757 22711837 80 0.0
.debug_line 3341884 3341897 13 0.0
.debug_loc 3358062 3358062 0 0.0
.debug_ranges 321296 321296 0 0.0
.debug_str 3291194 3291214 20 0.0
.heap 844960 844960 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 477007 477007 0 0.0
.symtab 379456 379456 0 0.0
.text 1448488 1448488 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1148344 1147776 -568 -0.0
.bss 100668 99940 -728 -0.7
.data 848 848 0 0.0
.text 595444 594876 -568 -0.1
lock-app qpg6105+debug (read/write) 1116048 1115472 -576 -0.1
.bss 97188 96460 -728 -0.7
.data 860 860 0 0.0
.text 563144 562568 -576 -0.1
telink all-clusters-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1027500 1026104 -1396 -0.1
bss 98680 97948 -732 -0.7
text 689448 688738 -710 -0.1
all-clusters-minimal-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 966472 965076 -1396 -0.1
bss 97824 97092 -732 -0.7
text 653548 652838 -710 -0.1
contact-sensor-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 869316 867920 -1396 -0.2
bss 89844 89112 -732 -0.8
text 582652 581942 -710 -0.1
light-switch-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 885780 884376 -1404 -0.2
bss 89940 89208 -732 -0.8
text 597256 596546 -710 -0.1
lighting-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 964124 962720 -1404 -0.1
bss 97996 97264 -732 -0.7
text 663260 662548 -712 -0.1
ota-requestor-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 899612 898216 -1396 -0.2
bss 90888 90156 -732 -0.8
text 608368 607658 -710 -0.1
thermostat tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 889068 887664 -1404 -0.2
bss 91328 90596 -732 -0.8
text 598096 597386 -710 -0.1

@andy31415 andy31415 merged commit 35bd94d into project-chip:master Jan 30, 2023
@Damian-Nordic Damian-Nordic deleted the dnssd-cleanup branch January 30, 2023 18:01
kkasperczyk-no pushed a commit to kkasperczyk-no/connectedhomeip that referenced this pull request Feb 1, 2023
* [dnssd] Replace invalid forced reset logic

The platform implementation of DNS-SD contains a mechanism
for restarting the advertising when the platform returns
the CHIP_ERROR_FORCED_RESET error. This mechanism is broken
as it assumes that only one operational service is used and
it uses extra RAM although it is only used by Linux.

Switch to an event-based approach that allows the DNS-SD
server to restart the advertising when needed.

* [dnssd] Make sure initialization is not run twice

Currently, the platform implementation of DNS-SD uses
a boolean member to indicate if the backend has already been
initialized, but the initialization is asynchronous so it
may happen that the initialization is invoked twice. Add
another "initializing" state to handle that case.

* Improve comment

* Fix build
lecndav pushed a commit to lecndav/connectedhomeip that referenced this pull request Mar 22, 2023
* [dnssd] Replace invalid forced reset logic

The platform implementation of DNS-SD contains a mechanism
for restarting the advertising when the platform returns
the CHIP_ERROR_FORCED_RESET error. This mechanism is broken
as it assumes that only one operational service is used and
it uses extra RAM although it is only used by Linux.

Switch to an event-based approach that allows the DNS-SD
server to restart the advertising when needed.

* [dnssd] Make sure initialization is not run twice

Currently, the platform implementation of DNS-SD uses
a boolean member to indicate if the backend has already been
initialized, but the initialization is asynchronous so it
may happen that the initialization is invoked twice. Add
another "initializing" state to handle that case.

* Improve comment

* Fix build
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.

3 participants