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

Attribute Type Information in Cluster Objects #10398

Merged
merged 7 commits into from
Oct 14, 2021

Conversation

mrjerryjohns
Copy link
Contributor

Emit a TypeInfo struct for each attribute in the generated cluster objects that contains both the type of the attribute as well as its Attribute and Cluster ID. This will be useful later when implementing Reads/Writes that utilize this information during template specialization to avoid the caller/application having to provide this information.

Create a 'TypeInfo' struct for each attribute in the generated cluster
objects that contains both the type of the attribute as well as its
Attribute and Cluster ID. This will be useful later when implementing
Reads/Writes that utilize this information during template
specialization to avoid the caller/application having to provide this
information.
@woody-apple
Copy link
Contributor

@pullapprove pullapprove bot requested review from chulspro and wbschiller October 13, 2021 07:32
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
@mrjerryjohns mrjerryjohns merged commit f0cc672 into project-chip:master Oct 14, 2021
@github-actions
Copy link

PR #10398: Size comparison from 24ad104 to b8a56dd

34 builds
platform target config section 24ad104 b8a56dd change % change
efr32 lighting-app BRD4161A .bss 118012 118012 0 0.0
.data 1800 1800 0 0.0
.text 780980 780980 0 0.0
lock-app BRD4161A .bss 115884 115884 0 0.0
.data 1760 1760 0 0.0
.text 760236 760236 0 0.0
window-app BRD4161A .bss 116204 116204 0 0.0
.data 1764 1764 0 0.0
.text 761136 761136 0 0.0
lighting-app BRD4161A+rpc .bss 131340 131340 0 0.0
.data 1852 1852 0 0.0
.text 760728 760728 0 0.0
esp32 all-clusters-app c3devkit .dram0.bss 60248 60248 0 0.0
.dram0.data 16232 16232 0 0.0
.flash.rodata 198144 198144 0 0.0
.flash.text 868918 868918 0 0.0
.iram0.text 57330 57330 0 0.0
m5stack .dram0.bss 62752 62752 0 0.0
.dram0.data 32084 32084 0 0.0
.flash.rodata 206732 206732 0 0.0
.flash.text 900007 900007 0 0.0
.iram0.text 125115 125115 0 0.0
k32w lock-app k32w061+debug .bss 69044 69044 0 0.0
.data 1864 1864 0 0.0
.text 514132 514132 0 0.0
shell k32w061+debug .bss 55088 55088 0 0.0
.data 672 672 0 0.0
.text 356884 356884 0 0.0
lighting-app k32w061+se05x+release .bss 78560 78560 0 0.0
.data 1900 1900 0 0.0
.text 612808 612808 0 0.0
linux all-clusters-app debug .bss 52144 52144 0 0.0
.data 978 978 0 0.0
.data.rel.ro 58352 58352 0 0.0
.dynamic 592 592 0 0.0
.got 4080 4080 0 0.0
.init 27 27 0 0.0
.init_array 512 512 0 0.0
.rodata 134485 134485 0 0.0
.text 1317778 1317778 0 0.0
chip-tool debug .bss 17584 17584 0 0.0
.data 1584 1584 0 0.0
.data.rel.ro 77392 77392 0 0.0
.dynamic 592 592 0 0.0
.got 4336 4336 0 0.0
.init 27 27 0 0.0
.init_array 416 416 0 0.0
.rodata 173408 173408 0 0.0
.text 2424789 2424789 0 0.0
ota-provider-app debug .bss 37472 37472 0 0.0
.data 752 752 0 0.0
.data.rel.ro 23112 23112 0 0.0
.dynamic 592 592 0 0.0
.got 4016 4016 0 0.0
.init 27 27 0 0.0
.init_array 448 448 0 0.0
.rodata 108568 108568 0 0.0
.text 1004786 1004786 0 0.0
ota-requestor-app debug .bss 205728 205728 0 0.0
.data 752 752 0 0.0
.data.rel.ro 24408 24408 0 0.0
.dynamic 592 592 0 0.0
.got 4144 4144 0 0.0
.init 27 27 0 0.0
.init_array 520 520 0 0.0
.rodata 126576 126576 0 0.0
.text 1124594 1124594 0 0.0
shell debug .bss 16104 16104 0 0.0
.data 242 242 0 0.0
.data.rel.ro 35192 35192 0 0.0
.dynamic 592 592 0 0.0
.got 3512 3512 0 0.0
.init 27 27 0 0.0
.init_array 344 344 0 0.0
.rodata 70639 70639 0 0.0
.text 573842 573842 0 0.0
tv-app debug .bss 216368 216368 0 0.0
.data 2032 2032 0 0.0
.data.rel.ro 55536 55536 0 0.0
.dynamic 592 592 0 0.0
.got 4416 4416 0 0.0
.init 27 27 0 0.0
.init_array 616 616 0 0.0
.rodata 150280 150280 0 0.0
.text 1463282 1463282 0 0.0
bridge-app debug+rpc .bss 52880 52880 0 0.0
.data 976 976 0 0.0
.data.rel.ro 25480 25480 0 0.0
.dynamic 592 592 0 0.0
.got 3952 3952 0 0.0
.init 27 27 0 0.0
.init_array 408 408 0 0.0
.rodata 109244 109244 0 0.0
.text 1047045 1047045 0 0.0
lighting-app debug+rpc .bss 42200 42200 0 0.0
.data 1106 1106 0 0.0
.data.rel.ro 52192 52192 0 0.0
.dynamic 608 608 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 536 536 0 0.0
.rodata 126353 126353 0 0.0
.text 1248194 1248194 0 0.0
mbed lighting-app CY8CPROTO_062_4343W+release .bss 172132 172132 0 0.0
.data 5464 5464 0 0.0
.heap 858848 858848 0 0.0
.text 1218656 1218656 0 0.0
lock-app CY8CPROTO_062_4343W+release .bss 171068 171068 0 0.0
.data 5432 5432 0 0.0
.heap 859944 859944 0 0.0
.text 1196648 1196648 0 0.0
nrfconnect lighting-app nrf52840dk_nrf52840 bss 112312 112312 0 0.0
rodata 97160 97160 0 0.0
text 576936 576936 0 0.0
lock-app nrf52840dk_nrf52840 bss 111344 111344 0 0.0
rodata 93656 93656 0 0.0
text 558380 558380 0 0.0
pigweed-app nrf52840dk_nrf52840 bss 51772 51772 0 0.0
rodata 45772 45772 0 0.0
text 339392 339392 0 0.0
pump-app nrf52840dk_nrf52840 bss 111412 111412 0 0.0
rodata 94640 94640 0 0.0
text 561548 561548 0 0.0
pump-controller-app nrf52840dk_nrf52840 bss 111352 111352 0 0.0
rodata 93716 93716 0 0.0
text 558156 558156 0 0.0
shell nrf52840dk_nrf52840 bss 107328 107328 0 0.0
rodata 71336 71336 0 0.0
text 519020 519020 0 0.0
lighting-app nrf52840dk_nrf52840+rpc bss 108552 108552 0 0.0
rodata 87940 87940 0 0.0
text 550140 550140 0 0.0
nrf5340dk_nrf5340_cpuapp bss 113684 113684 0 0.0
rodata 92400 92400 0 0.0
text 506396 506396 0 0.0
lock-app nrf5340dk_nrf5340_cpuapp bss 112716 112716 0 0.0
rodata 88916 88916 0 0.0
text 487832 487832 0 0.0
shell nrf5340dk_nrf5340_cpuapp bss 108312 108312 0 0.0
rodata 65980 65980 0 0.0
text 439620 439620 0 0.0
p6 lock-app default .bss 68208 68208 0 0.0
.data 2416 2416 0 0.0
.heap 962720 962720 0 0.0
.text 1124776 1124776 0 0.0
qpg lighting-app qpg6100+debug .bss 53528 53528 0 0.0
.data 996 996 0 0.0
.text 485332 485332 0 0.0
lock-app qpg6100+debug .bss 52480 52480 0 0.0
.data 952 952 0 0.0
.text 461508 461508 0 0.0
persistent-storage-app qpg6100+debug .bss 17778 17778 0 0.0
.data 280 280 0 0.0
.text 102704 102704 0 0.0
telink lighting-app tlsr9518adk80d bss 70972 70972 0 0.0
noinit 33216 33216 0 0.0
text 457580 457580 0 0.0

