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

Switch device type to use a uint32 #15918

Merged

Conversation

cecille
Copy link
Contributor

@cecille cecille commented Mar 7, 2022

Problem

Device type is uint32. We had it as uint16.

Change overview

Changes device type to uint32

Testing

  • unit tests changes for platform and minimal are included - changed to use DT > uint16
  • checked on mdns example app using minimal and platform

@github-actions
Copy link

github-actions bot commented Mar 7, 2022

PR #15918: Size comparison from dde4a8f to d06cc0d

Increases (12 builds for linux, nrfconnect)
platform target config section dde4a8f d06cc0d change % change
linux all-clusters-app debug (read only) 2426113 2426257 144 0.0
.text 2057538 2057682 144 0.0
bridge-app debug+rpc (read only) 1730853 1731093 240 0.0
.text 1473061 1473301 240 0.0
chip-tool debug (read only) 9748309 9748453 144 0.0
.text 8500085 8500229 144 0.0
chip-tool-ipv6only arm64 (read only) 9421588 9421732 144 0.0
.text 7933300 7933444 144 0.0
door-lock-app debug (read only) 1945209 1945449 240 0.0
.text 1622802 1623042 240 0.0
lighting-app debug+rpc (read only) 2077521 2077761 240 0.0
.text 1755954 1756194 240 0.0
ota-provider-app debug (read only) 1878065 1878305 240 0.0
.text 1568338 1568578 240 0.0
ota-requestor-app debug (read only) 1900129 1900353 224 0.0
.text 1595778 1596002 224 0.0
shell debug (read only) 2392897 2393025 128 0.0
.text 2030594 2030722 128 0.0
thermostat-no-ble arm64 (read only) 2174164 2174308 144 0.0
.text 1822592 1822736 144 0.0
tv-app debug (read only) 2617689 2617833 144 0.0
.text 2243922 2244066 144 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1151579 1151639 60 0.0
bss 146792 146872 80 0.1
Decreases (2 builds for nrfconnect, telink)
platform target config section dde4a8f d06cc0d change % change
nrfconnect all-clusters-app nrf52840dk_nrf52840 rodata 144276 144272 -4 -0.0
text 785316 785248 -68 -0.0
telink lighting-app tlsr9518adk80d (read/write) 888718 888710 -8 -0.0
text 628108 628098 -10 -0.0
Full report (13 builds for linux, nrfconnect, telink)
platform target config section dde4a8f d06cc0d change % change
linux all-clusters-app debug (read only) 2426113 2426257 144 0.0
(read/write) 145760 145760 0 0.0
.bss 60128 60128 0 0.0
.data 1392 1392 0 0.0
.data.rel.ro 78504 78504 0 0.0
.dynamic 592 592 0 0.0
.got 4176 4176 0 0.0
.init 27 27 0 0.0
.init_array 920 920 0 0.0
.rodata 205445 205445 0 0.0
.text 2057538 2057682 144 0.0
bridge-app debug+rpc (read only) 1730853 1731093 240 0.0
(read/write) 92720 92720 0 0.0
.bss 47432 47432 0 0.0
.data 2048 2048 0 0.0
.data.rel.ro 38144 38144 0 0.0
.dynamic 592 592 0 0.0
.got 3928 3928 0 0.0
.init 27 27 0 0.0
.init_array 544 544 0 0.0
.rodata 141652 141652 0 0.0
.text 1473061 1473301 240 0.0
chip-tool debug (read only) 9748309 9748453 144 0.0
(read/write) 338232 338232 0 0.0
.bss 25544 25544 0 0.0
.data 1152 1152 0 0.0
.data.rel.ro 305504 305504 0 0.0
.dynamic 608 608 0 0.0
.got 4776 4776 0 0.0
.init 27 27 0 0.0
.init_array 616 616 0 0.0
.rodata 509748 509748 0 0.0
.text 8500085 8500229 144 0.0
chip-tool-ipv6only arm64 (read only) 9421588 9421732 144 0.0
(read/write) 453761 453761 0 0.0
.bss 43841 43841 0 0.0
.data 1200 1200 0 0.0
.data.rel.ro 350648 350648 0 0.0
.dynamic 560 560 0 0.0
.got 54272 54272 0 0.0
.init 24 24 0 0.0
.init_array 192 192 0 0.0
.rodata 485580 485580 0 0.0
.text 7933300 7933444 144 0.0
door-lock-app debug (read only) 1945209 1945449 240 0.0
(read/write) 119136 119136 0 0.0
.bss 50432 50432 0 0.0
.data 1056 1056 0 0.0
.data.rel.ro 62264 62264 0 0.0
.dynamic 592 592 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 664 664 0 0.0
.rodata 173596 173596 0 0.0
.text 1622802 1623042 240 0.0
lighting-app debug+rpc (read only) 2077521 2077761 240 0.0
(read/write) 124536 124536 0 0.0
.bss 51296 51296 0 0.0
.data 1568 1568 0 0.0
.data.rel.ro 66184 66184 0 0.0
.dynamic 608 608 0 0.0
.got 4144 4144 0 0.0
.init 27 27 0 0.0
.init_array 720 720 0 0.0
.rodata 165788 165788 0 0.0
.text 1755954 1756194 240 0.0
ota-provider-app debug (read only) 1878065 1878305 240 0.0
(read/write) 114768 114768 0 0.0
.bss 50240 50240 0 0.0
.data 1352 1352 0 0.0
.data.rel.ro 57544 57544 0 0.0
.dynamic 608 608 0 0.0
.got 4368 4368 0 0.0
.init 27 27 0 0.0
.init_array 616 616 0 0.0
.rodata 158835 158835 0 0.0
.text 1568338 1568578 240 0.0
ota-requestor-app debug (read only) 1900129 1900353 224 0.0
(read/write) 117512 117512 0 0.0
.bss 51296 51296 0 0.0
.data 1512 1512 0 0.0
.data.rel.ro 59256 59256 0 0.0
.dynamic 592 592 0 0.0
.got 4160 4160 0 0.0
.init 27 27 0 0.0
.init_array 640 640 0 0.0
.rodata 154124 154124 0 0.0
.text 1595778 1596002 224 0.0
shell debug (read only) 2392897 2393025 128 0.0
(read/write) 149976 149976 0 0.0
.bss 70216 70216 0 0.0
.data 864 864 0 0.0
.data.rel.ro 73232 73232 0 0.0
.dynamic 592 592 0 0.0
.got 4160 4160 0 0.0
.init 27 27 0 0.0
.init_array 904 904 0 0.0
.rodata 205394 205394 0 0.0
.text 2030594 2030722 128 0.0
thermostat-no-ble arm64 (read only) 2174164 2174308 144 0.0
(read/write) 148609 148609 0 0.0
.bss 65201 65201 0 0.0
.data 1080 1080 0 0.0
.data.rel.ro 75136 75136 0 0.0
.dynamic 560 560 0 0.0
.got 4224 4224 0 0.0
.init 24 24 0 0.0
.init_array 352 352 0 0.0
.rodata 132948 132948 0 0.0
.text 1822592 1822736 144 0.0
tv-app debug (read only) 2617689 2617833 144 0.0
(read/write) 250872 250872 0 0.0
.bss 167936 167936 0 0.0
.data 3200 3200 0 0.0
.data.rel.ro 73704 73704 0 0.0
.dynamic 592 592 0 0.0
.got 4544 4544 0 0.0
.init 27 27 0 0.0
.init_array 880 880 0 0.0
.rodata 199485 199485 0 0.0
.text 2243922 2244066 144 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1151579 1151639 60 0.0
bss 146792 146872 80 0.1
rodata 144276 144272 -4 -0.0
text 785316 785248 -68 -0.0
telink lighting-app tlsr9518adk80d (read/write) 888718 888710 -8 -0.0
bss 86928 86928 0 0.0
noinit 37160 37160 0 0.0
text 628108 628098 -10 -0.0

