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

Make sure we don't advertise with CM=1 when we're not accepting PASE connections. #13813

Merged

Conversation

bzbarsky-apple
Copy link
Contributor

Right now it's possible for a device to both be advertising over
dns-sd with CM=1 and not be accepting PASE connections. Which makes
the CM=1 not exactly true.

Summary of changes:

  1. Change DnssdServer to clearly differentiate between "Start with
    default commissioning mode behavior based on whether we have
    operational credentials" and "Start with commissioning mode disabled",
    instead of treating the two as synonyms. I audited all callsites that
    explicitly passed kDisabled to StartServer() instead of no args, and
    they all seem to want to actually disable commissioning mode.

  2. Change CommissioningWindowManager to start/stop DNS-SD
    commissioning advertising in the same codepaths as BLE advertising.
    This means we stop advertising with CM=1 or CM=2 when we stop
    accepting PASE connections, and start doing it again when we start
    accepting PASE connections again (e.g. if commissioning fails).

Problem

See above.

Change overview

See above.

Testing

Manually tested that a device stops advertising CM=1 while it's in the middle of being commissioned.

@github-actions
Copy link

github-actions bot commented Jan 21, 2022

PR #13813: Size comparison from 5394388 to 4458632

Increases (17 builds for cyw30739, efr32, k32w, linux, mbed, p6, qpg, telink)
platform target config section 5394388 4458632 change % change
cyw30739 light cyw930739m2evb_01 (read/write) 573814 573890 76 0.0
.app_xip_area 478836 478912 76 0.0
efr32 lighting-app BRD4161A (read only) 834948 835068 120 0.0
.text 834940 835060 120 0.0
BRD4161A+rpc (read only) 822352 822448 96 0.0
.text 822344 822440 96 0.0
window-app BRD4161A (read only) 805508 805604 96 0.0
.text 805500 805596 96 0.0
k32w light k32w061+release (read/write) 659928 660028 100 0.0
.text 575660 575760 100 0.0
lock k32w061+release (read/write) 660732 660816 84 0.0
.text 576196 576280 84 0.0
linux chip-tool-ipv6only arm64 (read only) 8472012 8472796 784 0.0
.rodata 435188 435204 16 0.0
.text 7200308 7201076 768 0.0
thermostat-no-ble arm64 (read only) 2048444 2049244 800 0.0
.rodata 130380 130412 32 0.0
.text 1703648 1704416 768 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2351128 2351216 88 0.0
.text 1313704 1313792 88 0.0
lighting-app CY8CPROTO_062_4343W+release (read/write) 2333696 2333784 88 0.0
.text 1296296 1296384 88 0.0
lock-app CY8CPROTO_062_4343W+release (read/write) 2304048 2304136 88 0.0
.text 1266648 1266736 88 0.0
p6 all-clusters-app default (read/write) 2409072 2409192 120 0.0
.text 1367336 1367456 120 0.0
light-app default (read/write) 2330040 2330152 112 0.0
.text 1288304 1288416 112 0.0
lock-app default (read/write) 2299024 2299144 120 0.0
.text 1257288 1257408 120 0.0
qpg lighting-app qpg6105+debug (read only) 566840 566888 48 0.0
.text 561520 561568 48 0.0
lock-app qpg6105+debug (read only) 515336 515384 48 0.0
.text 510016 510064 48 0.0
telink lighting-app tlsr9518adk80d (read/write) 840934 841010 76 0.0
text 587730 587788 58 0.0
Full report (20 builds for cyw30739, efr32, k32w, linux, mbed, p6, qpg, telink)
platform target config section 5394388 4458632 change % change
cyw30739 light cyw930739m2evb_01 (read/write) 573814 573890 76 0.0
.app_xip_area 478836 478912 76 0.0
.bss 77716 77716 0 0.0
.data 604 604 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
efr32 lighting-app BRD4161A (read only) 834948 835068 120 0.0
(read/write) 127244 127244 0 0.0
.bss 125344 125344 0 0.0
.data 1900 1900 0 0.0
.text 834940 835060 120 0.0
BRD4161A+rpc (read only) 822352 822448 96 0.0
(read/write) 143904 143904 0 0.0
.bss 141904 141904 0 0.0
.data 2000 2000 0 0.0
.text 822344 822440 96 0.0
window-app BRD4161A (read only) 805508 805604 96 0.0
(read/write) 125812 125812 0 0.0
.bss 123960 123960 0 0.0
.data 1852 1852 0 0.0
.text 805500 805596 96 0.0
k32w light k32w061+release (read/write) 659928 660028 100 0.0
.bss 76600 76600 0 0.0
.data 1868 1868 0 0.0
.text 575660 575760 100 0.0
lock k32w061+release (read/write) 660732 660816 84 0.0
.bss 76848 76848 0 0.0
.data 1888 1888 0 0.0
.text 576196 576280 84 0.0
linux chip-tool-ipv6only arm64 (read only) 8472012 8472796 784 0.0
(read/write) 390001 390001 0 0.0
.bss 56049 56049 0 0.0
.data 1128 1128 0 0.0
.data.rel.ro 260368 260368 0 0.0
.dynamic 560 560 0 0.0
.got 68704 68704 0 0.0
.init 24 24 0 0.0
.init_array 200 200 0 0.0
.rodata 435188 435204 16 0.0
.text 7200308 7201076 768 0.0
thermostat-no-ble arm64 (read only) 2048444 2049244 800 0.0
(read/write) 145681 145681 0 0.0
.bss 64785 64785 0 0.0
.data 904 904 0 0.0
.data.rel.ro 72968 72968 0 0.0
.dynamic 560 560 0 0.0
.got 4064 4064 0 0.0
.init 24 24 0 0.0
.init_array 320 320 0 0.0
.rodata 130380 130412 32 0.0
.text 1703648 1704416 768 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2351128 2351216 88 0.0
.bss 189444 189444 0 0.0
.data 5304 5304 0 0.0
.text 1313704 1313792 88 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2333696 2333784 88 0.0
.bss 180960 180960 0 0.0
.data 5584 5584 0 0.0
.text 1296296 1296384 88 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2304048 2304136 88 0.0
.bss 179952 179952 0 0.0
.data 5560 5560 0 0.0
.text 1266648 1266736 88 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1139712 1139712 0 0.0
.bss 11756 11756 0 0.0
.data 4368 4368 0 0.0
.text 103096 103096 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2054256 2054256 0 0.0
.bss 156876 156876 0 0.0
.data 4864 4864 0 0.0
.text 1016856 1016856 0 0.0
p6 all-clusters-app default (read/write) 2409072 2409192 120 0.0
.bss 117788 117788 0 0.0
.data 2584 2584 0 0.0
.text 1367336 1367456 120 0.0
light-app default (read/write) 2330040 2330152 112 0.0
.bss 105536 105536 0 0.0
.data 2408 2408 0 0.0
.text 1288304 1288416 112 0.0
lock-app default (read/write) 2299024 2299144 120 0.0
.bss 104392 104392 0 0.0
.data 2360 2360 0 0.0
.text 1257288 1257408 120 0.0
qpg lighting-app qpg6105+debug (read only) 566840 566888 48 0.0
(read/write) 146940 146940 0 0.0
.bss 89680 89680 0 0.0
.data 1064 1064 0 0.0
.text 561520 561568 48 0.0
lock-app qpg6105+debug (read only) 515336 515384 48 0.0
(read/write) 146936 146936 0 0.0
.bss 88256 88256 0 0.0
.data 988 988 0 0.0
.text 510016 510064 48 0.0
persistent-storage-app qpg6105+debug (read only) 107140 107140 0 0.0
(read/write) 146940 146940 0 0.0
.bss 38504 38504 0 0.0
.data 288 288 0 0.0
.text 101820 101820 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 840934 841010 76 0.0
bss 87488 87488 0 0.0
noinit 37160 37160 0 0.0
text 587730 587788 58 0.0