@github-actions
Copy link

PR #10398: Size comparison from aeca9b0 to 1a5be31

8 builds
platform target config section aeca9b0 1a5be31 change % change
k32w lock-app k32w061+debug .bss 69044 69044 0 0.0
.data 1864 1864 0 0.0
.text 514132 514132 0 0.0
shell k32w061+debug .bss 55088 55088 0 0.0
.data 672 672 0 0.0
.text 356884 356884 0 0.0
lighting-app k32w061+se05x+release .bss 78560 78560 0 0.0
.data 1900 1900 0 0.0
.text 612808 612808 0 0.0
p6 lock-app default .bss 68208 68208 0 0.0
.data 2416 2416 0 0.0
.heap 962720 962720 0 0.0
.text 1124776 1124776 0 0.0
qpg lighting-app qpg6100+debug .bss 53528 53528 0 0.0
.data 996 996 0 0.0
.text 485332 485332 0 0.0
lock-app qpg6100+debug .bss 52480 52480 0 0.0
.data 952 952 0 0.0
.text 461508 461508 0 0.0
persistent-storage-app qpg6100+debug .bss 17778 17778 0 0.0
.data 280 280 0 0.0
.text 102704 102704 0 0.0
telink lighting-app tlsr9518adk80d bss 70972 70972 0 0.0
noinit 33216 33216 0 0.0
text 457580 457580 0 0.0