@github-actions
Copy link

github-actions bot commented Mar 7, 2022

PR #15918: Size comparison from dde4a8f to ec39956

Increases (13 builds for esp32, linux, nrfconnect)
platform target config section dde4a8f ec39956 change % change
esp32 all-clusters-app m5stack (read/write) 460692 460700 8 0.0
.flash.rodata 225816 225824 8 0.0
linux all-clusters-app debug (read only) 2426113 2426257 144 0.0
.text 2057538 2057682 144 0.0
bridge-app debug+rpc (read only) 1730853 1731093 240 0.0
.text 1473061 1473301 240 0.0
chip-tool debug (read only) 9748309 9748453 144 0.0
.text 8500085 8500229 144 0.0
chip-tool-ipv6only arm64 (read only) 9421588 9421732 144 0.0
.text 7933300 7933444 144 0.0
door-lock-app debug (read only) 1945209 1945449 240 0.0
.text 1622802 1623042 240 0.0
lighting-app debug+rpc (read only) 2077521 2077761 240 0.0
.text 1755954 1756194 240 0.0
ota-provider-app debug (read only) 1878065 1878305 240 0.0
.text 1568338 1568578 240 0.0
ota-requestor-app debug (read only) 1900129 1900353 224 0.0
.text 1595778 1596002 224 0.0
shell debug (read only) 2392897 2393025 128 0.0
.text 2030594 2030722 128 0.0
thermostat-no-ble arm64 (read only) 2174164 2174308 144 0.0
.text 1822592 1822736 144 0.0
tv-app debug (read only) 2617689 2617833 144 0.0
.text 2243922 2244066 144 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1151579 1151639 60 0.0
bss 146792 146872 80 0.1
Decreases (4 builds for esp32, nrfconnect, telink)
platform target config section dde4a8f ec39956 change % change
esp32 all-clusters-app c3devkit (read only) 957332 957282 -50 -0.0
.flash.text 957332 957282 -50 -0.0
m5stack (read only) 1012175 1012015 -160 -0.0
.flash.text 1006791 1006631 -160 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 rodata 144276 144272 -4 -0.0
text 785316 785248 -68 -0.0
telink lighting-app tlsr9518adk80d (read/write) 888718 888710 -8 -0.0
text 628108 628098 -10 -0.0
Full report (15 builds for esp32, linux, nrfconnect, telink)
platform target config section dde4a8f ec39956 change % change
esp32 all-clusters-app c3devkit (read only) 957332 957282 -50 -0.0
(read/write) 1393586 1393586 0 0.0
.dram0.bss 63432 63432 0 0.0
.dram0.data 14236 14236 0 0.0
.flash.rodata 197000 197000 0 0.0
.flash.text 957332 957282 -50 -0.0
.iram0.text 62016 62016 0 0.0
m5stack (read only) 1012175 1012015 -160 -0.0
(read/write) 460692 460700 8 0.0
.dram0.bss 68960 68960 0 0.0
.dram0.data 34080 34080 0 0.0
.flash.rodata 225816 225824 8 0.0
.flash.text 1006791 1006631 -160 -0.0
.iram0.text 123107 123107 0 0.0
linux all-clusters-app debug (read only) 2426113 2426257 144 0.0
(read/write) 145760 145760 0 0.0
.bss 60128 60128 0 0.0
.data 1392 1392 0 0.0
.data.rel.ro 78504 78504 0 0.0
.dynamic 592 592 0 0.0
.got 4176 4176 0 0.0
.init 27 27 0 0.0
.init_array 920 920 0 0.0
.rodata 205445 205445 0 0.0
.text 2057538 2057682 144 0.0
bridge-app debug+rpc (read only) 1730853 1731093 240 0.0
(read/write) 92720 92720 0 0.0
.bss 47432 47432 0 0.0
.data 2048 2048 0 0.0
.data.rel.ro 38144 38144 0 0.0
.dynamic 592 592 0 0.0
.got 3928 3928 0 0.0
.init 27 27 0 0.0
.init_array 544 544 0 0.0
.rodata 141652 141652 0 0.0
.text 1473061 1473301 240 0.0
chip-tool debug (read only) 9748309 9748453 144 0.0
(read/write) 338232 338232 0 0.0
.bss 25544 25544 0 0.0
.data 1152 1152 0 0.0
.data.rel.ro 305504 305504 0 0.0
.dynamic 608 608 0 0.0
.got 4776 4776 0 0.0
.init 27 27 0 0.0
.init_array 616 616 0 0.0
.rodata 509748 509748 0 0.0
.text 8500085 8500229 144 0.0
chip-tool-ipv6only arm64 (read only) 9421588 9421732 144 0.0
(read/write) 453761 453761 0 0.0
.bss 43841 43841 0 0.0
.data 1200 1200 0 0.0
.data.rel.ro 350648 350648 0 0.0
.dynamic 560 560 0 0.0
.got 54272 54272 0 0.0
.init 24 24 0 0.0
.init_array 192 192 0 0.0
.rodata 485580 485580 0 0.0
.text 7933300 7933444 144 0.0
door-lock-app debug (read only) 1945209 1945449 240 0.0
(read/write) 119136 119136 0 0.0
.bss 50432 50432 0 0.0
.data 1056 1056 0 0.0
.data.rel.ro 62264 62264 0 0.0
.dynamic 592 592 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 664 664 0 0.0
.rodata 173596 173596 0 0.0
.text 1622802 1623042 240 0.0
lighting-app debug+rpc (read only) 2077521 2077761 240 0.0
(read/write) 124536 124536 0 0.0
.bss 51296 51296 0 0.0
.data 1568 1568 0 0.0
.data.rel.ro 66184 66184 0 0.0
.dynamic 608 608 0 0.0
.got 4144 4144 0 0.0
.init 27 27 0 0.0
.init_array 720 720 0 0.0
.rodata 165788 165788 0 0.0
.text 1755954 1756194 240 0.0
ota-provider-app debug (read only) 1878065 1878305 240 0.0
(read/write) 114768 114768 0 0.0
.bss 50240 50240 0 0.0
.data 1352 1352 0 0.0
.data.rel.ro 57544 57544 0 0.0
.dynamic 608 608 0 0.0
.got 4368 4368 0 0.0
.init 27 27 0 0.0
.init_array 616 616 0 0.0
.rodata 158835 158835 0 0.0
.text 1568338 1568578 240 0.0
ota-requestor-app debug (read only) 1900129 1900353 224 0.0
(read/write) 117512 117512 0 0.0
.bss 51296 51296 0 0.0
.data 1512 1512 0 0.0
.data.rel.ro 59256 59256 0 0.0
.dynamic 592 592 0 0.0
.got 4160 4160 0 0.0
.init 27 27 0 0.0
.init_array 640 640 0 0.0
.rodata 154124 154124 0 0.0
.text 1595778 1596002 224 0.0
shell debug (read only) 2392897 2393025 128 0.0
(read/write) 149976 149976 0 0.0
.bss 70216 70216 0 0.0
.data 864 864 0 0.0
.data.rel.ro 73232 73232 0 0.0
.dynamic 592 592 0 0.0
.got 4160 4160 0 0.0
.init 27 27 0 0.0
.init_array 904 904 0 0.0
.rodata 205394 205394 0 0.0
.text 2030594 2030722 128 0.0
thermostat-no-ble arm64 (read only) 2174164 2174308 144 0.0
(read/write) 148609 148609 0 0.0
.bss 65201 65201 0 0.0
.data 1080 1080 0 0.0
.data.rel.ro 75136 75136 0 0.0
.dynamic 560 560 0 0.0
.got 4224 4224 0 0.0
.init 24 24 0 0.0
.init_array 352 352 0 0.0
.rodata 132948 132948 0 0.0
.text 1822592 1822736 144 0.0
tv-app debug (read only) 2617689 2617833 144 0.0
(read/write) 250872 250872 0 0.0
.bss 167936 167936 0 0.0
.data 3200 3200 0 0.0
.data.rel.ro 73704 73704 0 0.0
.dynamic 592 592 0 0.0
.got 4544 4544 0 0.0
.init 27 27 0 0.0
.init_array 880 880 0 0.0
.rodata 199485 199485 0 0.0
.text 2243922 2244066 144 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1151579 1151639 60 0.0
bss 146792 146872 80 0.1
rodata 144276 144272 -4 -0.0
text 785316 785248 -68 -0.0
telink lighting-app tlsr9518adk80d (read/write) 888718 888710 -8 -0.0
bss 86928 86928 0 0.0
noinit 37160 37160 0 0.0
text 628108 628098 -10 -0.0

