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

Use field identifiers when code gen struct items #12222

Conversation

mlepage-google
Copy link
Contributor

@mlepage-google mlepage-google commented Nov 24, 2021

Problem

Field identifiers were not being used. Instead, the order of field
identifiers was used, with ordinal (0 to N-1) indexes.

This is likely true of other code generated elements, but this PR only
fixes it for struct items.

Change overview

Generate struct field IDs code properly with actual fieldId rather than index.

This PR requires PR #326 in the third_party/zap/repo to function,
as that PR actually includes the field identifier in the query
results.

Testing

Tested by running Matter cert tests, and also by inspecting the
generated code for correctness.

Field identifiers were not being used. Instead, the order of field
identifiers was used, with ordinal (0 to N-1) indexes.

This is likely true of other code generated elements, but this PR only
fixes it for struct items.

This PR requires PR project-chip#326 in the third_party/zap/repo to function,
as that PR actually includes the field identifier in the query
results.

Tested by running Matter cert tests, and also by inspecting the
generated code for correctness.
@github-actions
Copy link

github-actions bot commented Nov 24, 2021

PR #12222: Size comparison from 8bfdc13 to 175f2d3

Full report (38 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 8bfdc13 175f2d3 change % change
efr32 lighting-app BRD4161A (read only) 757184 757184 0 0.0
(read/write) 119788 119788 0 0.0
.bss 117972 117972 0 0.0
.data 1816 1816 0 0.0
.text 757176 757176 0 0.0
BRD4161A+rpc (read only) 744644 744644 0 0.0
(read/write) 136416 136416 0 0.0
.bss 134476 134476 0 0.0
.data 1940 1940 0 0.0
.text 744636 744636 0 0.0
lock-app BRD4161A (read only) 733040 733040 0 0.0
(read/write) 117508 117508 0 0.0
.bss 115732 115732 0 0.0
.data 1772 1772 0 0.0
.text 733032 733032 0 0.0
window-app BRD4161A (read only) 736488 736488 0 0.0
(read/write) 117868 117868 0 0.0
.bss 116084 116084 0 0.0
.data 1780 1780 0 0.0
.text 736480 736480 0 0.0
esp32 all-clusters-app c3devkit (read only) 835374 835374 0 0.0
(read/write) 1222586 1222586 0 0.0
.dram0.bss 57952 57952 0 0.0
.dram0.data 14100 14100 0 0.0
.flash.rodata 165280 165280 0 0.0
.flash.text 835374 835374 0 0.0
.iram0.text 61394 61394 0 0.0
m5stack (read only) 906835 906835 0 0.0
(read/write) 421852 421852 0 0.0
.dram0.bss 63344 63344 0 0.0
.dram0.data 34072 34072 0 0.0
.flash.rodata 193156 193156 0 0.0
.flash.text 901451 901451 0 0.0
.iram0.text 122943 122943 0 0.0
k32w lighting-app k32w061+se05x+release (read/write) 718472 718472 0 0.0
.bss 78252 78252 0 0.0
.data 1952 1952 0 0.0
.text 632468 632468 0 0.0
lock-app k32w061+debug (read/write) 608764 608764 0 0.0
.bss 68692 68692 0 0.0
.data 1920 1920 0 0.0
.text 532352 532352 0 0.0
shell k32w061+debug (read/write) 674164 674164 0 0.0
.bss 79852 79852 0 0.0
.data 1888 1888 0 0.0
.text 586624 586624 0 0.0
linux all-clusters-app debug (read only) 1767121 1767121 0 0.0
(read/write) 129880 129880 0 0.0
.bss 58800 58800 0 0.0
.data 1170 1170 0 0.0
.data.rel.ro 64608 64608 0 0.0
.dynamic 592 592 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 576 576 0 0.0
.rodata 138293 138293 0 0.0
.text 1490482 1490482 0 0.0
bridge-app debug+rpc (read only) 1342765 1342765 0 0.0
(read/write) 77824 77824 0 0.0
.bss 41712 41712 0 0.0
.data 1680 1680 0 0.0
.data.rel.ro 29384 29384 0 0.0
.dynamic 592 592 0 0.0
.got 3984 3984 0 0.0
.init 27 27 0 0.0
.init_array 424 424 0 0.0
.rodata 112924 112924 0 0.0
.text 1129749 1129749 0 0.0
chip-tool debug (read only) 5959517 5959517 0 0.0
(read/write) 197584 197584 0 0.0
.bss 40064 40064 0 0.0
.data 2384 2384 0 0.0
.data.rel.ro 149552 149552 0 0.0
.dynamic 592 592 0 0.0
.got 4456 4456 0 0.0
.init 27 27 0 0.0
.init_array 488 488 0 0.0
.rodata 283880 283880 0 0.0
.text 5291957 5291957 0 0.0
lighting-app debug+rpc (read only) 1615929 1615929 0 0.0
(read/write) 111072 111072 0 0.0
.bss 47408 47408 0 0.0
.data 1362 1362 0 0.0
.data.rel.ro 56976 56976 0 0.0
.dynamic 608 608 0 0.0
.got 4136 4136 0 0.0
.init 27 27 0 0.0
.init_array 552 552 0 0.0
.rodata 131217 131217 0 0.0
.text 1346994 1346994 0 0.0
ota-provider-app debug (read only) 1306817 1306817 0 0.0
(read/write) 76312 76312 0 0.0
.bss 44320 44320 0 0.0
.data 912 912 0 0.0
.data.rel.ro 25944 25944 0 0.0
.dynamic 592 592 0 0.0
.got 4048 4048 0 0.0
.init 27 27 0 0.0
.init_array 464 464 0 0.0
.rodata 114640 114640 0 0.0
.text 1091826 1091826 0 0.0
ota-requestor-app debug (read only) 1403353 1403353 0 0.0
(read/write) 80144 80144 0 0.0
.bss 46752 46752 0 0.0
.data 976 976 0 0.0
.data.rel.ro 27272 27272 0 0.0
.dynamic 592 592 0 0.0
.got 4032 4032 0 0.0
.init 27 27 0 0.0
.init_array 488 488 0 0.0
.rodata 126080 126080 0 0.0
.text 1174130 1174130 0 0.0
shell debug (read only) 820129 820129 0 0.0
(read/write) 66936 66936 0 0.0
.bss 23496 23496 0 0.0
.data 338 338 0 0.0
.data.rel.ro 38560 38560 0 0.0
.dynamic 592 592 0 0.0
.got 3560 3560 0 0.0
.init 27 27 0 0.0
.init_array 360 360 0 0.0
.rodata 78927 78927 0 0.0
.text 634514 634514 0 0.0
tv-app debug (read only) 1912529 1912529 0 0.0
(read/write) 320088 320088 0 0.0
.bss 250168 250168 0 0.0
.data 2880 2880 0 0.0
.data.rel.ro 61368 61368 0 0.0
.dynamic 592 592 0 0.0
.got 4432 4432 0 0.0
.init 27 27 0 0.0
.init_array 632 632 0 0.0
.rodata 159176 159176 0 0.0
.text 1605154 1605154 0 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2294096 2294096 0 0.0
.bss 180500 180500 0 0.0
.data 5240 5240 0 0.0
.heap 850704 850704 0 0.0
.text 1256696 1256696 0 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2278352 2278352 0 0.0
.bss 172404 172404 0 0.0
.data 5600 5600 0 0.0
.heap 858440 858440 0 0.0
.text 1240952 1240952 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2252672 2252672 0 0.0
.bss 171220 171220 0 0.0
.data 5584 5584 0 0.0
.heap 859640 859640 0 0.0
.text 1215272 1215272 0 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1139744 1139744 0 0.0
.bss 11752 11752 0 0.0
.data 4368 4368 0 0.0
.heap 1020328 1020328 0 0.0
.text 103128 103128 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2050800 2050800 0 0.0
.bss 156424 156424 0 0.0
.data 4984 4984 0 0.0
.heap 875040 875040 0 0.0
.text 1013400 1013400 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 871003 871003 0 0.0
bss 112632 112632 0 0.0
rodata 96516 96516 0 0.0
text 586212 586212 0 0.0
nrf52840dk_nrf52840+rpc (read/write) 833371 833371 0 0.0
bss 108984 108984 0 0.0
rodata 87700 87700 0 0.0
text 560380 560380 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 796046 796046 0 0.0
bss 114004 114004 0 0.0
rodata 91776 91776 0 0.0
text 515676 515676 0 0.0
lock-app nrf52840dk_nrf52840 (read/write) 843095 843095 0 0.0
bss 109664 109664 0 0.0
rodata 92520 92520 0 0.0
text 565456 565456 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 768398 768398 0 0.0
bss 111076 111076 0 0.0
rodata 87808 87808 0 0.0
text 495012 495012 0 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 497327 497327 0 0.0
bss 51824 51824 0 0.0
rodata 45780 45780 0 0.0
text 339436 339436 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 849227 849227 0 0.0
bss 109804 109804 0 0.0
rodata 94228 94228 0 0.0
text 569640 569640 0 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 842819 842819 0 0.0
bss 109700 109700 0 0.0
rodata 92476 92476 0 0.0
text 565076 565076 0 0.0
shell nrf52840dk_nrf52840 (read/write) 778311 778311 0 0.0
bss 109168 109168 0 0.0
rodata 72996 72996 0 0.0
text 521532 521532 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 693350 693350 0 0.0
bss 110152 110152 0 0.0
rodata 67640 67640 0 0.0
text 442140 442140 0 0.0
p6 all-clusters-app default (read/write) 2309592 2309592 0 0.0
.bss 113496 113496 0 0.0
.data 2544 2544 0 0.0
.heap 917304 917304 0 0.0
.text 1267856 1267856 0 0.0
lock-app default (read/write) 2221608 2221608 0 0.0
.bss 101080 101080 0 0.0
.data 2416 2416 0 0.0
.heap 929848 929848 0 0.0
.text 1179872 1179872 0 0.0
qpg lighting-app qpg6100+debug (read only) 498732 498732 0 0.0
(read/write) 114140 114140 0 0.0
.bss 50368 50368 0 0.0
.data 1020 1020 0 0.0
.text 493412 493412 0 0.0
lock-app qpg6100+debug (read only) 472636 472636 0 0.0
(read/write) 114144 114144 0 0.0
.bss 49240 49240 0 0.0
.data 976 976 0 0.0
.text 467316 467316 0 0.0
persistent-storage-app qpg6100+debug (read only) 105408 105408 0 0.0
(read/write) 114142 114142 0 0.0
.bss 8986 8986 0 0.0
.data 272 272 0 0.0
.text 100088 100088 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 772402 772402 0 0.0
bss 79208 79208 0 0.0
noinit 37160 37160 0 0.0
text 536460 536460 0 0.0

Copy link
Contributor

@bzbarsky-apple bzbarsky-apple left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!

@mlepage-google
Copy link
Contributor Author

Updated submodule, ran cert tests, so good to go. (Not sure why it says there's a conflict in the zap repo...)

@mlepage-google
Copy link
Contributor Author

Argh, looks like master changed while I was updating this PR, between my merging master and updating the submodule.

@mlepage-google mlepage-google marked this pull request as ready for review November 25, 2021 16:05
@andy31415
Copy link
Contributor

fast track - basic change, but requires zap merging

@github-actions
Copy link

PR #12222: Size comparison from 15929eb to 6e0ebb6

Full report (9 builds for k32w, p6, qpg, telink)
platform target config section 15929eb 6e0ebb6e change % change
k32w lock-app k32w061+debug (read/write) 611668 611668 0 0.0
.bss 68716 68716 0 0.0
.data 1920 1920 0 0.0
.text 535232 535232 0 0.0
shell k32w061+debug (read/write) 676972 676972 0 0.0
.bss 79868 79868 0 0.0
.data 1892 1892 0 0.0
.text 589412 589412 0 0.0
lighting-app k32w061+se05x+release (read/write) 721348 721348 0 0.0
.bss 78276 78276 0 0.0
.data 1956 1956 0 0.0
.text 635316 635316 0 0.0
p6 all-clusters-app default (read/write) 2310568 2310568 0 0.0
.bss 114664 114664 0 0.0
.data 2544 2544 0 0.0
.heap 916136 916136 0 0.0
.text 1268832 1268832 0 0.0
lock-app default (read/write) 2222400 2222400 0 0.0
.bss 100960 100960 0 0.0
.data 2416 2416 0 0.0
.heap 929968 929968 0 0.0
.text 1180664 1180664 0 0.0
qpg lighting-app qpg6100+debug (read only) 501148 501148 0 0.0
(read/write) 114144 114144 0 0.0
.bss 50384 50384 0 0.0
.data 1024 1024 0 0.0
.text 495828 495828 0 0.0
lock-app qpg6100+debug (read only) 475116 475116 0 0.0
(read/write) 114140 114140 0 0.0
.bss 49256 49256 0 0.0
.data 980 980 0 0.0
.text 469796 469796 0 0.0
persistent-storage-app qpg6100+debug (read only) 105424 105424 0 0.0
(read/write) 114138 114138 0 0.0
.bss 12002 12002 0 0.0
.data 276 276 0 0.0
.text 100104 100104 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 775246 775246 0 0.0
bss 79216 79216 0 0.0
noinit 37160 37160 0 0.0
text 539022 539022 0 0.0

@mlepage-google
Copy link
Contributor Author

Updated the couple generated files that changed. Re-ran cert tests. Should be good now?

Why are we styling generated code?!
@github-actions
Copy link

github-actions bot commented Nov 25, 2021

PR #12222: Size comparison from 15929eb to 2950fb4

Increases (3 builds for esp32, linux, p6)
platform target config section 15929eb 2950fb4 change % change
esp32 all-clusters-app c3devkit (read only) 835796 835844 48 0.0
.flash.text 835796 835844 48 0.0
linux chip-tool debug (read only) 6070205 6070285 80 0.0
.rodata 290408 290472 64 0.0
.text 5391077 5391093 16 0.0
p6 all-clusters-app default (read/write) 2310568 2310584 16 0.0
.text 1268832 1268848 16 0.0
Decreases (1 build for esp32)
platform target config section 15929eb 2950fb4 change % change
esp32 all-clusters-app m5stack (read only) 907139 907095 -44 -0.0
.flash.text 901755 901711 -44 -0.0
Full report (38 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 15929eb 2950fb4 change % change
efr32 lighting-app BRD4161A (read only) 759568 759568 0 0.0
(read/write) 119812 119812 0 0.0
.bss 117988 117988 0 0.0
.data 1820 1820 0 0.0
.text 759560 759560 0 0.0
BRD4161A+rpc (read only) 747236 747236 0 0.0
(read/write) 136436 136436 0 0.0
.bss 134492 134492 0 0.0
.data 1944 1944 0 0.0
.text 747228 747228 0 0.0
lock-app BRD4161A (read only) 735504 735504 0 0.0
(read/write) 117524 117524 0 0.0
.bss 115748 115748 0 0.0
.data 1776 1776 0 0.0
.text 735496 735496 0 0.0
window-app BRD4161A (read only) 738960 738960 0 0.0
(read/write) 117884 117884 0 0.0
.bss 116100 116100 0 0.0
.data 1784 1784 0 0.0
.text 738952 738952 0 0.0
esp32 all-clusters-app c3devkit (read only) 835796 835844 48 0.0
(read/write) 1224250 1224250 0 0.0
.dram0.bss 59120 59120 0 0.0
.dram0.data 14100 14100 0 0.0
.flash.rodata 165776 165776 0 0.0
.flash.text 835796 835844 48 0.0
.iram0.text 61394 61394 0 0.0
m5stack (read only) 907139 907095 -44 -0.0
(read/write) 423492 423492 0 0.0
.dram0.bss 64512 64512 0 0.0
.dram0.data 34072 34072 0 0.0
.flash.rodata 193628 193628 0 0.0
.flash.text 901755 901711 -44 -0.0
.iram0.text 122943 122943 0 0.0
k32w lighting-app k32w061+se05x+release (read/write) 721348 721348 0 0.0
.bss 78276 78276 0 0.0
.data 1956 1956 0 0.0
.text 635316 635316 0 0.0
lock-app k32w061+debug (read/write) 611668 611668 0 0.0
.bss 68716 68716 0 0.0
.data 1920 1920 0 0.0
.text 535232 535232 0 0.0
shell k32w061+debug (read/write) 676972 676972 0 0.0
.bss 79868 79868 0 0.0
.data 1892 1892 0 0.0
.text 589412 589412 0 0.0
linux all-clusters-app debug (read only) 1770537 1770537 0 0.0
(read/write) 131480 131480 0 0.0
.bss 60080 60080 0 0.0
.data 1170 1170 0 0.0
.data.rel.ro 64928 64928 0 0.0
.dynamic 592 592 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 576 576 0 0.0
.rodata 138453 138453 0 0.0
.text 1493714 1493714 0 0.0
bridge-app debug+rpc (read only) 1346365 1346365 0 0.0
(read/write) 77824 77824 0 0.0
.bss 41712 41712 0 0.0
.data 1680 1680 0 0.0
.data.rel.ro 29384 29384 0 0.0
.dynamic 592 592 0 0.0
.got 3984 3984 0 0.0
.init 27 27 0 0.0
.init_array 424 424 0 0.0
.rodata 113084 113084 0 0.0
.text 1133189 1133189 0 0.0
chip-tool debug (read only) 6070205 6070285 80 0.0
(read/write) 199728 199728 0 0.0
.bss 40064 40064 0 0.0
.data 2384 2384 0 0.0
.data.rel.ro 151712 151712 0 0.0
.dynamic 592 592 0 0.0
.got 4456 4456 0 0.0
.init 27 27 0 0.0
.init_array 488 488 0 0.0
.rodata 290408 290472 64 0.0
.text 5391077 5391093 16 0.0
lighting-app debug+rpc (read only) 1619433 1619433 0 0.0
(read/write) 111072 111072 0 0.0
.bss 47408 47408 0 0.0
.data 1362 1362 0 0.0
.data.rel.ro 56976 56976 0 0.0
.dynamic 608 608 0 0.0
.got 4136 4136 0 0.0
.init 27 27 0 0.0
.init_array 552 552 0 0.0
.rodata 131377 131377 0 0.0
.text 1350338 1350338 0 0.0
ota-provider-app debug (read only) 1309361 1309361 0 0.0
(read/write) 76312 76312 0 0.0
.bss 44320 44320 0 0.0
.data 912 912 0 0.0
.data.rel.ro 25944 25944 0 0.0
.dynamic 592 592 0 0.0
.got 4048 4048 0 0.0
.init 27 27 0 0.0
.init_array 464 464 0 0.0
.rodata 114736 114736 0 0.0
.text 1094274 1094274 0 0.0
ota-requestor-app debug (read only) 1405849 1405849 0 0.0
(read/write) 80144 80144 0 0.0
.bss 46752 46752 0 0.0
.data 976 976 0 0.0
.data.rel.ro 27272 27272 0 0.0
.dynamic 592 592 0 0.0
.got 4032 4032 0 0.0
.init 27 27 0 0.0
.init_array 488 488 0 0.0
.rodata 126208 126208 0 0.0
.text 1176498 1176498 0 0.0
shell debug (read only) 820129 820129 0 0.0
(read/write) 66936 66936 0 0.0
.bss 23496 23496 0 0.0
.data 338 338 0 0.0
.data.rel.ro 38560 38560 0 0.0
.dynamic 592 592 0 0.0
.got 3560 3560 0 0.0
.init 27 27 0 0.0
.init_array 360 360 0 0.0
.rodata 78927 78927 0 0.0
.text 634514 634514 0 0.0
tv-app debug (read only) 1916225 1916225 0 0.0
(read/write) 320088 320088 0 0.0
.bss 250168 250168 0 0.0
.data 2880 2880 0 0.0
.data.rel.ro 61368 61368 0 0.0
.dynamic 592 592 0 0.0
.got 4432 4432 0 0.0
.init 27 27 0 0.0
.init_array 632 632 0 0.0
.rodata 159432 159432 0 0.0
.text 1608594 1608594 0 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2293680 2293680 0 0.0
.bss 181668 181668 0 0.0
.data 5240 5240 0 0.0
.heap 849536 849536 0 0.0
.text 1256280 1256280 0 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2277712 2277712 0 0.0
.bss 172284 172284 0 0.0
.data 5600 5600 0 0.0
.heap 858560 858560 0 0.0
.text 1240312 1240312 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2252096 2252096 0 0.0
.bss 171100 171100 0 0.0
.data 5584 5584 0 0.0
.heap 859760 859760 0 0.0
.text 1214696 1214696 0 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1139744 1139744 0 0.0
.bss 11752 11752 0 0.0
.data 4368 4368 0 0.0
.heap 1020328 1020328 0 0.0
.text 103128 103128 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2050584 2050584 0 0.0
.bss 156304 156304 0 0.0
.data 4984 4984 0 0.0
.heap 875160 875160 0 0.0
.text 1013184 1013184 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 873643 873643 0 0.0
bss 112644 112644 0 0.0
rodata 96788 96788 0 0.0
text 588544 588544 0 0.0
nrf52840dk_nrf52840+rpc (read/write) 836203 836203 0 0.0
bss 108996 108996 0 0.0
rodata 88036 88036 0 0.0
text 562844 562844 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 798666 798666 0 0.0
bss 114020 114020 0 0.0
rodata 92044 92044 0 0.0
text 518004 518004 0 0.0
lock-app nrf52840dk_nrf52840 (read/write) 845799 845799 0 0.0
bss 109680 109680 0 0.0
rodata 92792 92792 0 0.0
text 567856 567856 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 771070 771070 0 0.0
bss 111088 111088 0 0.0
rodata 88080 88080 0 0.0
text 497412 497412 0 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 497327 497327 0 0.0
bss 51824 51824 0 0.0
rodata 45780 45780 0 0.0
text 339436 339436 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 851899 851899 0 0.0
bss 109816 109816 0 0.0
rodata 94500 94500 0 0.0
text 572040 572040 0 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 845491 845491 0 0.0
bss 109712 109712 0 0.0
rodata 92748 92748 0 0.0
text 567476 567476 0 0.0
shell nrf52840dk_nrf52840 (read/write) 778319 778319 0 0.0
bss 109180 109180 0 0.0
rodata 72988 72988 0 0.0
text 521552 521552 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 693374 693374 0 0.0
bss 110164 110164 0 0.0
rodata 67632 67632 0 0.0
text 442160 442160 0 0.0
p6 all-clusters-app default (read/write) 2310568 2310584 16 0.0
.bss 114664 114664 0 0.0
.data 2544 2544 0 0.0
.heap 916136 916136 0 0.0
.text 1268832 1268848 16 0.0
lock-app default (read/write) 2222400 2222400 0 0.0
.bss 100960 100960 0 0.0
.data 2416 2416 0 0.0
.heap 929968 929968 0 0.0
.text 1180664 1180664 0 0.0
qpg lighting-app qpg6100+debug (read only) 501148 501148 0 0.0
(read/write) 114144 114144 0 0.0
.bss 50384 50384 0 0.0
.data 1024 1024 0 0.0
.text 495828 495828 0 0.0
lock-app qpg6100+debug (read only) 475116 475116 0 0.0
(read/write) 114140 114140 0 0.0
.bss 49256 49256 0 0.0
.data 980 980 0 0.0
.text 469796 469796 0 0.0
persistent-storage-app qpg6100+debug (read only) 105424 105424 0 0.0
(read/write) 114138 114138 0 0.0
.bss 12002 12002 0 0.0
.data 276 276 0 0.0
.text 100104 100104 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 775246 775246 0 0.0
bss 79216 79216 0 0.0
noinit 37160 37160 0 0.0
text 539022 539022 0 0.0

@andy31415
Copy link
Contributor

Removed fast track: has sufficient checkmarks

@github-actions
Copy link

github-actions bot commented Nov 25, 2021

PR #12222: Size comparison from 9834f97 to 7d05851

Increases (2 builds for esp32, linux)
platform target config section 9834f97 7d05851 change % change
esp32 all-clusters-app c3devkit (read only) 836356 836408 52 0.0
.flash.text 836356 836408 52 0.0
linux chip-tool debug (read only) 6084149 6084229 80 0.0
.rodata 290920 290984 64 0.0
.text 5404101 5404117 16 0.0
Decreases (1 build for esp32)
platform target config section 9834f97 7d05851 change % change
esp32 all-clusters-app m5stack (read only) 907847 907795 -52 -0.0
.flash.text 902463 902411 -52 -0.0
Full report (38 builds for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
platform target config section 9834f97 7d05851 change % change
efr32 lighting-app BRD4161A (read only) 761944 761944 0 0.0
(read/write) 119836 119836 0 0.0
.bss 118012 118012 0 0.0
.data 1820 1820 0 0.0
.text 761936 761936 0 0.0
BRD4161A+rpc (read only) 749604 749604 0 0.0
(read/write) 136460 136460 0 0.0
.bss 134516 134516 0 0.0
.data 1944 1944 0 0.0
.text 749596 749596 0 0.0
lock-app BRD4161A (read only) 735896 735896 0 0.0
(read/write) 117540 117540 0 0.0
.bss 115764 115764 0 0.0
.data 1776 1776 0 0.0
.text 735888 735888 0 0.0
window-app BRD4161A (read only) 738688 738688 0 0.0
(read/write) 117884 117884 0 0.0
.bss 116100 116100 0 0.0
.data 1784 1784 0 0.0
.text 738680 738680 0 0.0
esp32 all-clusters-app c3devkit (read only) 836356 836408 52 0.0
(read/write) 1224370 1224370 0 0.0
.dram0.bss 59144 59144 0 0.0
.dram0.data 14100 14100 0 0.0
.flash.rodata 165864 165864 0 0.0
.flash.text 836356 836408 52 0.0
.iram0.text 61394 61394 0 0.0
m5stack (read only) 907847 907795 -52 -0.0
(read/write) 423596 423596 0 0.0
.dram0.bss 64536 64536 0 0.0
.dram0.data 34072 34072 0 0.0
.flash.rodata 193708 193708 0 0.0
.flash.text 902463 902411 -52 -0.0
.iram0.text 122943 122943 0 0.0
k32w lighting-app k32w061+se05x+release (read/write) 723076 723076 0 0.0
.bss 78292 78292 0 0.0
.data 1956 1956 0 0.0
.text 637028 637028 0 0.0
lock-app k32w061+debug (read/write) 612148 612148 0 0.0
.bss 68740 68740 0 0.0
.data 1920 1920 0 0.0
.text 535688 535688 0 0.0
shell k32w061+debug (read/write) 677468 677468 0 0.0
.bss 79892 79892 0 0.0
.data 1892 1892 0 0.0
.text 589884 589884 0 0.0
linux all-clusters-app debug (read only) 1774009 1774009 0 0.0
(read/write) 131544 131544 0 0.0
.bss 60144 60144 0 0.0
.data 1170 1170 0 0.0
.data.rel.ro 64928 64928 0 0.0
.dynamic 592 592 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 576 576 0 0.0
.rodata 138773 138773 0 0.0
.text 1496866 1496866 0 0.0
bridge-app debug+rpc (read only) 1348333 1348333 0 0.0
(read/write) 77856 77856 0 0.0
.bss 41744 41744 0 0.0
.data 1680 1680 0 0.0
.data.rel.ro 29384 29384 0 0.0
.dynamic 592 592 0 0.0
.got 3984 3984 0 0.0
.init 27 27 0 0.0
.init_array 424 424 0 0.0
.rodata 113404 113404 0 0.0
.text 1134837 1134837 0 0.0
chip-tool debug (read only) 6084149 6084229 80 0.0
(read/write) 199920 199920 0 0.0
.bss 40064 40064 0 0.0
.data 2384 2384 0 0.0
.data.rel.ro 151888 151888 0 0.0
.dynamic 592 592 0 0.0
.got 4456 4456 0 0.0
.init 27 27 0 0.0
.init_array 488 488 0 0.0
.rodata 290920 290984 64 0.0
.text 5404101 5404117 16 0.0
lighting-app debug+rpc (read only) 1627977 1627977 0 0.0
(read/write) 111104 111104 0 0.0
.bss 47440 47440 0 0.0
.data 1362 1362 0 0.0
.data.rel.ro 56976 56976 0 0.0
.dynamic 608 608 0 0.0
.got 4136 4136 0 0.0
.init 27 27 0 0.0
.init_array 552 552 0 0.0
.rodata 131697 131697 0 0.0
.text 1358562 1358562 0 0.0
ota-provider-app debug (read only) 1309361 1309361 0 0.0
(read/write) 76312 76312 0 0.0
.bss 44320 44320 0 0.0
.data 912 912 0 0.0
.data.rel.ro 25944 25944 0 0.0
.dynamic 592 592 0 0.0
.got 4048 4048 0 0.0
.init 27 27 0 0.0
.init_array 464 464 0 0.0
.rodata 114736 114736 0 0.0
.text 1094274 1094274 0 0.0
ota-requestor-app debug (read only) 1405801 1405801 0 0.0
(read/write) 80144 80144 0 0.0
.bss 46752 46752 0 0.0
.data 976 976 0 0.0
.data.rel.ro 27272 27272 0 0.0
.dynamic 592 592 0 0.0
.got 4032 4032 0 0.0
.init 27 27 0 0.0
.init_array 488 488 0 0.0
.rodata 126208 126208 0 0.0
.text 1176450 1176450 0 0.0
shell debug (read only) 820129 820129 0 0.0
(read/write) 66936 66936 0 0.0
.bss 23496 23496 0 0.0
.data 338 338 0 0.0
.data.rel.ro 38560 38560 0 0.0
.dynamic 592 592 0 0.0
.got 3560 3560 0 0.0
.init 27 27 0 0.0
.init_array 360 360 0 0.0
.rodata 78927 78927 0 0.0
.text 634514 634514 0 0.0
tv-app debug (read only) 1918209 1918209 0 0.0
(read/write) 320152 320152 0 0.0
.bss 250232 250232 0 0.0
.data 2880 2880 0 0.0
.data.rel.ro 61368 61368 0 0.0
.dynamic 592 592 0 0.0
.got 4432 4432 0 0.0
.init 27 27 0 0.0
.init_array 632 632 0 0.0
.rodata 159752 159752 0 0.0
.text 1610258 1610258 0 0.0
mbed all-clusters-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2294536 2294536 0 0.0
.bss 181884 181884 0 0.0
.data 5240 5240 0 0.0
.heap 849320 849320 0 0.0
.text 1257136 1257136 0 0.0
lighting-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2279808 2279808 0 0.0
.bss 172492 172492 0 0.0
.data 5600 5600 0 0.0
.heap 858352 858352 0 0.0
.text 1242408 1242408 0 0.0
lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2252888 2252888 0 0.0
.bss 171308 171308 0 0.0
.data 5584 5584 0 0.0
.heap 859552 859552 0 0.0
.text 1215488 1215488 0 0.0
pigweed-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 1139744 1139744 0 0.0
.bss 11752 11752 0 0.0
.data 4368 4368 0 0.0
.heap 1020328 1020328 0 0.0
.text 103128 103128 0 0.0
shell CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2050840 2050840 0 0.0
.bss 156496 156496 0 0.0
.data 4984 4984 0 0.0
.heap 874968 874968 0 0.0
.text 1013440 1013440 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 (read/write) 875371 875371 0 0.0
bss 112660 112660 0 0.0
rodata 97092 97092 0 0.0
text 589980 589980 0 0.0
nrf52840dk_nrf52840+rpc (read/write) 837947 837947 0 0.0
bss 109012 109012 0 0.0
rodata 88340 88340 0 0.0
text 564284 564284 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 800410 800410 0 0.0
bss 114036 114036 0 0.0
rodata 92348 92348 0 0.0
text 519444 519444 0 0.0
lock-app nrf52840dk_nrf52840 (read/write) 846315 846315 0 0.0
bss 109700 109700 0 0.0
rodata 92876 92876 0 0.0
text 568252 568252 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 771590 771590 0 0.0
bss 111108 111108 0 0.0
rodata 88168 88168 0 0.0
text 497804 497804 0 0.0
pigweed-app nrf52840dk_nrf52840 (read/write) 497327 497327 0 0.0
bss 51824 51824 0 0.0
rodata 45780 45780 0 0.0
text 339436 339436 0 0.0
pump-app nrf52840dk_nrf52840 (read/write) 852275 852275 0 0.0
bss 109836 109836 0 0.0
rodata 94588 94588 0 0.0
text 572296 572296 0 0.0
pump-controller-app nrf52840dk_nrf52840 (read/write) 845395 845395 0 0.0
bss 109712 109712 0 0.0
rodata 92748 92748 0 0.0
text 567380 567380 0 0.0
shell nrf52840dk_nrf52840 (read/write) 778319 778319 0 0.0
bss 109180 109180 0 0.0
rodata 72988 72988 0 0.0
text 521552 521552 0 0.0
nrf5340dk_nrf5340_cpuapp (read/write) 693374 693374 0 0.0
bss 110164 110164 0 0.0
rodata 67632 67632 0 0.0
text 442160 442160 0 0.0
p6 all-clusters-app default (read/write) 2311048 2311048 0 0.0
.bss 114688 114688 0 0.0
.data 2544 2544 0 0.0
.heap 916112 916112 0 0.0
.text 1269312 1269312 0 0.0
lock-app default (read/write) 2222872 2222872 0 0.0
.bss 100976 100976 0 0.0
.data 2416 2416 0 0.0
.heap 929952 929952 0 0.0
.text 1181136 1181136 0 0.0
qpg lighting-app qpg6100+debug (read only) 502868 502868 0 0.0
(read/write) 114144 114144 0 0.0
.bss 50400 50400 0 0.0
.data 1024 1024 0 0.0
.text 497548 497548 0 0.0
lock-app qpg6100+debug (read only) 475568 475568 0 0.0
(read/write) 114140 114140 0 0.0
.bss 49272 49272 0 0.0
.data 980 980 0 0.0
.text 470248 470248 0 0.0
persistent-storage-app qpg6100+debug (read only) 105424 105424 0 0.0
(read/write) 114138 114138 0 0.0
.bss 12002 12002 0 0.0
.data 276 276 0 0.0
.text 100104 100104 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 777178 777178 0 0.0
bss 79236 79236 0 0.0
noinit 37160 37160 0 0.0
text 540608 540608 0 0.0

@andy31415 andy31415 merged commit cc9dc33 into project-chip:master Nov 25, 2021
@mlepage-google mlepage-google deleted the use-field-identifiers-when-code-gen-struct-items branch February 15, 2022 15:06
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