@github-actions
Copy link

PR #10398: Size comparison from aeca9b0 to 9142fd2

24 builds
platform target config section aeca9b0 9142fd2 change % change
efr32 lighting-app BRD4161A .bss 118012 118012 0 0.0
.data 1800 1800 0 0.0
.text 780980 780980 0 0.0
lock-app BRD4161A .bss 115884 115884 0 0.0
.data 1760 1760 0 0.0
.text 760236 760236 0 0.0
window-app BRD4161A .bss 116204 116204 0 0.0
.data 1764 1764 0 0.0
.text 761136 761136 0 0.0
lighting-app BRD4161A+rpc .bss 131340 131340 0 0.0
.data 1852 1852 0 0.0
.text 760728 760728 0 0.0
esp32 all-clusters-app c3devkit .dram0.bss 60248 60248 0 0.0
.dram0.data 16232 16232 0 0.0
.flash.rodata 198144 198144 0 0.0
.flash.text 868918 868918 0 0.0
.iram0.text 57330 57330 0 0.0
m5stack .dram0.bss 62752 62752 0 0.0
.dram0.data 32084 32084 0 0.0
.flash.rodata 206732 206732 0 0.0
.flash.text 900003 899911 -92 -0.0
.iram0.text 125115 125115 0 0.0
k32w lock-app k32w061+debug .bss 69044 69044 0 0.0
.data 1864 1864 0 0.0
.text 514132 514132 0 0.0
shell k32w061+debug .bss 55088 55088 0 0.0
.data 672 672 0 0.0
.text 356884 356884 0 0.0
lighting-app k32w061+se05x+release .bss 78560 78560 0 0.0
.data 1900 1900 0 0.0
.text 612808 612808 0 0.0
linux all-clusters-app debug .bss 52144 52144 0 0.0
.data 978 978 0 0.0
.data.rel.ro 58352 58352 0 0.0
.dynamic 592 592 0 0.0
.got 4080 4080 0 0.0
.init 27 27 0 0.0
.init_array 512 512 0 0.0
.rodata 134453 134453 0 0.0
.text 1317778 1317778 0 0.0
chip-tool debug .bss 17584 17584 0 0.0
.data 1584 1584 0 0.0
.data.rel.ro 77392 77392 0 0.0
.dynamic 592 592 0 0.0
.got 4328 4328 0 0.0
.init 27 27 0 0.0
.init_array 416 416 0 0.0
.rodata 173408 173408 0 0.0
.text 2424437 2424437 0 0.0
ota-provider-app debug .bss 37472 37472 0 0.0
.data 752 752 0 0.0
.data.rel.ro 23112 23112 0 0.0
.dynamic 592 592 0 0.0
.got 4016 4016 0 0.0
.init 27 27 0 0.0
.init_array 448 448 0 0.0
.rodata 108536 108536 0 0.0
.text 1004786 1004786 0 0.0
ota-requestor-app debug .bss 205728 205728 0 0.0
.data 752 752 0 0.0
.data.rel.ro 24408 24408 0 0.0
.dynamic 592 592 0 0.0
.got 4144 4144 0 0.0
.init 27 27 0 0.0
.init_array 520 520 0 0.0
.rodata 126576 126576 0 0.0
.text 1124594 1124594 0 0.0
shell debug .bss 16104 16104 0 0.0
.data 242 242 0 0.0
.data.rel.ro 35192 35192 0 0.0
.dynamic 592 592 0 0.0
.got 3512 3512 0 0.0
.init 27 27 0 0.0
.init_array 344 344 0 0.0
.rodata 70639 70639 0 0.0
.text 573842 573842 0 0.0
tv-app debug .bss 216368 216368 0 0.0
.data 2032 2032 0 0.0
.data.rel.ro 55536 55536 0 0.0
.dynamic 592 592 0 0.0
.got 4408 4408 0 0.0
.init 27 27 0 0.0
.init_array 616 616 0 0.0
.rodata 150248 150248 0 0.0
.text 1462946 1462946 0 0.0
bridge-app debug+rpc .bss 52880 52880 0 0.0
.data 976 976 0 0.0
.data.rel.ro 25480 25480 0 0.0
.dynamic 592 592 0 0.0
.got 3952 3952 0 0.0
.init 27 27 0 0.0
.init_array 408 408 0 0.0
.rodata 109212 109212 0 0.0
.text 1047045 1047045 0 0.0
lighting-app debug+rpc .bss 42200 42200 0 0.0
.data 1106 1106 0 0.0
.data.rel.ro 52192 52192 0 0.0
.dynamic 608 608 0 0.0
.got 4112 4112 0 0.0
.init 27 27 0 0.0
.init_array 536 536 0 0.0
.rodata 126353 126353 0 0.0
.text 1248194 1248194 0 0.0
mbed lighting-app CY8CPROTO_062_4343W+release .bss 172132 172132 0 0.0
.data 5464 5464 0 0.0
.heap 858848 858848 0 0.0
.text 1218656 1218656 0 0.0
lock-app CY8CPROTO_062_4343W+release .bss 171068 171068 0 0.0
.data 5432 5432 0 0.0
.heap 859944 859944 0 0.0
.text 1196648 1196648 0 0.0
p6 lock-app default .bss 68208 68208 0 0.0
.data 2416 2416 0 0.0
.heap 962720 962720 0 0.0
.text 1124776 1124776 0 0.0
qpg lighting-app qpg6100+debug .bss 53528 53528 0 0.0
.data 996 996 0 0.0
.text 485332 485332 0 0.0
lock-app qpg6100+debug .bss 52480 52480 0 0.0
.data 952 952 0 0.0
.text 461508 461508 0 0.0
persistent-storage-app qpg6100+debug .bss 17778 17778 0 0.0
.data 280 280 0 0.0
.text 102704 102704 0 0.0
telink lighting-app tlsr9518adk80d bss 70972 70972 0 0.0
noinit 33216 33216 0 0.0
text 457580 457580 0 0.0

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.

6 participants