@cecille cecille force-pushed the fix_size_on_DT_field_in_TXT_record branch from ec39956 to e29aa96 Compare March 7, 2022 20:36
@mlepage-google
Copy link
Contributor

DataModelTypes.h has
typedef uint32_t DeviceTypeId;
if that helps.

@github-actions
Copy link

github-actions bot commented Mar 8, 2022

PR #15918: Size comparison from 2822511 to 7d1bd5a

Increases (20 builds for cyw30739, efr32, k32w, linux, nrfconnect)
platform target config section 2822511 7d1bd5a change % change
cyw30739 light cyw930739m2evb_01 .bss 78140 78212 72 0.1
lock cyw930739m2evb_01 .bss 76644 76716 72 0.1
ota-requestor cyw930739m2evb_01 .bss 85972 86044 72 0.1
efr32 lighting-app BRD4161A (read only) 920868 920900 32 0.0
(read/write) 128848 128928 80 0.1
.bss 126768 126848 80 0.1
.text 920860 920892 32 0.0
BRD4161A+rpc (read only) 949688 949736 48 0.0
(read/write) 144808 144888 80 0.1
.bss 142544 142624 80 0.1
.text 949680 949728 48 0.0
window-app BRD4161A (read only) 853888 853936 48 0.0
(read/write) 126840 126920 80 0.1
.bss 124912 124992 80 0.1
.text 853880 853928 48 0.0
k32w light k32w061+release .bss 77704 77768 64 0.1
lock k32w061+release .bss 77672 77736 64 0.1
linux all-clusters-app debug (read only) 2426809 2426953 144 0.0
.text 2058434 2058578 144 0.0
bridge-app debug+rpc (read only) 1731837 1732061 224 0.0
.text 1474213 1474437 224 0.0
chip-tool debug (read only) 9758533 9758661 128 0.0
.text 8508373 8508501 128 0.0
chip-tool-ipv6only arm64 (read only) 9430548 9430676 128 0.0
.text 7940244 7940372 128 0.0
door-lock-app debug (read only) 1946161 1946385 224 0.0
.text 1623954 1624178 224 0.0
lighting-app debug+rpc (read only) 2078233 2078457 224 0.0
.text 1756866 1757090 224 0.0
ota-provider-app debug (read only) 1879017 1879241 224 0.0
.text 1569490 1569714 224 0.0
ota-requestor-app debug (read only) 1901001 1901241 240 0.0
.text 1596850 1597090 240 0.0
shell debug (read only) 2392969 2393097 128 0.0
.text 2031058 2031186 128 0.0
thermostat-no-ble arm64 (read only) 2174612 2174756 144 0.0
.text 1823312 1823456 144 0.0
tv-app debug (read only) 2617097 2617241 144 0.0
.text 2243746 2243890 144 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1151827 1151891 64 0.0
bss 146792 146872 80 0.1
Decreases (12 builds for cyw30739, esp32, k32w, nrfconnect, p6, telink)
platform target config section 2822511 7d1bd5a change % change
cyw30739 light cyw930739m2evb_01 (read/write) 601810 601794 -16 -0.0
.app_xip_area 506352 506264 -88 -0.0
lock cyw930739m2evb_01 (read/write) 559722 559706 -16 -0.0
.app_xip_area 465800 465712 -88 -0.0
ota-requestor cyw930739m2evb_01 (read/write) 581918 581902 -16 -0.0
.app_xip_area 478316 478228 -88 -0.0
esp32 all-clusters-app c3devkit (read only) 957506 957456 -50 -0.0
.flash.text 957506 957456 -50 -0.0
m5stack (read only) 1012267 1012087 -180 -0.0
.flash.text 1006883 1006703 -180 -0.0
k32w light k32w061+release (read/write) 694852 694836 -16 -0.0
.text 609384 609304 -80 -0.0
lock k32w061+release (read/write) 696456 696424 -32 -0.0
.text 611012 610916 -96 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 text 785544 785476 -68 -0.0
p6 all-clusters-app default (read/write) 2494064 2494032 -32 -0.0
.text 1452328 1452296 -32 -0.0
light-app default (read/write) 2397504 2397488 -16 -0.0
.text 1355768 1355752 -16 -0.0
lock-app default (read/write) 2360936 2360904 -32 -0.0
.text 1319200 1319168 -32 -0.0
telink lighting-app tlsr9518adk80d (read/write) 888986 888978 -8 -0.0
text 628350 628340 -10 -0.0
Full report (26 builds for cyw30739, efr32, esp32, k32w, linux, nrfconnect, p6, telink)
platform target config section 2822511 7d1bd5a change % change
cyw30739 light cyw930739m2evb_01 (read/write) 601810 601794 -16 -0.0
.app_xip_area 506352 506264 -88 -0.0
.bss 78140 78212 72 0.1
.data 660 660 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
lock cyw930739m2evb_01 (read/write) 559722 559706 -16 -0.0
.app_xip_area 465800 465712 -88 -0.0
.bss 76644 76716 72 0.1
.data 624 624 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
ota-requestor cyw930739m2evb_01 (read/write) 581918 581902 -16 -0.0
.app_xip_area 478316 478228 -88 -0.0
.bss 85972 86044 72 0.1
.data 592 592 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read only) 920868 920900 32 0.0
(read/write) 128848 128928 80 0.1
.bss 126768 126848 80 0.1
.data 2080 2080 0 0.0
.text 920860 920892 32 0.0
BRD4161A+rpc (read only) 949688 949736 48 0.0
(read/write) 144808 144888 80 0.1
.bss 142544 142624 80 0.1
.data 2260 2260 0 0.0
.text 949680 949728 48 0.0
window-app BRD4161A (read only) 853888 853936 48 0.0
(read/write) 126840 126920 80 0.1
.bss 124912 124992 80 0.1
.data 1924 1924 0 0.0
.text 853880 853928 48 0.0
esp32 all-clusters-app c3devkit (read only) 957506 957456 -50 -0.0
(read/write) 1393618 1393618 0 0.0
.dram0.bss 63432 63432 0 0.0
.dram0.data 14236 14236 0 0.0
.flash.rodata 197032 197032 0 0.0
.flash.text 957506 957456 -50 -0.0
.iram0.text 62016 62016 0 0.0
m5stack (read only) 1012267 1012087 -180 -0.0
(read/write) 460724 460724 0 0.0
.dram0.bss 68960 68960 0 0.0
.dram0.data 34080 34080 0 0.0
.flash.rodata 225848 225848 0 0.0
.flash.text 1006883 1006703 -180 -0.0
.iram0.text 123107 123107 0 0.0
k32w light k32w061+release (read/write) 694852 694836 -16 -0.0
.bss 77704 77768 64 0.1
.data 1964 1964 0 0.0
.text 609384 609304 -80 -0.0
lock k32w061+release (read/write) 696456 696424 -32 -0.0
.bss 77672 77736 64 0.1
.data 1972 1972 0 0.0
.text 611012 610916 -96 -0.0
linux all-clusters-app debug (read only) 2426809 2426953 144 0.0
(read/write) 145600 145600 0 0.0
.bss 60128 60128 0 0.0
.data 1392 1392 0 0.0
.data.rel.ro 78360 78360 0 0.0
.dynamic 592 592 0 0.0
.got 4176 4176 0 0.0
.init 27 27 0 0.0
.init_array 920 920 0 0.0
.rodata 205509 205509 0 0.0
.text 2058434 2058578 144 0.0
bridge-app debug+rpc (read only) 1731837 1732061 224 0.0
(read/write) 92560 92560 0 0.0
.bss 47432 47432 0 0.0
.data 2048 2048 0 0.0
.data.rel.ro 38008 38008 0 0.0
.dynamic 592 592 0 0.0
.got 3928 3928 0 0.0
.init 27 27 0 0.0
.init_array 544 544 0 0.0
.rodata 141748 141748 0 0.0
.text 1474213 1474437 224 0.0
chip-tool debug (read only) 9758533 9758661 128 0.0
(read/write) 338488 338488 0 0.0
.bss 25512 25512 0 0.0
.data 1152 1152 0 0.0
.data.rel.ro 305816 305816 0 0.0
.dynamic 608 608 0 0.0
.got 4776 4776 0 0.0
.init 27 27 0 0.0
.init_array 616 616 0 0.0
.rodata 510868 510868 0 0.0
.text 8508373 8508501 128 0.0
chip-tool-ipv6only arm64 (read only) 9430548 9430676 128 0.0
(read/write) 454177 454177 0 0.0
.bss 43825 43825 0 0.0
.data 1200 1200 0 0.0
.data.rel.ro 351000 351000 0 0.0
.dynamic 560 560 0 0.0
.got 54360 54360 0 0.0
.init 24 24 0 0.0
.init_array 192 192 0 0.0
.rodata 486556 486556 0 0.0
.text 7940244 7940372 128 0.0
door-lock-app debug (read only) 1946161 1946385 224 0.0
(read/write) 119008 119008 0 0.0
.bss 50432 50432 0 0.0
.data 1056 1056 0 0.0
.data.rel.ro 62136 62136 0 0.0
.dynamic 592 592 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 664 664 0 0.0
.rodata 173660 173660 0 0.0
.text 1623954 1624178 224 0.0
lighting-app debug+rpc (read only) 2078233 2078457 224 0.0
(read/write) 124376 124376 0 0.0
.bss 51264 51264 0 0.0
.data 1568 1568 0 0.0
.data.rel.ro 66040 66040 0 0.0
.dynamic 608 608 0 0.0
.got 4144 4144 0 0.0
.init 27 27 0 0.0
.init_array 720 720 0 0.0
.rodata 165852 165852 0 0.0
.text 1756866 1757090 224 0.0
ota-provider-app debug (read only) 1879017 1879241 224 0.0
(read/write) 114640 114640 0 0.0
.bss 50240 50240 0 0.0
.data 1352 1352 0 0.0
.data.rel.ro 57416 57416 0 0.0
.dynamic 608 608 0 0.0
.got 4368 4368 0 0.0
.init 27 27 0 0.0
.init_array 616 616 0 0.0
.rodata 158899 158899 0 0.0
.text 1569490 1569714 224 0.0
ota-requestor-app debug (read only) 1901001 1901241 240 0.0
(read/write) 117352 117352 0 0.0
.bss 51296 51296 0 0.0
.data 1512 1512 0 0.0
.data.rel.ro 59112 59112 0 0.0
.dynamic 592 592 0 0.0
.got 4160 4160 0 0.0
.init 27 27 0 0.0
.init_array 640 640 0 0.0
.rodata 154188 154188 0 0.0
.text 1596850 1597090 240 0.0
shell debug (read only) 2392969 2393097 128 0.0
(read/write) 149752 149752 0 0.0
.bss 70216 70216 0 0.0
.data 864 864 0 0.0
.data.rel.ro 73008 73008 0 0.0
.dynamic 592 592 0 0.0
.got 4160 4160 0 0.0
.init 27 27 0 0.0
.init_array 904 904 0 0.0
.rodata 205458 205458 0 0.0
.text 2031058 2031186 128 0.0
thermostat-no-ble arm64 (read only) 2174612 2174756 144 0.0
(read/write) 148465 148465 0 0.0
.bss 65201 65201 0 0.0
.data 1080 1080 0 0.0
.data.rel.ro 75000 75000 0 0.0
.dynamic 560 560 0 0.0
.got 4216 4216 0 0.0
.init 24 24 0 0.0
.init_array 352 352 0 0.0
.rodata 133012 133012 0 0.0
.text 1823312 1823456 144 0.0
tv-app debug (read only) 2617097 2617241 144 0.0
(read/write) 250648 250648 0 0.0
.bss 167904 167904 0 0.0
.data 3200 3200 0 0.0
.data.rel.ro 73504 73504 0 0.0
.dynamic 592 592 0 0.0
.got 4544 4544 0 0.0
.init 27 27 0 0.0
.init_array 880 880 0 0.0
.rodata 199453 199453 0 0.0
.text 2243746 2243890 144 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1151827 1151891 64 0.0
bss 146792 146872 80 0.1
rodata 144300 144300 0 0.0
text 785544 785476 -68 -0.0
p6 all-clusters-app default (read/write) 2494064 2494032 -32 -0.0
.bss 119504 119504 0 0.0
.data 2696 2696 0 0.0
.text 1452328 1452296 -32 -0.0
light-app default (read/write) 2397504 2397488 -16 -0.0
.bss 112976 112976 0 0.0
.data 2544 2544 0 0.0
.text 1355768 1355752 -16 -0.0
lock-app default (read/write) 2360936 2360904 -32 -0.0
.bss 112720 112720 0 0.0
.data 2504 2504 0 0.0
.text 1319200 1319168 -32 -0.0
telink lighting-app tlsr9518adk80d (read/write) 888986 888978 -8 -0.0
bss 86928 86928 0 0.0
noinit 37160 37160 0 0.0
text 628350 628340 -10 -0.0