@bzbarsky-apple bzbarsky-apple force-pushed the truth-in-advertising branch 2 times, most recently from 3726c19 to 6db8f34 Compare January 21, 2022 10:10
@github-actions
Copy link

github-actions bot commented Jan 21, 2022

PR #13813: Size comparison from 5394388 to 6db8f34

Increases (27 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 5394388 6db8f34 change % change
cyw30739 light cyw930739m2evb_01 (read/write) 573814 573890 76 0.0
.app_xip_area 478836 478912 76 0.0
efr32 lighting-app BRD4161A (read only) 834948 835068 120 0.0
.text 834940 835060 120 0.0
BRD4161A+rpc (read only) 822352 822448 96 0.0
.text 822344 822440 96 0.0
window-app BRD4161A (read only) 805508 805604 96 0.0
.text 805500 805596 96 0.0
esp32 all-clusters-app c3devkit (read only) 917768 917830 62 0.0
(read/write) 1383338 1383362 24 0.0
.flash.rodata 179232 179256 24 0.0
.flash.text 917768 917830 62 0.0
m5stack (read only) 966227 966295 68 0.0
(read/write) 449772 449788 16 0.0
.flash.rodata 208404 208420 16 0.0
.flash.text 960843 960911 68 0.0
k32w light k32w061+release (read/write) 659928 660028 100 0.0
.text 575660 575760 100 0.0
lock k32w061+release (read/write) 660732 660816 84 0.0
.text 576196 576280 84 0.0
linux chip-tool-ipv6only arm64 (read only) 8472012 8472796 784 0.0
.rodata 435188 435204 16 0.0
.text 7200308 7201076 768 0.0
thermostat-no-ble arm64 (read only) 2048444 2049244 800 0.0
.rodata 130380 130412 32 0.0
.text 1703648 1704416 768 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2351128 2351216 88 0.0
.text 1313704 1313792 88 0.0
lighting-app CY8CPROTO_062_4343W+release (read/write) 2333696 2333784 88 0.0
.text 1296296 1296384 88 0.0
lock-app CY8CPROTO_062_4343W+release (read/write) 2304048 2304136 88 0.0
.text 1266648 1266736 88 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 942287 942371 84 0.0
rodata 108772 108792 20 0.0
text 636896 636960 64 0.0
nrf52840dk_nrf52840+rpc (read/write) 927783 927867 84 0.0
rodata 101220 101240 20 0.0
text 632292 632352 60 0.0
nrf52840dongle_nrf52840 (read/write) 992963 993031 68 0.0
rodata 113524 113544 20 0.0
text 669096 669156 60 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 852142 852214 72 0.0
rodata 101944 101968 24 0.0
text 553816 553872 56 0.0
lock-app nrf52840dk_nrf52840 (read/write) 911663 911747 84 0.0
rodata 103740 103760 20 0.0
text 612336 612400 64 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 821714 821798 84 0.0
rodata 96964 96984 20 0.0
text 529288 529352 64 0.0
pump-app nrf52840dk_nrf52840 (read/write) 914519 914603 84 0.0
rodata 104100 104120 20 0.0
text 614984 615048 64 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 909703 909787 84 0.0
rodata 103252 103272 20 0.0
text 611008 611076 68 0.0
p6 all-clusters-app default (read/write) 2409072 2409192 120 0.0
.text 1367336 1367456 120 0.0
light-app default (read/write) 2330040 2330152 112 0.0
.text 1288304 1288416 112 0.0
lock-app default (read/write) 2299024 2299144 120 0.0
.text 1257288 1257408 120 0.0
qpg lighting-app qpg6105+debug (read only) 566840 566888 48 0.0
.text 561520 561568 48 0.0
lock-app qpg6105+debug (read only) 515336 515384 48 0.0
.text 510016 510064 48 0.0
telink lighting-app tlsr9518adk80d (read/write) 840934 841010 76 0.0
text 587730 587788 58 0.0
Full report (33 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 5394388 6db8f34 change % change
cyw30739 light cyw930739m2evb_01 (read/write) 573814 573890 76 0.0
.app_xip_area 478836 478912 76 0.0
.bss 77716 77716 0 0.0
.data 604 604 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
efr32 lighting-app BRD4161A (read only) 834948 835068 120 0.0
(read/write) 127244 127244 0 0.0
.bss 125344 125344 0 0.0
.data 1900 1900 0 0.0
.text 834940 835060 120 0.0
BRD4161A+rpc (read only) 822352 822448 96 0.0
(read/write) 143904 143904 0 0.0
.bss 141904 141904 0 0.0
.data 2000 2000 0 0.0
.text 822344 822440 96 0.0
window-app BRD4161A (read only) 805508 805604 96 0.0
(read/write) 125812 125812 0 0.0
.bss 123960 123960 0 0.0
.data 1852 1852 0 0.0
.text 805500 805596 96 0.0
esp32 all-clusters-app c3devkit (read only) 917768 917830 62 0.0
(read/write) 1383338 1383362 24 0.0
.dram0.bss 70736 70736 0 0.0
.dram0.data 14252 14252 0 0.0
.flash.rodata 179232 179256 24 0.0
.flash.text 917768 917830 62 0.0
.iram0.text 62056 62056 0 0.0
m5stack (read only) 966227 966295 68 0.0
(read/write) 449772 449788 16 0.0
.dram0.bss 75208 75208 0 0.0
.dram0.data 34032 34032 0 0.0
.flash.rodata 208404 208420 16 0.0
.flash.text 960843 960911 68 0.0
.iram0.text 123399 123399 0 0.0
k32w light k32w061+release (read/write) 659928 660028 100 0.0
.bss 76600 76600 0 0.0
.data 1868 1868 0 0.0
.text 575660 575760 100 0.0
lock k32w061+release (read/write) 660732 660816 84 0.0
.bss 76848 76848 0 0.0
.data 1888 1888 0 0.0
.text 576196 576280 84 0.0
linux chip-tool-ipv6only arm64 (read only) 8472012 8472796 784 0.0
(read/write) 390001 390001 0 0.0
.bss 56049 56049 0 0.0
.data 1128 1128 0 0.0
.data.rel.ro 260368 260368 0 0.0
.dynamic 560 560 0 0.0
.got 68704 68704 0 0.0
.init 24 24 0 0.0
.init_array 200 200 0 0.0
.rodata 435188 435204 16 0.0
.text 7200308 7201076 768 0.0
thermostat-no-ble arm64 (read only) 2048444 2049244 800 0.0
(read/write) 145681 145681 0 0.0
.bss 64785 64785 0 0.0
.data 904 904 0 0.0
.data.rel.ro 72968 72968 0 0.0
.dynamic 560 560 0 0.0
.got 4064 4064 0 0.0
.init 24 24 0 0.0
.init_array 320 320 0 0.0
.rodata 130380 130412 32 0.0
.text 1703648 1704416 768 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2351128 2351216 88 0.0
.bss 189444 189444 0 0.0
.data 5304 5304 0 0.0
.text 1313704 1313792 88 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2333696 2333784 88 0.0
.bss 180960 180960 0 0.0
.data 5584 5584 0 0.0
.text 1296296 1296384 88 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2304048 2304136 88 0.0
.bss 179952 179952 0 0.0
.data 5560 5560 0 0.0
.text 1266648 1266736 88 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1139712 1139712 0 0.0
.bss 11756 11756 0 0.0
.data 4368 4368 0 0.0
.text 103096 103096 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2054256 2054256 0 0.0
.bss 156876 156876 0 0.0
.data 4864 4864 0 0.0
.text 1016856 1016856 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 942287 942371 84 0.0
bss 119040 119040 0 0.0
rodata 108772 108792 20 0.0
text 636896 636960 64 0.0
nrf52840dk_nrf52840+rpc (read/write) 927783 927867 84 0.0
bss 116084 116084 0 0.0
rodata 101220 101240 20 0.0
text 632292 632352 60 0.0
nrf52840dongle_nrf52840 (read/write) 992963 993031 68 0.0
bss 121884 121884 0 0.0
rodata 113524 113544 20 0.0
text 669096 669156 60 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 852142 852214 72 0.0
bss 115828 115828 0 0.0
rodata 101944 101968 24 0.0
text 553816 553872 56 0.0
lock-app nrf52840dk_nrf52840 (read/write) 911663 911747 84 0.0
bss 118196 118196 0 0.0
rodata 103740 103760 20 0.0
text 612336 612400 64 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 821714 821798 84 0.0
bss 115012 115012 0 0.0
rodata 96964 96984 20 0.0
text 529288 529352 64 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 541835 541835 0 0.0
bss 52588 52588 0 0.0
rodata 50104 50104 0 0.0
text 376940 376940 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 914519 914603 84 0.0
bss 117960 117960 0 0.0
rodata 104100 104120 20 0.0
text 614984 615048 64 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 909703 909787 84 0.0
bss 117984 117984 0 0.0
rodata 103252 103272 20 0.0
text 611008 611076 68 0.0
shell nrf52840dk_nrf52840 (read/write) 798527 798527 0 0.0
bss 109776 109776 0 0.0
rodata 78324 78324 0 0.0
text 533928 533928 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 711342 711342 0 0.0
bss 107664 107664 0 0.0
rodata 72624 72624 0 0.0
text 451608 451608 0 0.0
p6 all-clusters-app default (read/write) 2409072 2409192 120 0.0
.bss 117788 117788 0 0.0
.data 2584 2584 0 0.0
.text 1367336 1367456 120 0.0
light-app default (read/write) 2330040 2330152 112 0.0
.bss 105536 105536 0 0.0
.data 2408 2408 0 0.0
.text 1288304 1288416 112 0.0
lock-app default (read/write) 2299024 2299144 120 0.0
.bss 104392 104392 0 0.0
.data 2360 2360 0 0.0
.text 1257288 1257408 120 0.0
qpg lighting-app qpg6105+debug (read only) 566840 566888 48 0.0
(read/write) 146940 146940 0 0.0
.bss 89680 89680 0 0.0
.data 1064 1064 0 0.0
.text 561520 561568 48 0.0
lock-app qpg6105+debug (read only) 515336 515384 48 0.0
(read/write) 146936 146936 0 0.0
.bss 88256 88256 0 0.0
.data 988 988 0 0.0
.text 510016 510064 48 0.0
persistent-storage-app qpg6105+debug (read only) 107140 107140 0 0.0
(read/write) 146940 146940 0 0.0
.bss 38504 38504 0 0.0
.data 288 288 0 0.0
.text 101820 101820 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 840934 841010 76 0.0
bss 87488 87488 0 0.0
noinit 37160 37160 0 0.0
text 587730 587788 58 0.0

src/app/server/CommissioningWindowManager.cpp Outdated Show resolved Hide resolved
src/app/server/Dnssd.h Outdated Show resolved Hide resolved
@github-actions
Copy link

github-actions bot commented Jan 21, 2022

PR #13813: Size comparison from b519c8e to 3a9f386

Increases (27 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section b519c8e 3a9f386 change % change
cyw30739 light cyw930739m2evb_01 (read/write) 573814 573890 76 0.0
.app_xip_area 478836 478912 76 0.0
efr32 lighting-app BRD4161A (read only) 834948 835068 120 0.0
.text 834940 835060 120 0.0
BRD4161A+rpc (read only) 822352 822464 112 0.0
.text 822344 822456 112 0.0
window-app BRD4161A (read only) 805508 805620 112 0.0
.text 805500 805612 112 0.0
esp32 all-clusters-app c3devkit (read only) 917768 917836 68 0.0
(read/write) 1383338 1383362 24 0.0
.flash.rodata 179232 179256 24 0.0
.flash.text 917768 917836 68 0.0
m5stack (read only) 966227 966295 68 0.0
(read/write) 449772 449788 16 0.0
.flash.rodata 208404 208420 16 0.0
.flash.text 960843 960911 68 0.0
k32w light k32w061+release (read/write) 659928 660028 100 0.0
.text 575660 575760 100 0.0
lock k32w061+release (read/write) 660732 660816 84 0.0
.text 576196 576280 84 0.0
linux chip-tool-ipv6only arm64 (read only) 8472012 8472812 800 0.0
.rodata 435188 435204 16 0.0
.text 7200308 7201092 784 0.0
thermostat-no-ble arm64 (read only) 2048444 2049244 800 0.0
.rodata 130380 130412 32 0.0
.text 1703648 1704416 768 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2351128 2351216 88 0.0
.text 1313704 1313792 88 0.0
lighting-app CY8CPROTO_062_4343W+release (read/write) 2333696 2333784 88 0.0
.text 1296296 1296384 88 0.0
lock-app CY8CPROTO_062_4343W+release (read/write) 2304048 2304136 88 0.0
.text 1266648 1266736 88 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 942287 942371 84 0.0
rodata 108772 108792 20 0.0
text 636896 636964 68 0.0
nrf52840dk_nrf52840+rpc (read/write) 927783 927867 84 0.0
rodata 101220 101240 20 0.0
text 632292 632356 64 0.0
nrf52840dongle_nrf52840 (read/write) 992963 993047 84 0.0
rodata 113524 113544 20 0.0
text 669096 669160 64 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 852142 852214 72 0.0
rodata 101944 101968 24 0.0
text 553816 553876 60 0.0
lock-app nrf52840dk_nrf52840 (read/write) 911663 911747 84 0.0
rodata 103740 103760 20 0.0
text 612336 612404 68 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 821714 821814 100 0.0
rodata 96964 96984 20 0.0
text 529288 529356 68 0.0
pump-app nrf52840dk_nrf52840 (read/write) 914519 914603 84 0.0
rodata 104100 104120 20 0.0
text 614984 615052 68 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 909703 909803 100 0.0
rodata 103252 103272 20 0.0
text 611008 611080 72 0.0
p6 all-clusters-app default (read/write) 2409072 2409192 120 0.0
.text 1367336 1367456 120 0.0
light-app default (read/write) 2330040 2330152 112 0.0
.text 1288304 1288416 112 0.0
lock-app default (read/write) 2299024 2299160 136 0.0
.text 1257288 1257424 136 0.0
qpg lighting-app qpg6105+debug (read only) 566840 566896 56 0.0
.text 561520 561576 56 0.0
lock-app qpg6105+debug (read only) 515336 515392 56 0.0
.text 510016 510072 56 0.0
telink lighting-app tlsr9518adk80d (read/write) 840934 841010 76 0.0
text 587730 587788 58 0.0
Full report (33 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section b519c8e 3a9f386 change % change
cyw30739 light cyw930739m2evb_01 (read/write) 573814 573890 76 0.0
.app_xip_area 478836 478912 76 0.0
.bss 77716 77716 0 0.0
.data 604 604 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
efr32 lighting-app BRD4161A (read only) 834948 835068 120 0.0
(read/write) 127244 127244 0 0.0
.bss 125344 125344 0 0.0
.data 1900 1900 0 0.0
.text 834940 835060 120 0.0
BRD4161A+rpc (read only) 822352 822464 112 0.0
(read/write) 143904 143904 0 0.0
.bss 141904 141904 0 0.0
.data 2000 2000 0 0.0
.text 822344 822456 112 0.0
window-app BRD4161A (read only) 805508 805620 112 0.0
(read/write) 125812 125812 0 0.0
.bss 123960 123960 0 0.0
.data 1852 1852 0 0.0
.text 805500 805612 112 0.0
esp32 all-clusters-app c3devkit (read only) 917768 917836 68 0.0
(read/write) 1383338 1383362 24 0.0
.dram0.bss 70736 70736 0 0.0
.dram0.data 14252 14252 0 0.0
.flash.rodata 179232 179256 24 0.0
.flash.text 917768 917836 68 0.0
.iram0.text 62056 62056 0 0.0
m5stack (read only) 966227 966295 68 0.0
(read/write) 449772 449788 16 0.0
.dram0.bss 75208 75208 0 0.0
.dram0.data 34032 34032 0 0.0
.flash.rodata 208404 208420 16 0.0
.flash.text 960843 960911 68 0.0
.iram0.text 123399 123399 0 0.0
k32w light k32w061+release (read/write) 659928 660028 100 0.0
.bss 76600 76600 0 0.0
.data 1868 1868 0 0.0
.text 575660 575760 100 0.0
lock k32w061+release (read/write) 660732 660816 84 0.0
.bss 76848 76848 0 0.0
.data 1888 1888 0 0.0
.text 576196 576280 84 0.0
linux chip-tool-ipv6only arm64 (read only) 8472012 8472812 800 0.0
(read/write) 390001 390001 0 0.0
.bss 56049 56049 0 0.0
.data 1128 1128 0 0.0
.data.rel.ro 260368 260368 0 0.0
.dynamic 560 560 0 0.0
.got 68704 68704 0 0.0
.init 24 24 0 0.0
.init_array 200 200 0 0.0
.rodata 435188 435204 16 0.0
.text 7200308 7201092 784 0.0
thermostat-no-ble arm64 (read only) 2048444 2049244 800 0.0
(read/write) 145681 145681 0 0.0
.bss 64785 64785 0 0.0
.data 904 904 0 0.0
.data.rel.ro 72968 72968 0 0.0
.dynamic 560 560 0 0.0
.got 4064 4064 0 0.0
.init 24 24 0 0.0
.init_array 320 320 0 0.0
.rodata 130380 130412 32 0.0
.text 1703648 1704416 768 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2351128 2351216 88 0.0
.bss 189444 189444 0 0.0
.data 5304 5304 0 0.0
.text 1313704 1313792 88 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2333696 2333784 88 0.0
.bss 180960 180960 0 0.0
.data 5584 5584 0 0.0
.text 1296296 1296384 88 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2304048 2304136 88 0.0
.bss 179952 179952 0 0.0
.data 5560 5560 0 0.0
.text 1266648 1266736 88 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1139712 1139712 0 0.0
.bss 11756 11756 0 0.0
.data 4368 4368 0 0.0
.text 103096 103096 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2054256 2054256 0 0.0
.bss 156876 156876 0 0.0
.data 4864 4864 0 0.0
.text 1016856 1016856 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 942287 942371 84 0.0
bss 119040 119040 0 0.0
rodata 108772 108792 20 0.0
text 636896 636964 68 0.0
nrf52840dk_nrf52840+rpc (read/write) 927783 927867 84 0.0
bss 116084 116084 0 0.0
rodata 101220 101240 20 0.0
text 632292 632356 64 0.0
nrf52840dongle_nrf52840 (read/write) 992963 993047 84 0.0
bss 121884 121884 0 0.0
rodata 113524 113544 20 0.0
text 669096 669160 64 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 852142 852214 72 0.0
bss 115828 115828 0 0.0
rodata 101944 101968 24 0.0
text 553816 553876 60 0.0
lock-app nrf52840dk_nrf52840 (read/write) 911663 911747 84 0.0
bss 118196 118196 0 0.0
rodata 103740 103760 20 0.0
text 612336 612404 68 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 821714 821814 100 0.0
bss 115012 115012 0 0.0
rodata 96964 96984 20 0.0
text 529288 529356 68 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 541835 541835 0 0.0
bss 52588 52588 0 0.0
rodata 50104 50104 0 0.0
text 376940 376940 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 914519 914603 84 0.0
bss 117960 117960 0 0.0
rodata 104100 104120 20 0.0
text 614984 615052 68 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 909703 909803 100 0.0
bss 117984 117984 0 0.0
rodata 103252 103272 20 0.0
text 611008 611080 72 0.0
shell nrf52840dk_nrf52840 (read/write) 798527 798527 0 0.0
bss 109776 109776 0 0.0
rodata 78324 78324 0 0.0
text 533928 533928 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 711342 711342 0 0.0
bss 107664 107664 0 0.0
rodata 72624 72624 0 0.0
text 451608 451608 0 0.0
p6 all-clusters-app default (read/write) 2409072 2409192 120 0.0
.bss 117788 117788 0 0.0
.data 2584 2584 0 0.0
.text 1367336 1367456 120 0.0
light-app default (read/write) 2330040 2330152 112 0.0
.bss 105536 105536 0 0.0
.data 2408 2408 0 0.0
.text 1288304 1288416 112 0.0
lock-app default (read/write) 2299024 2299160 136 0.0
.bss 104392 104392 0 0.0
.data 2360 2360 0 0.0
.text 1257288 1257424 136 0.0
qpg lighting-app qpg6105+debug (read only) 566840 566896 56 0.0
(read/write) 146940 146940 0 0.0
.bss 89680 89680 0 0.0
.data 1064 1064 0 0.0
.text 561520 561576 56 0.0
lock-app qpg6105+debug (read only) 515336 515392 56 0.0
(read/write) 146936 146936 0 0.0
.bss 88256 88256 0 0.0
.data 988 988 0 0.0
.text 510016 510072 56 0.0
persistent-storage-app qpg6105+debug (read only) 107140 107140 0 0.0
(read/write) 146940 146940 0 0.0
.bss 38504 38504 0 0.0
.data 288 288 0 0.0
.text 101820 101820 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 840934 841010 76 0.0
bss 87488 87488 0 0.0
noinit 37160 37160 0 0.0
text 587730 587788 58 0.0

@github-actions
Copy link

github-actions bot commented Jan 21, 2022

PR #13813: Size comparison from b1d40eb to 9e1f019

Increases (27 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section b1d40eb4 9e1f019 change % change
cyw30739 light cyw930739m2evb_01 (read/write) 574218 574302 84 0.0
.app_xip_area 479232 479316 84 0.0
efr32 lighting-app BRD4161A (read only) 835532 835660 128 0.0
.text 835524 835652 128 0.0
BRD4161A+rpc (read only) 822928 823064 136 0.0
.text 822920 823056 136 0.0
window-app BRD4161A (read only) 806084 806204 120 0.0
.text 806076 806196 120 0.0
esp32 all-clusters-app c3devkit (read only) 917964 918042 78 0.0
(read/write) 1383386 1383402 16 0.0
.flash.rodata 179312 179328 16 0.0
.flash.text 917964 918042 78 0.0
m5stack (read only) 966499 966551 52 0.0
(read/write) 449796 449820 24 0.0
.flash.rodata 208468 208492 24 0.0
.flash.text 961115 961167 52 0.0
k32w light k32w061+release (read/write) 660376 660460 84 0.0
.text 576100 576184 84 0.0
lock k32w061+release (read/write) 661132 661216 84 0.0
.text 576596 576680 84 0.0
linux chip-tool-ipv6only arm64 (read only) 8494356 8495172 816 0.0
.rodata 435724 435740 16 0.0
.text 7221780 7222580 800 0.0
thermostat-no-ble arm64 (read only) 2050364 2051180 816 0.0
.rodata 130684 130700 16 0.0
.text 1705184 1705984 800 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2351464 2351544 80 0.0
.text 1314040 1314120 80 0.0
lighting-app CY8CPROTO_062_4343W+release (read/write) 2334080 2334232 152 0.0
.text 1296680 1296832 152 0.0
lock-app CY8CPROTO_062_4343W+release (read/write) 2304496 2304584 88 0.0
.text 1267096 1267184 88 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 942699 942783 84 0.0
rodata 108896 108916 20 0.0
text 637156 637220 64 0.0
nrf52840dk_nrf52840+rpc (read/write) 928167 928267 100 0.0
rodata 101348 101368 20 0.0
text 632548 632616 68 0.0
nrf52840dongle_nrf52840 (read/write) 993343 993431 88 0.0
rodata 113648 113672 24 0.0
text 669352 669420 68 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 852526 852610 84 0.0
rodata 102072 102092 20 0.0
text 554080 554140 60 0.0
lock-app nrf52840dk_nrf52840 (read/write) 912043 912127 84 0.0
rodata 103864 103884 20 0.0
text 612592 612664 72 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 822114 822198 84 0.0
rodata 97092 97112 20 0.0
text 529552 529620 68 0.0
pump-app nrf52840dk_nrf52840 (read/write) 914899 915003 104 0.0
rodata 104224 104248 24 0.0
text 615240 615312 72 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 910087 910187 100 0.0
rodata 103380 103400 20 0.0
text 611268 611336 68 0.0
p6 all-clusters-app default (read/write) 2409408 2409528 120 0.0
.text 1367672 1367792 120 0.0
light-app default (read/write) 2330360 2330496 136 0.0
.text 1288624 1288760 136 0.0
lock-app default (read/write) 2299368 2299496 128 0.0
.text 1257632 1257760 128 0.0
qpg lighting-app qpg6105+debug (read only) 567276 567324 48 0.0
.text 561956 562004 48 0.0
lock-app qpg6105+debug (read only) 515744 515800 56 0.0
.text 510424 510480 56 0.0
telink lighting-app tlsr9518adk80d (read/write) 841498 841582 84 0.0
text 588142 588206 64 0.0
Full report (33 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section b1d40eb4 9e1f019 change % change
cyw30739 light cyw930739m2evb_01 (read/write) 574218 574302 84 0.0
.app_xip_area 479232 479316 84 0.0
.bss 77724 77724 0 0.0
.data 604 604 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
efr32 lighting-app BRD4161A (read only) 835532 835660 128 0.0
(read/write) 127244 127244 0 0.0
.bss 125344 125344 0 0.0
.data 1900 1900 0 0.0
.text 835524 835652 128 0.0
BRD4161A+rpc (read only) 822928 823064 136 0.0
(read/write) 143904 143904 0 0.0
.bss 141904 141904 0 0.0
.data 2000 2000 0 0.0
.text 822920 823056 136 0.0
window-app BRD4161A (read only) 806084 806204 120 0.0
(read/write) 125812 125812 0 0.0
.bss 123960 123960 0 0.0
.data 1852 1852 0 0.0
.text 806076 806196 120 0.0
esp32 all-clusters-app c3devkit (read only) 917964 918042 78 0.0
(read/write) 1383386 1383402 16 0.0
.dram0.bss 70704 70704 0 0.0
.dram0.data 14252 14252 0 0.0
.flash.rodata 179312 179328 16 0.0
.flash.text 917964 918042 78 0.0
.iram0.text 62056 62056 0 0.0
m5stack (read only) 966499 966551 52 0.0
(read/write) 449796 449820 24 0.0
.dram0.bss 75168 75168 0 0.0
.dram0.data 34032 34032 0 0.0
.flash.rodata 208468 208492 24 0.0
.flash.text 961115 961167 52 0.0
.iram0.text 123399 123399 0 0.0
k32w light k32w061+release (read/write) 660376 660460 84 0.0
.bss 76608 76608 0 0.0
.data 1868 1868 0 0.0
.text 576100 576184 84 0.0
lock k32w061+release (read/write) 661132 661216 84 0.0
.bss 76848 76848 0 0.0
.data 1888 1888 0 0.0
.text 576596 576680 84 0.0
linux chip-tool-ipv6only arm64 (read only) 8494356 8495172 816 0.0
(read/write) 390129 390129 0 0.0
.bss 56049 56049 0 0.0
.data 1128 1128 0 0.0
.data.rel.ro 260440 260440 0 0.0
.dynamic 560 560 0 0.0
.got 68760 68760 0 0.0
.init 24 24 0 0.0
.init_array 200 200 0 0.0
.rodata 435724 435740 16 0.0
.text 7221780 7222580 800 0.0
thermostat-no-ble arm64 (read only) 2050364 2051180 816 0.0
(read/write) 145697 145697 0 0.0
.bss 64785 64785 0 0.0
.data 904 904 0 0.0
.data.rel.ro 72984 72984 0 0.0
.dynamic 560 560 0 0.0
.got 4064 4064 0 0.0
.init 24 24 0 0.0
.init_array 320 320 0 0.0
.rodata 130684 130700 16 0.0
.text 1705184 1705984 800 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2351464 2351544 80 0.0
.bss 189412 189412 0 0.0
.data 5304 5304 0 0.0
.text 1314040 1314120 80 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2334080 2334232 152 0.0
.bss 180960 180960 0 0.0
.data 5584 5584 0 0.0
.text 1296680 1296832 152 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2304496 2304584 88 0.0
.bss 179960 179960 0 0.0
.data 5560 5560 0 0.0
.text 1267096 1267184 88 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1139712 1139712 0 0.0
.bss 11756 11756 0 0.0
.data 4368 4368 0 0.0
.text 103096 103096 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2054256 2054256 0 0.0
.bss 156876 156876 0 0.0
.data 4864 4864 0 0.0
.text 1016856 1016856 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 942699 942783 84 0.0
bss 119044 119044 0 0.0
rodata 108896 108916 20 0.0
text 637156 637220 64 0.0
nrf52840dk_nrf52840+rpc (read/write) 928167 928267 100 0.0
bss 116088 116088 0 0.0
rodata 101348 101368 20 0.0
text 632548 632616 68 0.0
nrf52840dongle_nrf52840 (read/write) 993343 993431 88 0.0
bss 121884 121884 0 0.0
rodata 113648 113672 24 0.0
text 669352 669420 68 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 852526 852610 84 0.0
bss 115828 115828 0 0.0
rodata 102072 102092 20 0.0
text 554080 554140 60 0.0
lock-app nrf52840dk_nrf52840 (read/write) 912043 912127 84 0.0
bss 118196 118196 0 0.0
rodata 103864 103884 20 0.0
text 612592 612664 72 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 822114 822198 84 0.0
bss 115016 115016 0 0.0
rodata 97092 97112 20 0.0
text 529552 529620 68 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 541835 541835 0 0.0
bss 52588 52588 0 0.0
rodata 50104 50104 0 0.0
text 376940 376940 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 914899 915003 104 0.0
bss 117960 117960 0 0.0
rodata 104224 104248 24 0.0
text 615240 615312 72 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 910087 910187 100 0.0
bss 117984 117984 0 0.0
rodata 103380 103400 20 0.0
text 611268 611336 68 0.0
shell nrf52840dk_nrf52840 (read/write) 798527 798527 0 0.0
bss 109776 109776 0 0.0
rodata 78324 78324 0 0.0
text 533928 533928 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 711342 711342 0 0.0
bss 107664 107664 0 0.0
rodata 72624 72624 0 0.0
text 451608 451608 0 0.0
p6 all-clusters-app default (read/write) 2409408 2409528 120 0.0
.bss 117756 117756 0 0.0
.data 2584 2584 0 0.0
.text 1367672 1367792 120 0.0
light-app default (read/write) 2330360 2330496 136 0.0
.bss 105544 105544 0 0.0
.data 2408 2408 0 0.0
.text 1288624 1288760 136 0.0
lock-app default (read/write) 2299368 2299496 128 0.0
.bss 104392 104392 0 0.0
.data 2360 2360 0 0.0
.text 1257632 1257760 128 0.0
qpg lighting-app qpg6105+debug (read only) 567276 567324 48 0.0
(read/write) 146940 146940 0 0.0
.bss 89688 89688 0 0.0
.data 1064 1064 0 0.0
.text 561956 562004 48 0.0
lock-app qpg6105+debug (read only) 515744 515800 56 0.0
(read/write) 146936 146936 0 0.0
.bss 88256 88256 0 0.0
.data 988 988 0 0.0
.text 510424 510480 56 0.0
persistent-storage-app qpg6105+debug (read only) 107140 107140 0 0.0
(read/write) 146940 146940 0 0.0
.bss 38504 38504 0 0.0
.data 288 288 0 0.0
.text 101820 101820 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 841498 841582 84 0.0
bss 87492 87492 0 0.0
noinit 37160 37160 0 0.0
text 588142 588206 64 0.0

@github-actions
Copy link

github-actions bot commented Jan 22, 2022

PR #13813: Size comparison from 7cb2640 to 971a76c

Increases (27 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 7cb2640 971a76c change % change
cyw30739 light cyw930739m2evb_01 (read/write) 574218 574302 84 0.0
.app_xip_area 479232 479316 84 0.0
efr32 lighting-app BRD4161A (read only) 835532 835660 128 0.0
.text 835524 835652 128 0.0
BRD4161A+rpc (read only) 822928 823064 136 0.0
.text 822920 823056 136 0.0
window-app BRD4161A (read only) 806084 806204 120 0.0
.text 806076 806196 120 0.0
esp32 all-clusters-app c3devkit (read only) 917964 918042 78 0.0
(read/write) 1383386 1383402 16 0.0
.flash.rodata 179312 179328 16 0.0
.flash.text 917964 918042 78 0.0
m5stack (read only) 966499 966551 52 0.0
(read/write) 449796 449820 24 0.0
.flash.rodata 208468 208492 24 0.0
.flash.text 961115 961167 52 0.0
k32w light k32w061+release (read/write) 660376 660460 84 0.0
.text 576100 576184 84 0.0
lock k32w061+release (read/write) 661132 661216 84 0.0
.text 576596 576680 84 0.0
linux chip-tool-ipv6only arm64 (read only) 8498868 8499684 816 0.0
.rodata 435852 435868 16 0.0
.text 7225876 7226676 800 0.0
thermostat-no-ble arm64 (read only) 2050364 2051180 816 0.0
.rodata 130684 130700 16 0.0
.text 1705184 1705984 800 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2351464 2351544 80 0.0
.text 1314040 1314120 80 0.0
lighting-app CY8CPROTO_062_4343W+release (read/write) 2334080 2334232 152 0.0
.text 1296680 1296832 152 0.0
lock-app CY8CPROTO_062_4343W+release (read/write) 2304496 2304584 88 0.0
.text 1267096 1267184 88 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 942699 942783 84 0.0
rodata 108896 108916 20 0.0
text 637156 637220 64 0.0
nrf52840dk_nrf52840+rpc (read/write) 928167 928267 100 0.0
rodata 101348 101368 20 0.0
text 632548 632616 68 0.0
nrf52840dongle_nrf52840 (read/write) 993343 993431 88 0.0
rodata 113648 113672 24 0.0
text 669352 669420 68 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 852526 852610 84 0.0
rodata 102072 102092 20 0.0
text 554080 554140 60 0.0
lock-app nrf52840dk_nrf52840 (read/write) 912043 912127 84 0.0
rodata 103864 103884 20 0.0
text 612592 612664 72 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 822114 822198 84 0.0
rodata 97092 97112 20 0.0
text 529552 529620 68 0.0
pump-app nrf52840dk_nrf52840 (read/write) 914899 915003 104 0.0
rodata 104224 104248 24 0.0
text 615240 615312 72 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 910087 910187 100 0.0
rodata 103380 103400 20 0.0
text 611268 611336 68 0.0
p6 all-clusters-app default (read/write) 2409408 2409528 120 0.0
.text 1367672 1367792 120 0.0
light-app default (read/write) 2330360 2330496 136 0.0
.text 1288624 1288760 136 0.0
lock-app default (read/write) 2299368 2299496 128 0.0
.text 1257632 1257760 128 0.0
qpg lighting-app qpg6105+debug (read only) 567276 567324 48 0.0
.text 561956 562004 48 0.0
lock-app qpg6105+debug (read only) 515744 515800 56 0.0
.text 510424 510480 56 0.0
telink lighting-app tlsr9518adk80d (read/write) 841498 841582 84 0.0
text 588142 588206 64 0.0
Full report (33 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 7cb2640 971a76c change % change
cyw30739 light cyw930739m2evb_01 (read/write) 574218 574302 84 0.0
.app_xip_area 479232 479316 84 0.0
.bss 77724 77724 0 0.0
.data 604 604 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
efr32 lighting-app BRD4161A (read only) 835532 835660 128 0.0
(read/write) 127244 127244 0 0.0
.bss 125344 125344 0 0.0
.data 1900 1900 0 0.0
.text 835524 835652 128 0.0
BRD4161A+rpc (read only) 822928 823064 136 0.0
(read/write) 143904 143904 0 0.0
.bss 141904 141904 0 0.0
.data 2000 2000 0 0.0
.text 822920 823056 136 0.0
window-app BRD4161A (read only) 806084 806204 120 0.0
(read/write) 125812 125812 0 0.0
.bss 123960 123960 0 0.0
.data 1852 1852 0 0.0
.text 806076 806196 120 0.0
esp32 all-clusters-app c3devkit (read only) 917964 918042 78 0.0
(read/write) 1383386 1383402 16 0.0
.dram0.bss 70704 70704 0 0.0
.dram0.data 14252 14252 0 0.0
.flash.rodata 179312 179328 16 0.0
.flash.text 917964 918042 78 0.0
.iram0.text 62056 62056 0 0.0
m5stack (read only) 966499 966551 52 0.0
(read/write) 449796 449820 24 0.0
.dram0.bss 75168 75168 0 0.0
.dram0.data 34032 34032 0 0.0
.flash.rodata 208468 208492 24 0.0
.flash.text 961115 961167 52 0.0
.iram0.text 123399 123399 0 0.0
k32w light k32w061+release (read/write) 660376 660460 84 0.0
.bss 76608 76608 0 0.0
.data 1868 1868 0 0.0
.text 576100 576184 84 0.0
lock k32w061+release (read/write) 661132 661216 84 0.0
.bss 76848 76848 0 0.0
.data 1888 1888 0 0.0
.text 576596 576680 84 0.0
linux chip-tool-ipv6only arm64 (read only) 8498868 8499684 816 0.0
(read/write) 390241 390241 0 0.0
.bss 56049 56049 0 0.0
.data 1128 1128 0 0.0
.data.rel.ro 260512 260512 0 0.0
.dynamic 560 560 0 0.0
.got 68800 68800 0 0.0
.init 24 24 0 0.0
.init_array 200 200 0 0.0
.rodata 435852 435868 16 0.0
.text 7225876 7226676 800 0.0
thermostat-no-ble arm64 (read only) 2050364 2051180 816 0.0
(read/write) 145697 145697 0 0.0
.bss 64785 64785 0 0.0
.data 904 904 0 0.0
.data.rel.ro 72984 72984 0 0.0
.dynamic 560 560 0 0.0
.got 4064 4064 0 0.0
.init 24 24 0 0.0
.init_array 320 320 0 0.0
.rodata 130684 130700 16 0.0
.text 1705184 1705984 800 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2351464 2351544 80 0.0
.bss 189412 189412 0 0.0
.data 5304 5304 0 0.0
.text 1314040 1314120 80 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2334080 2334232 152 0.0
.bss 180960 180960 0 0.0
.data 5584 5584 0 0.0
.text 1296680 1296832 152 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2304496 2304584 88 0.0
.bss 179960 179960 0 0.0
.data 5560 5560 0 0.0
.text 1267096 1267184 88 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1139712 1139712 0 0.0
.bss 11756 11756 0 0.0
.data 4368 4368 0 0.0
.text 103096 103096 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2054256 2054256 0 0.0
.bss 156876 156876 0 0.0
.data 4864 4864 0 0.0
.text 1016856 1016856 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 942699 942783 84 0.0
bss 119044 119044 0 0.0
rodata 108896 108916 20 0.0
text 637156 637220 64 0.0
nrf52840dk_nrf52840+rpc (read/write) 928167 928267 100 0.0
bss 116088 116088 0 0.0
rodata 101348 101368 20 0.0
text 632548 632616 68 0.0
nrf52840dongle_nrf52840 (read/write) 993343 993431 88 0.0
bss 121884 121884 0 0.0
rodata 113648 113672 24 0.0
text 669352 669420 68 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 852526 852610 84 0.0
bss 115828 115828 0 0.0
rodata 102072 102092 20 0.0
text 554080 554140 60 0.0
lock-app nrf52840dk_nrf52840 (read/write) 912043 912127 84 0.0
bss 118196 118196 0 0.0
rodata 103864 103884 20 0.0
text 612592 612664 72 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 822114 822198 84 0.0
bss 115016 115016 0 0.0
rodata 97092 97112 20 0.0
text 529552 529620 68 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 541835 541835 0 0.0
bss 52588 52588 0 0.0
rodata 50104 50104 0 0.0
text 376940 376940 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 914899 915003 104 0.0
bss 117960 117960 0 0.0
rodata 104224 104248 24 0.0
text 615240 615312 72 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 910087 910187 100 0.0
bss 117984 117984 0 0.0
rodata 103380 103400 20 0.0
text 611268 611336 68 0.0
shell nrf52840dk_nrf52840 (read/write) 798527 798527 0 0.0
bss 109776 109776 0 0.0
rodata 78324 78324 0 0.0
text 533928 533928 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 711342 711342 0 0.0
bss 107664 107664 0 0.0
rodata 72624 72624 0 0.0
text 451608 451608 0 0.0
p6 all-clusters-app default (read/write) 2409408 2409528 120 0.0
.bss 117756 117756 0 0.0
.data 2584 2584 0 0.0
.text 1367672 1367792 120 0.0
light-app default (read/write) 2330360 2330496 136 0.0
.bss 105544 105544 0 0.0
.data 2408 2408 0 0.0
.text 1288624 1288760 136 0.0
lock-app default (read/write) 2299368 2299496 128 0.0
.bss 104392 104392 0 0.0
.data 2360 2360 0 0.0
.text 1257632 1257760 128 0.0
qpg lighting-app qpg6105+debug (read only) 567276 567324 48 0.0
(read/write) 146940 146940 0 0.0
.bss 89688 89688 0 0.0
.data 1064 1064 0 0.0
.text 561956 562004 48 0.0
lock-app qpg6105+debug (read only) 515744 515800 56 0.0
(read/write) 146936 146936 0 0.0
.bss 88256 88256 0 0.0
.data 988 988 0 0.0
.text 510424 510480 56 0.0
persistent-storage-app qpg6105+debug (read only) 107140 107140 0 0.0
(read/write) 146940 146940 0 0.0
.bss 38504 38504 0 0.0
.data 288 288 0 0.0
.text 101820 101820 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 841498 841582 84 0.0
bss 87492 87492 0 0.0
noinit 37160 37160 0 0.0
text 588142 588206 64 0.0

bzbarsky-apple and others added 2 commits January 21, 2022 20:02
…connections.

Right now it's possible for a device to both be advertising over
dns-sd with CM=1 and not be accepting PASE connections.  Which makes
the CM=1 not exactly true.

Summary of changes:

1. Change DnssdServer to clearly differentiate between "Start with
default commissioning mode behavior based on whether we have
operational credentials" and "Start with commissioning mode disabled",
instead of treating the two as synonyms.  I audited all callsites that
explicitly passed kDisabled to StartServer() instead of no args, and
they all seem to want to actually disable commissioning mode.

2. Change CommissioningWindowManager to start/stop DNS-SD
commissioning advertising in the same codepaths as BLE advertising.
This means we stop advertising with CM=1 or CM=2 when we stop
accepting PASE connections, and start doing it again when we start
accepting PASE connections again (e.g. if commissioning fails).
Co-authored-by: chrisdecenzo <[email protected]>
@github-actions
Copy link

github-actions bot commented Jan 22, 2022

PR #13813: Size comparison from beaa480 to c0fdbfe

Increases (27 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section beaa480 c0fdbfe change % change
cyw30739 light cyw930739m2evb_01 (read/write) 574218 574302 84 0.0
.app_xip_area 479232 479316 84 0.0
efr32 lighting-app BRD4161A (read only) 835532 835660 128 0.0
.text 835524 835652 128 0.0
BRD4161A+rpc (read only) 822928 823064 136 0.0
.text 822920 823056 136 0.0
window-app BRD4161A (read only) 806084 806204 120 0.0
.text 806076 806196 120 0.0
esp32 all-clusters-app c3devkit (read only) 917964 918042 78 0.0
(read/write) 1383386 1383402 16 0.0
.flash.rodata 179312 179328 16 0.0
.flash.text 917964 918042 78 0.0
m5stack (read only) 966499 966551 52 0.0
(read/write) 449796 449820 24 0.0
.flash.rodata 208468 208492 24 0.0
.flash.text 961115 961167 52 0.0
k32w light k32w061+release (read/write) 660376 660460 84 0.0
.text 576100 576184 84 0.0
lock k32w061+release (read/write) 661132 661216 84 0.0
.text 576596 576680 84 0.0
linux chip-tool-ipv6only arm64 (read only) 8514852 8515684 832 0.0
.rodata 436444 436460 16 0.0
.text 7239972 7240788 816 0.0
thermostat-no-ble arm64 (read only) 2050364 2051180 816 0.0
.rodata 130684 130700 16 0.0
.text 1705184 1705984 800 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read/write) 2351464 2351544 80 0.0
.text 1314040 1314120 80 0.0
lighting-app CY8CPROTO_062_4343W+release (read/write) 2334080 2334232 152 0.0
.text 1296680 1296832 152 0.0
lock-app CY8CPROTO_062_4343W+release (read/write) 2304496 2304584 88 0.0
.text 1267096 1267184 88 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 942699 942783 84 0.0
rodata 108896 108916 20 0.0
text 637156 637220 64 0.0
nrf52840dk_nrf52840+rpc (read/write) 928167 928267 100 0.0
rodata 101348 101368 20 0.0
text 632548 632616 68 0.0
nrf52840dongle_nrf52840 (read/write) 993343 993431 88 0.0
rodata 113648 113672 24 0.0
text 669352 669420 68 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 852526 852610 84 0.0
rodata 102072 102092 20 0.0
text 554080 554140 60 0.0
lock-app nrf52840dk_nrf52840 (read/write) 912043 912127 84 0.0
rodata 103864 103884 20 0.0
text 612592 612664 72 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 822114 822198 84 0.0
rodata 97092 97112 20 0.0
text 529552 529620 68 0.0
pump-app nrf52840dk_nrf52840 (read/write) 914899 915003 104 0.0
rodata 104224 104248 24 0.0
text 615240 615312 72 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 910087 910187 100 0.0
rodata 103380 103400 20 0.0
text 611268 611336 68 0.0
p6 all-clusters-app default (read/write) 2409408 2409528 120 0.0
.text 1367672 1367792 120 0.0
light-app default (read/write) 2330360 2330496 136 0.0
.text 1288624 1288760 136 0.0
lock-app default (read/write) 2299368 2299496 128 0.0
.text 1257632 1257760 128 0.0
qpg lighting-app qpg6105+debug (read only) 567276 567324 48 0.0
.text 561956 562004 48 0.0
lock-app qpg6105+debug (read only) 515744 515800 56 0.0
.text 510424 510480 56 0.0
telink lighting-app tlsr9518adk80d (read/write) 841498 841582 84 0.0
text 588142 588206 64 0.0
Full report (33 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section beaa480 c0fdbfe change % change
cyw30739 light cyw930739m2evb_01 (read/write) 574218 574302 84 0.0
.app_xip_area 479232 479316 84 0.0
.bss 77724 77724 0 0.0
.data 604 604 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
efr32 lighting-app BRD4161A (read only) 835532 835660 128 0.0
(read/write) 127244 127244 0 0.0
.bss 125344 125344 0 0.0
.data 1900 1900 0 0.0
.text 835524 835652 128 0.0
BRD4161A+rpc (read only) 822928 823064 136 0.0
(read/write) 143904 143904 0 0.0
.bss 141904 141904 0 0.0
.data 2000 2000 0 0.0
.text 822920 823056 136 0.0
window-app BRD4161A (read only) 806084 806204 120 0.0
(read/write) 125812 125812 0 0.0
.bss 123960 123960 0 0.0
.data 1852 1852 0 0.0
.text 806076 806196 120 0.0
esp32 all-clusters-app c3devkit (read only) 917964 918042 78 0.0
(read/write) 1383386 1383402 16 0.0
.dram0.bss 70704 70704 0 0.0
.dram0.data 14252 14252 0 0.0
.flash.rodata 179312 179328 16 0.0
.flash.text 917964 918042 78 0.0
.iram0.text 62056 62056 0 0.0
m5stack (read only) 966499 966551 52 0.0
(read/write) 449796 449820 24 0.0
.dram0.bss 75168 75168 0 0.0
.dram0.data 34032 34032 0 0.0
.flash.rodata 208468 208492 24 0.0
.flash.text 961115 961167 52 0.0
.iram0.text 123399 123399 0 0.0
k32w light k32w061+release (read/write) 660376 660460 84 0.0
.bss 76608 76608 0 0.0
.data 1868 1868 0 0.0
.text 576100 576184 84 0.0
lock k32w061+release (read/write) 661132 661216 84 0.0
.bss 76848 76848 0 0.0
.data 1888 1888 0 0.0
.text 576596 576680 84 0.0
linux chip-tool-ipv6only arm64 (read only) 8514852 8515684 832 0.0
(read/write) 390753 390753 0 0.0
.bss 56049 56049 0 0.0
.data 1128 1128 0 0.0
.data.rel.ro 260872 260872 0 0.0
.dynamic 560 560 0 0.0
.got 68952 68952 0 0.0
.init 24 24 0 0.0
.init_array 200 200 0 0.0
.rodata 436444 436460 16 0.0
.text 7239972 7240788 816 0.0
thermostat-no-ble arm64 (read only) 2050364 2051180 816 0.0
(read/write) 145697 145697 0 0.0
.bss 64785 64785 0 0.0
.data 904 904 0 0.0
.data.rel.ro 72984 72984 0 0.0
.dynamic 560 560 0 0.0
.got 4064 4064 0 0.0
.init 24 24 0 0.0
.init_array 320 320 0 0.0
.rodata 130684 130700 16 0.0
.text 1705184 1705984 800 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2351464 2351544 80 0.0
.bss 189412 189412 0 0.0
.data 5304 5304 0 0.0
.text 1314040 1314120 80 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2334080 2334232 152 0.0
.bss 180960 180960 0 0.0
.data 5584 5584 0 0.0
.text 1296680 1296832 152 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2304496 2304584 88 0.0
.bss 179960 179960 0 0.0
.data 5560 5560 0 0.0
.text 1267096 1267184 88 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1139712 1139712 0 0.0
.bss 11756 11756 0 0.0
.data 4368 4368 0 0.0
.text 103096 103096 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2054256 2054256 0 0.0
.bss 156876 156876 0 0.0
.data 4864 4864 0 0.0
.text 1016856 1016856 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 942699 942783 84 0.0
bss 119044 119044 0 0.0
rodata 108896 108916 20 0.0
text 637156 637220 64 0.0
nrf52840dk_nrf52840+rpc (read/write) 928167 928267 100 0.0
bss 116088 116088 0 0.0
rodata 101348 101368 20 0.0
text 632548 632616 68 0.0
nrf52840dongle_nrf52840 (read/write) 993343 993431 88 0.0
bss 121884 121884 0 0.0
rodata 113648 113672 24 0.0
text 669352 669420 68 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 852526 852610 84 0.0
bss 115828 115828 0 0.0
rodata 102072 102092 20 0.0
text 554080 554140 60 0.0
lock-app nrf52840dk_nrf52840 (read/write) 912043 912127 84 0.0
bss 118196 118196 0 0.0
rodata 103864 103884 20 0.0
text 612592 612664 72 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 822114 822198 84 0.0
bss 115016 115016 0 0.0
rodata 97092 97112 20 0.0
text 529552 529620 68 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 541835 541835 0 0.0
bss 52588 52588 0 0.0
rodata 50104 50104 0 0.0
text 376940 376940 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 914899 915003 104 0.0
bss 117960 117960 0 0.0
rodata 104224 104248 24 0.0
text 615240 615312 72 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 910087 910187 100 0.0
bss 117984 117984 0 0.0
rodata 103380 103400 20 0.0
text 611268 611336 68 0.0
shell nrf52840dk_nrf52840 (read/write) 798527 798527 0 0.0
bss 109776 109776 0 0.0
rodata 78324 78324 0 0.0
text 533928 533928 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 711342 711342 0 0.0
bss 107664 107664 0 0.0
rodata 72624 72624 0 0.0
text 451608 451608 0 0.0
p6 all-clusters-app default (read/write) 2409408 2409528 120 0.0
.bss 117756 117756 0 0.0
.data 2584 2584 0 0.0
.text 1367672 1367792 120 0.0
light-app default (read/write) 2330360 2330496 136 0.0
.bss 105544 105544 0 0.0
.data 2408 2408 0 0.0
.text 1288624 1288760 136 0.0
lock-app default (read/write) 2299368 2299496 128 0.0
.bss 104392 104392 0 0.0
.data 2360 2360 0 0.0
.text 1257632 1257760 128 0.0
qpg lighting-app qpg6105+debug (read only) 567276 567324 48 0.0
(read/write) 146940 146940 0 0.0
.bss 89688 89688 0 0.0
.data 1064 1064 0 0.0
.text 561956 562004 48 0.0
lock-app qpg6105+debug (read only) 515744 515800 56 0.0
(read/write) 146936 146936 0 0.0
.bss 88256 88256 0 0.0
.data 988 988 0 0.0
.text 510424 510480 56 0.0
persistent-storage-app qpg6105+debug (read only) 107140 107140 0 0.0
(read/write) 146940 146940 0 0.0
.bss 38504 38504 0 0.0
.data 288 288 0 0.0
.text 101820 101820 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 841498 841582 84 0.0
bss 87492 87492 0 0.0
noinit 37160 37160 0 0.0
text 588142 588206 64 0.0

@bzbarsky-apple bzbarsky-apple merged commit ed8d276 into project-chip:master Jan 22, 2022
@bzbarsky-apple bzbarsky-apple deleted the truth-in-advertising branch January 22, 2022 02:41
selissia pushed a commit to selissia/connectedhomeip that referenced this pull request Jan 28, 2022
…connections. (project-chip#13813)

* Make sure we don't advertise with CM=1 when we're not accepting PASE connections.

Right now it's possible for a device to both be advertising over
dns-sd with CM=1 and not be accepting PASE connections.  Which makes
the CM=1 not exactly true.

Summary of changes:

1. Change DnssdServer to clearly differentiate between "Start with
default commissioning mode behavior based on whether we have
operational credentials" and "Start with commissioning mode disabled",
instead of treating the two as synonyms.  I audited all callsites that
explicitly passed kDisabled to StartServer() instead of no args, and
they all seem to want to actually disable commissioning mode.

2. Change CommissioningWindowManager to start/stop DNS-SD
commissioning advertising in the same codepaths as BLE advertising.
This means we stop advertising with CM=1 or CM=2 when we stop
accepting PASE connections, and start doing it again when we start
accepting PASE connections again (e.g. if commissioning fails).

* Apply review suggestion.

Co-authored-by: chrisdecenzo <[email protected]>

Co-authored-by: chrisdecenzo <[email protected]>
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.

5 participants