@cecille
Copy link
Contributor Author

cecille commented Mar 8, 2022

The remainder of the types in the mdns don't use that (wasn't around when it was written). I'd like to eventually centralize all the mdns stuff, but do it at once. Perhaps as a cleanup post 1.0.

@github-actions
Copy link

github-actions bot commented Mar 10, 2022

PR #15918: Size comparison from 1c74a21 to d2bb97f

Increases (10 builds for cyw30739, efr32, k32w, linux)
platform target config section 1c74a21 d2bb97f change % change
cyw30739 light cyw930739m2evb_01 .bss 75108 75180 72 0.1
lock cyw930739m2evb_01 .bss 73612 73684 72 0.1
ota-requestor cyw930739m2evb_01 .bss 82980 83052 72 0.1
efr32 lighting-app BRD4161A (read only) 919808 919856 48 0.0
(read/write) 128256 128336 80 0.1
.bss 126216 126296 80 0.1
.text 919800 919848 48 0.0
BRD4161A+rpc (read only) 948620 948668 48 0.0
(read/write) 144212 144292 80 0.1
.bss 141992 142072 80 0.1
.text 948612 948660 48 0.0
window-app BRD4161A (read only) 852364 852412 48 0.0
(read/write) 126220 126300 80 0.1
.bss 124304 124384 80 0.1
.text 852356 852404 48 0.0
k32w light k32w061+release .bss 77152 77216 64 0.1
lock k32w061+release .bss 77072 77136 64 0.1
linux chip-tool-ipv6only arm64 (read only) 9728988 9729116 128 0.0
.text 8185732 8185860 128 0.0
thermostat-no-ble arm64 (read only) 2178892 2179036 144 0.0
.text 1827184 1827328 144 0.0
Decreases (12 builds for cyw30739, esp32, k32w, mbed, p6, telink)
platform target config section 1c74a21 d2bb97f change % change
cyw30739 light cyw930739m2evb_01 (read/write) 598102 598086 -16 -0.0
.app_xip_area 505684 505596 -88 -0.0
lock cyw930739m2evb_01 (read/write) 555970 555962 -8 -0.0
.app_xip_area 465088 465008 -80 -0.0
ota-requestor cyw930739m2evb_01 (read/write) 565978 565966 -12 -0.0
.app_xip_area 465408 465324 -84 -0.0
esp32 all-clusters-app c3devkit (read only) 957766 957716 -50 -0.0
.flash.text 957766 957716 -50 -0.0
m5stack (read only) 1012875 1012699 -176 -0.0
.flash.text 1007491 1007315 -176 -0.0
k32w light k32w061+release (read/write) 694464 694432 -32 -0.0
.text 609588 609492 -96 -0.0
lock k32w061+release (read/write) 695324 695308 -16 -0.0
.text 610488 610408 -80 -0.0
mbed lock-app CY8CPROTO_062_4343W+release (read/write) 2351484 2351428 -56 -0.0
.text 1314084 1314028 -56 -0.0
p6 all-clusters-app default (read/write) 2494296 2494280 -16 -0.0
.text 1452560 1452544 -16 -0.0
light-app default (read/write) 2398312 2398296 -16 -0.0
.text 1356576 1356560 -16 -0.0
lock-app default (read/write) 2361856 2361840 -16 -0.0
.text 1320120 1320104 -16 -0.0
telink lighting-app tlsr9518adk80d (read/write) 888878 888870 -8 -0.0
text 628158 628148 -10 -0.0
Full report (17 builds for cyw30739, efr32, esp32, k32w, linux, mbed, p6, telink)
platform target config section 1c74a21 d2bb97f change % change
cyw30739 light cyw930739m2evb_01 (read/write) 598102 598086 -16 -0.0
.app_xip_area 505684 505596 -88 -0.0
.bss 75108 75180 72 0.1
.data 652 652 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
lock cyw930739m2evb_01 (read/write) 555970 555962 -8 -0.0
.app_xip_area 465088 465008 -80 -0.0
.bss 73612 73684 72 0.1
.data 616 616 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
ota-requestor cyw930739m2evb_01 (read/write) 565978 565966 -12 -0.0
.app_xip_area 465408 465324 -84 -0.0
.bss 82980 83052 72 0.1
.data 552 552 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read only) 919808 919856 48 0.0
(read/write) 128256 128336 80 0.1
.bss 126216 126296 80 0.1
.data 2040 2040 0 0.0
.text 919800 919848 48 0.0
BRD4161A+rpc (read only) 948620 948668 48 0.0
(read/write) 144212 144292 80 0.1
.bss 141992 142072 80 0.1
.data 2220 2220 0 0.0
.text 948612 948660 48 0.0
window-app BRD4161A (read only) 852364 852412 48 0.0
(read/write) 126220 126300 80 0.1
.bss 124304 124384 80 0.1
.data 1916 1916 0 0.0
.text 852356 852404 48 0.0
esp32 all-clusters-app c3devkit (read only) 957766 957716 -50 -0.0
(read/write) 1393810 1393810 0 0.0
.dram0.bss 63576 63576 0 0.0
.dram0.data 14220 14220 0 0.0
.flash.rodata 197096 197096 0 0.0
.flash.text 957766 957716 -50 -0.0
.iram0.text 62016 62016 0 0.0
m5stack (read only) 1012875 1012699 -176 -0.0
(read/write) 461052 461052 0 0.0
.dram0.bss 69096 69096 0 0.0
.dram0.data 34064 34064 0 0.0
.flash.rodata 226056 226056 0 0.0
.flash.text 1007491 1007315 -176 -0.0
.iram0.text 123107 123107 0 0.0
k32w light k32w061+release (read/write) 694464 694432 -32 -0.0
.bss 77152 77216 64 0.1
.data 1924 1924 0 0.0
.text 609588 609492 -96 -0.0
lock k32w061+release (read/write) 695324 695308 -16 -0.0
.bss 77072 77136 64 0.1
.data 1964 1964 0 0.0
.text 610488 610408 -80 -0.0
linux chip-tool-ipv6only arm64 (read only) 9728988 9729116 128 0.0
(read/write) 475953 475953 0 0.0
.bss 43953 43953 0 0.0
.data 1200 1200 0 0.0
.data.rel.ro 371712 371712 0 0.0
.dynamic 560 560 0 0.0
.got 55296 55296 0 0.0
.init 24 24 0 0.0
.init_array 192 192 0 0.0
.rodata 492084 492084 0 0.0
.text 8185732 8185860 128 0.0
thermostat-no-ble arm64 (read only) 2178892 2179036 144 0.0
(read/write) 148801 148801 0 0.0
.bss 65393 65393 0 0.0
.data 1048 1048 0 0.0
.data.rel.ro 75160 75160 0 0.0
.dynamic 560 560 0 0.0
.got 4232 4232 0 0.0
.init 24 24 0 0.0
.init_array 352 352 0 0.0
.rodata 133132 133132 0 0.0
.text 1827184 1827328 144 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2351484 2351428 -56 -0.0
.bss 186212 186212 0 0.0
.data 5792 5792 0 0.0
.text 1314084 1314028 -56 -0.0
p6 all-clusters-app default (read/write) 2494296 2494280 -16 -0.0
.bss 119640 119640 0 0.0
.data 2680 2680 0 0.0
.text 1452560 1452544 -16 -0.0
light-app default (read/write) 2398312 2398296 -16 -0.0
.bss 113104 113104 0 0.0
.data 2536 2536 0 0.0
.text 1356576 1356560 -16 -0.0
lock-app default (read/write) 2361856 2361840 -16 -0.0
.bss 112848 112848 0 0.0
.data 2496 2496 0 0.0
.text 1320120 1320104 -16 -0.0
telink lighting-app tlsr9518adk80d (read/write) 888878 888870 -8 -0.0
bss 86968 86968 0 0.0
noinit 37160 37160 0 0.0
text 628158 628148 -10 -0.0

@cecille cecille merged commit c2b6479 into project-chip:master Mar 15, 2022
@cecille cecille deleted the fix_size_on_DT_field_in_TXT_record branch March 15, 2022 17:44
andrei-menzopol pushed a commit to andrei-menzopol/connectedhomeip that referenced this pull request Apr 14, 2022
* Switch device type to use a uint32

* fix print size.

* Update src/lib/dnssd/tests/TestTxtFields.cpp

Co-authored-by: Boris Zbarsky <[email protected]>

Co-authored-by: Boris Zbarsky <[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