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

Add zap gen for Matter access privilege definitions #16327

Merged
merged 21 commits into from
Mar 23, 2022

Conversation

mlepage-google
Copy link
Contributor

@mlepage-google mlepage-google commented Mar 16, 2022

Problem

Data is not generated for access privileges.

Issue #14419

Change overview

New zap template iterates over access definitions for app server
clusters, for attributes/commands/events, to generate parallel arrays of
custom privileges for read/write attribute, invoke command, and read
event.

New privilege storage source files provide an API to access the generated
data, and an implementation using the generated data.

The data is generated and the storage is built per-app.

The library (DM, IM, app common) RequiredPrivilege module now uses the
privilege-storage API to access populated data on a per-app basis. Weak
implementations of the privilege storage API provide a default implementation
lacking generated data, so test artifacts can be built.

Fixes #14419

Testing

  • Built and ran all-clusters-app and chip-tool on Linux
  • Manually tested default and custom privileges for ACL attributes and door lock commands
  • Unit tests pass on Linux
  • Inspected generated header files

ZAPT file iterates over access definitions for app server clusters, for
attributes/commands/events, to generate parallel arrays of custom
privileges for read/write attribute, invoke command, and read event.

These are generated and built per-app, and linked in by the library's
RequiredPrivilege module. Weak implementations provide an empty default
(needed for testing).

Fixes project-chip#14419
Use chip_server_cluster_attributes and all_incoming_commands_for_cluster
so only enabled attributes and commands have access generated.
@github-actions
Copy link

github-actions bot commented Mar 21, 2022

PR #16327: Size comparison from 7d1256f to 2b76e44

Increases (17 builds for efr32, esp32, linux, p6)
platform target config section 7d1256f 2b76e44 change % change
efr32 lighting-app BRD4161A (read only) 921976 922008 32 0.0
.text 921968 922000 32 0.0
BRD4161A+rpc (read only) 950788 950820 32 0.0
.text 950780 950812 32 0.0
esp32 all-clusters-app c3devkit (read only) 961988 962042 54 0.0
(read/write) 1393306 1393434 128 0.0
.dram0.data 14188 14196 8 0.1
.flash.rodata 198160 198272 112 0.1
.flash.text 961988 962042 54 0.0
m5stack (read/write) 461148 461268 120 0.0
.flash.rodata 227720 227840 120 0.1
linux all-clusters-app debug (read only) 2477201 2477345 144 0.0
.text 2101746 2102018 272 0.0
bridge-app debug+rpc .text 1492661 1492837 176 0.0
chip-tool-ipv6only arm64 .got 55328 55336 8 0.0
door-lock-app debug (read only) 2004473 2004521 48 0.0
.text 1673634 1673810 176 0.0
lighting-app debug+rpc .text 1843570 1843730 160 0.0
ota-provider-app debug .text 1620498 1620594 96 0.0
ota-requestor-app debug .text 1654034 1654130 96 0.0
shell debug (read only) 2426545 2426673 128 0.0
.text 2060418 2060674 256 0.0
thermostat-no-ble arm64 .text 1899152 1899392 240 0.0
tv-app debug .text 2295330 2295490 160 0.0
p6 all-clusters-app default (read/write) 2492960 2493216 256 0.0
.text 1451224 1451480 256 0.0
light-app default (read/write) 2396360 2396384 24 0.0
.text 1354624 1354648 24 0.0
lock-app default (read/write) 2359896 2359920 24 0.0
.text 1318160 1318184 24 0.0
Decreases (20 builds for cyw30739, esp32, k32w, linux, mbed, nrfconnect, telink)
platform target config section 7d1256f 2b76e44 change % change
cyw30739 light cyw930739m2evb_01 (read/write) 603854 603726 -128 -0.0
.app_xip_area 510952 510824 -128 -0.0
lock cyw930739m2evb_01 (read/write) 561642 561522 -120 -0.0
.app_xip_area 470268 470148 -120 -0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 571494 571350 -144 -0.0
.app_xip_area 470472 470328 -144 -0.0
esp32 all-clusters-app m5stack (read only) 1018119 1018087 -32 -0.0
.flash.text 1012735 1012703 -32 -0.0
k32w light k32w061+release (read/write) 701092 700948 -144 -0.0
.text 615768 615624 -144 -0.0
lock k32w061+release (read/write) 700948 700820 -128 -0.0
.text 615616 615488 -128 -0.0
linux all-clusters-app debug (read/write) 143152 143120 -32 -0.0
.data.rel.ro 78840 78808 -32 -0.0
.rodata 212005 211973 -32 -0.0
bridge-app debug+rpc (read only) 1752397 1752381 -16 -0.0
(read/write) 89424 89392 -32 -0.0
.data.rel.ro 37944 37912 -32 -0.1
.rodata 144524 144428 -96 -0.1
chip-tool debug (read only) 1014584 10145269 -576 -0.0
(read/write) 354848 354784 -64 -0.0
.data.rel.ro 325408 325344 -64 -0.0
.rodata 517813 517493 -320 -0.1
.text 8845429 8845269 -160 -0.0
chip-tool-ipv6only arm64 (read only) 9769292 9768716 -576 -0.0
(read/write) 472689 472657 -32 -0.0
.data.rel.ro 371824 371792 -32 -0.0
.rodata 493604 493332 -272 -0.1
.text 8224324 8224100 -224 -0.0
door-lock-app debug (read/write) 116832 116800 -32 -0.0
.data.rel.ro 62856 62824 -32 -0.1
.rodata 181180 181148 -32 -0.0
lighting-app debug+rpc (read only) 2177913 2177881 -32 -0.0
(read/write) 123792 123760 -32 -0.0
.data.rel.ro 67928 67896 -32 -0.0
.rodata 175324 175228 -96 -0.1
ota-provider-app debug (read only) 1938833 1938545 -288 -0.0
(read/write) 112624 112592 -32 -0.0
.data.rel.ro 58200 58168 -32 -0.1
.rodata 166571 166283 -288 -0.2
ota-requestor-app debug (read only) 1969001 1968713 -288 -0.0
(read/write) 115592 115560 -32 -0.0
.data.rel.ro 60264 60232 -32 -0.1
.rodata 162980 162692 -288 -0.2
shell debug (read/write) 147208 147176 -32 -0.0
.data.rel.ro 73472 73440 -32 -0.0
.rodata 209426 209394 -32 -0.0
thermostat-no-ble arm64 (read only) 2262500 2262444 -56 -0.0
(read/write) 148273 148241 -32 -0.0
.data.rel.ro 77000 76968 -32 -0.0
.rodata 140036 139836 -200 -0.1
tv-app debug (read only) 2677465 2677401 -64 -0.0
(read/write) 247712 247648 -64 -0.0
.data.rel.ro 74168 74104 -64 -0.1
.rodata 207285 207157 -128 -0.1
mbed lock-app CY8CPROTO_062_4343W+release (read/write) 2353452 2353308 -144 -0.0
.text 1316052 1315908 -144 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1155907 1155747 -160 -0.0
rodata 145956 145876 -80 -0.1
text 788072 787992 -80 -0.0
telink lighting-app tlsr9518adk80d (read/write) 895806 895662 -144 -0.0
text 633382 633320 -62 -0.0
Full report (27 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section 7d1256f 2b76e44 change % change
cyw30739 light cyw930739m2evb_01 (read/write) 603854 603726 -128 -0.0
.app_xip_area 510952 510824 -128 -0.0
.bss 75656 75656 0 0.0
.data 596 596 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
lock cyw930739m2evb_01 (read/write) 561642 561522 -120 -0.0
.app_xip_area 470268 470148 -120 -0.0
.bss 74160 74160 0 0.0
.data 560 560 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 571494 571350 -144 -0.0
.app_xip_area 470472 470328 -144 -0.0
.bss 83488 83488 0 0.0
.data 500 500 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read only) 921976 922008 32 0.0
(read/write) 128760 128760 0 0.0
.bss 126768 126768 0 0.0
.data 1988 1988 0 0.0
.text 921968 922000 32 0.0
BRD4161A+rpc (read only) 950788 950820 32 0.0
(read/write) 144712 144712 0 0.0
.bss 142544 142544 0 0.0
.data 2168 2168 0 0.0
.text 950780 950812 32 0.0
window-app BRD4161A (read only) 852304 852304 0 0.0
(read/write) 126712 126712 0 0.0
.bss 124848 124848 0 0.0
.data 1864 1864 0 0.0
.text 852296 852296 0 0.0
esp32 all-clusters-app c3devkit (read only) 961988 962042 54 0.0
(read/write) 1393306 1393434 128 0.0
.dram0.bss 62048 62048 0 0.0
.dram0.data 14188 14196 8 0.1
.flash.rodata 198160 198272 112 0.1
.flash.text 961988 962042 54 0.0
.iram0.text 62016 62016 0 0.0
m5stack (read only) 1018119 1018087 -32 -0.0
(read/write) 461148 461268 120 0.0
.dram0.bss 67576 67576 0 0.0
.dram0.data 34016 34016 0 0.0
.flash.rodata 227720 227840 120 0.1
.flash.text 1012735 1012703 -32 -0.0
.iram0.text 123107 123107 0 0.0
k32w light k32w061+release (read/write) 701092 700948 -144 -0.0
.bss 77656 77656 0 0.0
.data 1868 1868 0 0.0
.text 615768 615624 -144 -0.0
lock k32w061+release (read/write) 700948 700820 -128 -0.0
.bss 77624 77624 0 0.0
.data 1908 1908 0 0.0
.text 615616 615488 -128 -0.0
linux all-clusters-app debug (read only) 2477201 2477345 144 0.0
(read/write) 143152 143120 -32 -0.0
.bss 57312 57312 0 0.0
.data 1264 1264 0 0.0
.data.rel.ro 78840 78808 -32 -0.0
.dynamic 592 592 0 0.0
.got 4168 4168 0 0.0
.init 27 27 0 0.0
.init_array 936 936 0 0.0
.rodata 212005 211973 -32 -0.0
.text 2101746 2102018 272 0.0
bridge-app debug+rpc (read only) 1752397 1752381 -16 -0.0
(read/write) 89424 89392 -32 -0.0
.bss 44456 44456 0 0.0
.data 1952 1952 0 0.0
.data.rel.ro 37944 37912 -32 -0.1
.dynamic 592 592 0 0.0
.got 3920 3920 0 0.0
.init 27 27 0 0.0
.init_array 544 544 0 0.0
.rodata 144524 144428 -96 -0.1
.text 1492661 1492837 176 0.0
chip-tool debug (read only) 1014584 10145269 -576 -0.0
(read/write) 354848 354784 -64 -0.0
.bss 22304 22304 0 0.0
.data 1072 1072 0 0.0
.data.rel.ro 325408 325344 -64 -0.0
.dynamic 608 608 0 0.0
.got 4784 4784 0 0.0
.init 27 27 0 0.0
.init_array 632 632 0 0.0
.rodata 517813 517493 -320 -0.1
.text 8845429 8845269 -160 -0.0
chip-tool-ipv6only arm64 (read only) 9769292 9768716 -576 -0.0
(read/write) 472689 472657 -32 -0.0
.bss 40609 40609 0 0.0
.data 1128 1128 0 0.0
.data.rel.ro 371824 371792 -32 -0.0
.dynamic 560 560 0 0.0
.got 55328 55336 8 0.0
.init 24 24 0 0.0
.init_array 192 192 0 0.0
.rodata 493604 493332 -272 -0.1
.text 8224324 8224100 -224 -0.0
door-lock-app debug (read only) 2004473 2004521 48 0.0
(read/write) 116832 116800 -32 -0.0
.bss 47584 47584 0 0.0
.data 992 992 0 0.0
.data.rel.ro 62856 62824 -32 -0.1
.dynamic 592 592 0 0.0
.got 4120 4120 0 0.0
.init 27 27 0 0.0
.init_array 664 664 0 0.0
.rodata 181180 181148 -32 -0.0
.text 1673634 1673810 176 0.0
lighting-app debug+rpc (read only) 2177913 2177881 -32 -0.0
(read/write) 123792 123760 -32 -0.0
.bss 48864 48864 0 0.0
.data 1472 1472 0 0.0
.data.rel.ro 67928 67896 -32 -0.0
.dynamic 608 608 0 0.0
.got 4168 4168 0 0.0
.init 27 27 0 0.0
.init_array 744 744 0 0.0
.rodata 175324 175228 -96 -0.1
.text 1843570 1843730 160 0.0
ota-provider-app debug (read only) 1938833 1938545 -288 -0.0
(read/write) 112624 112592 -32 -0.0
.bss 47488 47488 0 0.0
.data 1288 1288 0 0.0
.data.rel.ro 58200 58168 -32 -0.1
.dynamic 608 608 0 0.0
.got 4376 4376 0 0.0
.init 27 27 0 0.0
.init_array 616 616 0 0.0
.rodata 166571 166283 -288 -0.2
.text 1620498 1620594 96 0.0
ota-requestor-app debug (read only) 1969001 1968713 -288 -0.0
(read/write) 115592 115560 -32 -0.0
.bss 48480 48480 0 0.0
.data 1416 1416 0 0.0
.data.rel.ro 60264 60232 -32 -0.1
.dynamic 592 592 0 0.0
.got 4168 4168 0 0.0
.init 27 27 0 0.0
.init_array 640 640 0 0.0
.rodata 162980 162692 -288 -0.2
.text 1654034 1654130 96 0.0
shell debug (read only) 2426545 2426673 128 0.0
(read/write) 147208 147176 -32 -0.0
.bss 67240 67240 0 0.0
.data 784 784 0 0.0
.data.rel.ro 73472 73440 -32 -0.0
.dynamic 592 592 0 0.0
.got 4152 4152 0 0.0
.init 27 27 0 0.0
.init_array 920 920 0 0.0
.rodata 209426 209394 -32 -0.0
.text 2060418 2060674 256 0.0
thermostat-no-ble arm64 (read only) 2262500 2262444 -56 -0.0
(read/write) 148273 148241 -32 -0.0
.bss 62753 62753 0 0.0
.data 1024 1024 0 0.0
.data.rel.ro 77000 76968 -32 -0.0
.dynamic 560 560 0 0.0
.got 4480 4480 0 0.0
.init 24 24 0 0.0
.init_array 360 360 0 0.0
.rodata 140036 139836 -200 -0.1
.text 1899152 1899392 240 0.0
tv-app debug (read only) 2677465 2677401 -64 -0.0
(read/write) 247712 247648 -64 -0.0
.bss 164384 164384 0 0.0
.data 3104 3104 0 0.0
.data.rel.ro 74168 74104 -64 -0.1
.dynamic 592 592 0 0.0
.got 4552 4552 0 0.0
.init 27 27 0 0.0
.init_array 888 888 0 0.0
.rodata 207285 207157 -128 -0.1
.text 2295330 2295490 160 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2353452 2353308 -144 -0.0
.bss 184652 184652 0 0.0
.data 5752 5752 0 0.0
.text 1316052 1315908 -144 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1155907 1155747 -160 -0.0
bss 146716 146716 0 0.0
rodata 145956 145876 -80 -0.1
text 788072 787992 -80 -0.0
p6 all-clusters-app default (read/write) 2492960 2493216 256 0.0
.bss 118072 118072 0 0.0
.data 2632 2632 0 0.0
.text 1451224 1451480 256 0.0
light-app default (read/write) 2396360 2396384 24 0.0
.bss 111544 111544 0 0.0
.data 2488 2488 0 0.0
.text 1354624 1354648 24 0.0
lock-app default (read/write) 2359896 2359920 24 0.0
.bss 111288 111288 0 0.0
.data 2448 2448 0 0.0
.text 1318160 1318184 24 0.0
telink lighting-app tlsr9518adk80d (read/write) 895806 895662 -144 -0.0
bss 87424 87424 0 0.0
noinit 37160 37160 0 0.0
text 633382 633320 -62 -0.0

@github-actions
Copy link

github-actions bot commented Mar 21, 2022

PR #16327: Size comparison from a72ab9b to 328667f

Increases (14 builds for esp32, linux, p6)
platform target config section a72ab9b 328667f change % change
esp32 all-clusters-app c3devkit (read only) 962010 962026 16 0.0
(read/write) 1393306 1393434 128 0.0
.dram0.data 14188 14196 8 0.1
.flash.rodata 198160 198272 112 0.1
.flash.text 962010 962026 16 0.0
m5stack (read/write) 461148 461268 120 0.0
.flash.rodata 227720 227840 120 0.1
linux all-clusters-app debug (read only) 2477281 2477345 64 0.0
.text 2101826 2102018 192 0.0
bridge-app debug+rpc .text 1492741 1492837 96 0.0
chip-tool-ipv6only arm64 .got 55328 55336 8 0.0
door-lock-app debug (read only) 2004473 2004521 48 0.0
.text 1673634 1673810 176 0.0
lighting-app debug+rpc .text 1843634 1843730 96 0.0
ota-provider-app debug .text 1620498 1620594 96 0.0
ota-requestor-app debug .text 1654034 1654130 96 0.0
shell debug (read only) 2426625 2426673 48 0.0
.text 2060498 2060674 176 0.0
thermostat-no-ble arm64 .text 1899152 1899360 208 0.0
tv-app debug .text 2295394 2295490 96 0.0
p6 all-clusters-app default (read/write) 2492976 2493216 240 0.0
.text 1451240 1451480 240 0.0
light-app default (read/write) 2396376 2396384 8 0.0
.text 1354640 1354648 8 0.0
Decreases (21 builds for cyw30739, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section a72ab9b 328667f change % change
cyw30739 light cyw930739m2evb_01 (read/write) 603870 603718 -152 -0.0
.app_xip_area 510968 510816 -152 -0.0
lock cyw930739m2evb_01 (read/write) 561658 561530 -128 -0.0
.app_xip_area 470284 470156 -128 -0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 571494 571358 -136 -0.0
.app_xip_area 470472 470336 -136 -0.0
esp32 all-clusters-app m5stack (read only) 1018143 1018083 -60 -0.0
.flash.text 1012759 1012699 -60 -0.0
k32w light k32w061+release (read/write) 701092 700948 -144 -0.0
.text 615768 615624 -144 -0.0
lock k32w061+release (read/write) 700964 700820 -144 -0.0
.text 615632 615488 -144 -0.0
linux all-clusters-app debug (read/write) 143152 143120 -32 -0.0
.data.rel.ro 78840 78808 -32 -0.0
.rodata 212005 211973 -32 -0.0
bridge-app debug+rpc (read only) 1752637 1752381 -256 -0.0
(read/write) 89424 89392 -32 -0.0
.data.rel.ro 37944 37912 -32 -0.1
.rodata 144684 144428 -256 -0.2
chip-tool debug (read only) 10145893 10145269 -624 -0.0
(read/write) 354848 354784 -64 -0.0
.data.rel.ro 325408 325344 -64 -0.0
.rodata 517813 517493 -320 -0.1
.text 8845477 8845269 -208 -0.0
chip-tool-ipv6only arm64 (read only) 9769404 9768716 -688 -0.0
(read/write) 472689 472657 -32 -0.0
.data.rel.ro 371824 371792 -32 -0.0
.rodata 493604 493332 -272 -0.1
.text 8224436 8224100 -336 -0.0
door-lock-app debug (read/write) 116832 116800 -32 -0.0
.data.rel.ro 62856 62824 -32 -0.1
.rodata 181180 181148 -32 -0.0
lighting-app debug+rpc (read only) 2178137 2177881 -256 -0.0
(read/write) 123792 123760 -32 -0.0
.data.rel.ro 67928 67896 -32 -0.0
.rodata 175484 175228 -256 -0.1
ota-provider-app debug (read only) 1938833 1938545 -288 -0.0
(read/write) 112624 112592 -32 -0.0
.data.rel.ro 58200 58168 -32 -0.1
.rodata 166571 166283 -288 -0.2
ota-requestor-app debug (read only) 1969001 1968713 -288 -0.0
(read/write) 115592 115560 -32 -0.0
.data.rel.ro 60264 60232 -32 -0.1
.rodata 162980 162692 -288 -0.2
shell debug (read/write) 147208 147176 -32 -0.0
.data.rel.ro 73472 73440 -32 -0.0
.rodata 209426 209394 -32 -0.0
thermostat-no-ble arm64 (read only) 2262500 2262412 -88 -0.0
(read/write) 148273 148241 -32 -0.0
.data.rel.ro 77000 76968 -32 -0.0
.rodata 140036 139836 -200 -0.1
tv-app debug (read only) 2677657 2677401 -256 -0.0
(read/write) 247712 247648 -64 -0.0
.data.rel.ro 74168 74104 -64 -0.1
.rodata 207413 207157 -256 -0.1
mbed lock-app CY8CPROTO_062_4343W+release (read/write) 2353452 2353308 -144 -0.0
.text 1316052 1315908 -144 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1155923 1155731 -192 -0.0
rodata 145956 145876 -80 -0.1
text 788084 787980 -104 -0.0
p6 lock-app default (read/write) 2359928 2359920 -8 -0.0
.text 1318192 1318184 -8 -0.0
telink lighting-app tlsr9518adk80d (read/write) 895830 895670 -160 -0.0
text 633404 633324 -80 -0.0
Full report (27 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section a72ab9b 328667f change % change
cyw30739 light cyw930739m2evb_01 (read/write) 603870 603718 -152 -0.0
.app_xip_area 510968 510816 -152 -0.0
.bss 75656 75656 0 0.0
.data 596 596 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
lock cyw930739m2evb_01 (read/write) 561658 561530 -128 -0.0
.app_xip_area 470284 470156 -128 -0.0
.bss 74160 74160 0 0.0
.data 560 560 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 571494 571358 -136 -0.0
.app_xip_area 470472 470336 -136 -0.0
.bss 83488 83488 0 0.0
.data 500 500 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read only) 922008 922008 0 0.0
(read/write) 128760 128760 0 0.0
.bss 126768 126768 0 0.0
.data 1988 1988 0 0.0
.text 922000 922000 0 0.0
BRD4161A+rpc (read only) 950820 950820 0 0.0
(read/write) 144712 144712 0 0.0
.bss 142544 142544 0 0.0
.data 2168 2168 0 0.0
.text 950812 950812 0 0.0
window-app BRD4161A (read only) 852304 852304 0 0.0
(read/write) 126712 126712 0 0.0
.bss 124848 124848 0 0.0
.data 1864 1864 0 0.0
.text 852296 852296 0 0.0
esp32 all-clusters-app c3devkit (read only) 962010 962026 16 0.0
(read/write) 1393306 1393434 128 0.0
.dram0.bss 62048 62048 0 0.0
.dram0.data 14188 14196 8 0.1
.flash.rodata 198160 198272 112 0.1
.flash.text 962010 962026 16 0.0
.iram0.text 62016 62016 0 0.0
m5stack (read only) 1018143 1018083 -60 -0.0
(read/write) 461148 461268 120 0.0
.dram0.bss 67576 67576 0 0.0
.dram0.data 34016 34016 0 0.0
.flash.rodata 227720 227840 120 0.1
.flash.text 1012759 1012699 -60 -0.0
.iram0.text 123107 123107 0 0.0
k32w light k32w061+release (read/write) 701092 700948 -144 -0.0
.bss 77656 77656 0 0.0
.data 1868 1868 0 0.0
.text 615768 615624 -144 -0.0
lock k32w061+release (read/write) 700964 700820 -144 -0.0
.bss 77624 77624 0 0.0
.data 1908 1908 0 0.0
.text 615632 615488 -144 -0.0
linux all-clusters-app debug (read only) 2477281 2477345 64 0.0
(read/write) 143152 143120 -32 -0.0
.bss 57312 57312 0 0.0
.data 1264 1264 0 0.0
.data.rel.ro 78840 78808 -32 -0.0
.dynamic 592 592 0 0.0
.got 4168 4168 0 0.0
.init 27 27 0 0.0
.init_array 936 936 0 0.0
.rodata 212005 211973 -32 -0.0
.text 2101826 2102018 192 0.0
bridge-app debug+rpc (read only) 1752637 1752381 -256 -0.0
(read/write) 89424 89392 -32 -0.0
.bss 44456 44456 0 0.0
.data 1952 1952 0 0.0
.data.rel.ro 37944 37912 -32 -0.1
.dynamic 592 592 0 0.0
.got 3920 3920 0 0.0
.init 27 27 0 0.0
.init_array 544 544 0 0.0
.rodata 144684 144428 -256 -0.2
.text 1492741 1492837 96 0.0
chip-tool debug (read only) 10145893 10145269 -624 -0.0
(read/write) 354848 354784 -64 -0.0
.bss 22304 22304 0 0.0
.data 1072 1072 0 0.0
.data.rel.ro 325408 325344 -64 -0.0
.dynamic 608 608 0 0.0
.got 4784 4784 0 0.0
.init 27 27 0 0.0
.init_array 632 632 0 0.0
.rodata 517813 517493 -320 -0.1
.text 8845477 8845269 -208 -0.0
chip-tool-ipv6only arm64 (read only) 9769404 9768716 -688 -0.0
(read/write) 472689 472657 -32 -0.0
.bss 40609 40609 0 0.0
.data 1128 1128 0 0.0
.data.rel.ro 371824 371792 -32 -0.0
.dynamic 560 560 0 0.0
.got 55328 55336 8 0.0
.init 24 24 0 0.0
.init_array 192 192 0 0.0
.rodata 493604 493332 -272 -0.1
.text 8224436 8224100 -336 -0.0
door-lock-app debug (read only) 2004473 2004521 48 0.0
(read/write) 116832 116800 -32 -0.0
.bss 47584 47584 0 0.0
.data 992 992 0 0.0
.data.rel.ro 62856 62824 -32 -0.1
.dynamic 592 592 0 0.0
.got 4120 4120 0 0.0
.init 27 27 0 0.0
.init_array 664 664 0 0.0
.rodata 181180 181148 -32 -0.0
.text 1673634 1673810 176 0.0
lighting-app debug+rpc (read only) 2178137 2177881 -256 -0.0
(read/write) 123792 123760 -32 -0.0
.bss 48864 48864 0 0.0
.data 1472 1472 0 0.0
.data.rel.ro 67928 67896 -32 -0.0
.dynamic 608 608 0 0.0
.got 4168 4168 0 0.0
.init 27 27 0 0.0
.init_array 744 744 0 0.0
.rodata 175484 175228 -256 -0.1
.text 1843634 1843730 96 0.0
ota-provider-app debug (read only) 1938833 1938545 -288 -0.0
(read/write) 112624 112592 -32 -0.0
.bss 47488 47488 0 0.0
.data 1288 1288 0 0.0
.data.rel.ro 58200 58168 -32 -0.1
.dynamic 608 608 0 0.0
.got 4376 4376 0 0.0
.init 27 27 0 0.0
.init_array 616 616 0 0.0
.rodata 166571 166283 -288 -0.2
.text 1620498 1620594 96 0.0
ota-requestor-app debug (read only) 1969001 1968713 -288 -0.0
(read/write) 115592 115560 -32 -0.0
.bss 48480 48480 0 0.0
.data 1416 1416 0 0.0
.data.rel.ro 60264 60232 -32 -0.1
.dynamic 592 592 0 0.0
.got 4168 4168 0 0.0
.init 27 27 0 0.0
.init_array 640 640 0 0.0
.rodata 162980 162692 -288 -0.2
.text 1654034 1654130 96 0.0
shell debug (read only) 2426625 2426673 48 0.0
(read/write) 147208 147176 -32 -0.0
.bss 67240 67240 0 0.0
.data 784 784 0 0.0
.data.rel.ro 73472 73440 -32 -0.0
.dynamic 592 592 0 0.0
.got 4152 4152 0 0.0
.init 27 27 0 0.0
.init_array 920 920 0 0.0
.rodata 209426 209394 -32 -0.0
.text 2060498 2060674 176 0.0
thermostat-no-ble arm64 (read only) 2262500 2262412 -88 -0.0
(read/write) 148273 148241 -32 -0.0
.bss 62753 62753 0 0.0
.data 1024 1024 0 0.0
.data.rel.ro 77000 76968 -32 -0.0
.dynamic 560 560 0 0.0
.got 4480 4480 0 0.0
.init 24 24 0 0.0
.init_array 360 360 0 0.0
.rodata 140036 139836 -200 -0.1
.text 1899152 1899360 208 0.0
tv-app debug (read only) 2677657 2677401 -256 -0.0
(read/write) 247712 247648 -64 -0.0
.bss 164384 164384 0 0.0
.data 3104 3104 0 0.0
.data.rel.ro 74168 74104 -64 -0.1
.dynamic 592 592 0 0.0
.got 4552 4552 0 0.0
.init 27 27 0 0.0
.init_array 888 888 0 0.0
.rodata 207413 207157 -256 -0.1
.text 2295394 2295490 96 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2353452 2353308 -144 -0.0
.bss 184652 184652 0 0.0
.data 5752 5752 0 0.0
.text 1316052 1315908 -144 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1155923 1155731 -192 -0.0
bss 146716 146716 0 0.0
rodata 145956 145876 -80 -0.1
text 788084 787980 -104 -0.0
p6 all-clusters-app default (read/write) 2492976 2493216 240 0.0
.bss 118072 118072 0 0.0
.data 2632 2632 0 0.0
.text 1451240 1451480 240 0.0
light-app default (read/write) 2396376 2396384 8 0.0
.bss 111544 111544 0 0.0
.data 2488 2488 0 0.0
.text 1354640 1354648 8 0.0
lock-app default (read/write) 2359928 2359920 -8 -0.0
.bss 111288 111288 0 0.0
.data 2448 2448 0 0.0
.text 1318192 1318184 -8 -0.0
telink lighting-app tlsr9518adk80d (read/write) 895830 895670 -160 -0.0
bss 87424 87424 0 0.0
noinit 37160 37160 0 0.0
text 633404 633324 -80 -0.0

More conservative defaults if real implementations are not linked in.
@github-actions
Copy link

github-actions bot commented Mar 22, 2022

PR #16327: Size comparison from a72ab9b to 0004383

Increases (11 builds for efr32, linux, p6)
platform target config section a72ab9b 0004383 change % change
efr32 window-app BRD4161A (read only) 852304 852384 80 0.0
(read/write) 126712 126720 8 0.0
.bss 124848 124856 8 0.0
.text 852296 852376 80 0.0
linux bridge-app debug+rpc .text 1492741 1492837 96 0.0
chip-tool-ipv6only arm64 .got 55328 55336 8 0.0
door-lock-app debug (read only) 2004473 2004521 48 0.0
.text 1673634 1673810 176 0.0
lighting-app debug+rpc .text 1843634 1843730 96 0.0
ota-provider-app debug .text 1620498 1620594 96 0.0
ota-requestor-app debug .text 1654034 1654130 96 0.0
thermostat-no-ble arm64 .text 1899152 1899360 208 0.0
tv-app debug .text 2295394 2295490 96 0.0
p6 all-clusters-app default (read/write) 2492976 2493200 224 0.0
.text 1451240 1451464 224 0.0
light-app default (read/write) 2396376 2396384 8 0.0
.text 1354640 1354648 8 0.0
Decreases (20 builds for cyw30739, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section a72ab9b 0004383 change % change
cyw30739 light cyw930739m2evb_01 (read/write) 603870 603718 -152 -0.0
.app_xip_area 510968 510816 -152 -0.0
lock cyw930739m2evb_01 (read/write) 561658 561530 -128 -0.0
.app_xip_area 470284 470156 -128 -0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 571494 571358 -136 -0.0
.app_xip_area 470472 470336 -136 -0.0
k32w light k32w061+release (read/write) 701092 700948 -144 -0.0
.text 615768 615624 -144 -0.0
lock k32w061+release (read/write) 700964 700820 -144 -0.0
.text 615632 615488 -144 -0.0
linux all-clusters-app debug (read only) 2477281 2477153 -128 -0.0
(read/write) 143152 143120 -32 -0.0
.data.rel.ro 78840 78808 -32 -0.0
.rodata 212005 211973 -32 -0.0
bridge-app debug+rpc (read only) 1752637 1752381 -256 -0.0
(read/write) 89424 89392 -32 -0.0
.data.rel.ro 37944 37912 -32 -0.1
.rodata 144684 144428 -256 -0.2
chip-tool debug (read only) 10145893 10145269 -624 -0.0
(read/write) 354848 354784 -64 -0.0
.data.rel.ro 325408 325344 -64 -0.0
.rodata 517813 517493 -320 -0.1
.text 8845477 8845269 -208 -0.0
chip-tool-ipv6only arm64 (read only) 9769404 9768716 -688 -0.0
(read/write) 472689 472657 -32 -0.0
.data.rel.ro 371824 371792 -32 -0.0
.rodata 493604 493332 -272 -0.1
.text 8224436 8224100 -336 -0.0
door-lock-app debug (read/write) 116832 116800 -32 -0.0
.data.rel.ro 62856 62824 -32 -0.1
.rodata 181180 181148 -32 -0.0
lighting-app debug+rpc (read only) 2178137 2177881 -256 -0.0
(read/write) 123792 123760 -32 -0.0
.data.rel.ro 67928 67896 -32 -0.0
.rodata 175484 175228 -256 -0.1
ota-provider-app debug (read only) 1938833 1938545 -288 -0.0
(read/write) 112624 112592 -32 -0.0
.data.rel.ro 58200 58168 -32 -0.1
.rodata 166571 166283 -288 -0.2
ota-requestor-app debug (read only) 1969001 1968713 -288 -0.0
(read/write) 115592 115560 -32 -0.0
.data.rel.ro 60264 60232 -32 -0.1
.rodata 162980 162692 -288 -0.2
shell debug (read only) 2426625 2426481 -144 -0.0
(read/write) 147208 147176 -32 -0.0
.data.rel.ro 73472 73440 -32 -0.0
.rodata 209426 209394 -32 -0.0
.text 2060498 2060482 -16 -0.0
thermostat-no-ble arm64 (read only) 2262500 2262412 -88 -0.0
(read/write) 148273 148241 -32 -0.0
.data.rel.ro 77000 76968 -32 -0.0
.rodata 140036 139836 -200 -0.1
tv-app debug (read only) 2677657 2677401 -256 -0.0
(read/write) 247712 247648 -64 -0.0
.data.rel.ro 74168 74104 -64 -0.1
.rodata 207413 207157 -256 -0.1
mbed lock-app CY8CPROTO_062_4343W+release (read/write) 2353452 2353308 -144 -0.0
.text 1316052 1315908 -144 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1155923 1155795 -128 -0.0
rodata 145956 145876 -80 -0.1
text 788084 788044 -40 -0.0
p6 lock-app default (read/write) 2359928 2359920 -8 -0.0
.text 1318192 1318184 -8 -0.0
telink lighting-app tlsr9518adk80d (read/write) 895830 895670 -160 -0.0
text 633404 633324 -80 -0.0
Full report (25 builds for cyw30739, efr32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section a72ab9b 0004383 change % change
cyw30739 light cyw930739m2evb_01 (read/write) 603870 603718 -152 -0.0
.app_xip_area 510968 510816 -152 -0.0
.bss 75656 75656 0 0.0
.data 596 596 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
lock cyw930739m2evb_01 (read/write) 561658 561530 -128 -0.0
.app_xip_area 470284 470156 -128 -0.0
.bss 74160 74160 0 0.0
.data 560 560 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 571494 571358 -136 -0.0
.app_xip_area 470472 470336 -136 -0.0
.bss 83488 83488 0 0.0
.data 500 500 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read only) 922008 922008 0 0.0
(read/write) 128760 128760 0 0.0
.bss 126768 126768 0 0.0
.data 1988 1988 0 0.0
.text 922000 922000 0 0.0
BRD4161A+rpc (read only) 950820 950820 0 0.0
(read/write) 144712 144712 0 0.0
.bss 142544 142544 0 0.0
.data 2168 2168 0 0.0
.text 950812 950812 0 0.0
window-app BRD4161A (read only) 852304 852384 80 0.0
(read/write) 126712 126720 8 0.0
.bss 124848 124856 8 0.0
.data 1864 1864 0 0.0
.text 852296 852376 80 0.0
k32w light k32w061+release (read/write) 701092 700948 -144 -0.0
.bss 77656 77656 0 0.0
.data 1868 1868 0 0.0
.text 615768 615624 -144 -0.0
lock k32w061+release (read/write) 700964 700820 -144 -0.0
.bss 77624 77624 0 0.0
.data 1908 1908 0 0.0
.text 615632 615488 -144 -0.0
linux all-clusters-app debug (read only) 2477281 2477153 -128 -0.0
(read/write) 143152 143120 -32 -0.0
.bss 57312 57312 0 0.0
.data 1264 1264 0 0.0
.data.rel.ro 78840 78808 -32 -0.0
.dynamic 592 592 0 0.0
.got 4168 4168 0 0.0
.init 27 27 0 0.0
.init_array 936 936 0 0.0
.rodata 212005 211973 -32 -0.0
.text 2101826 2101826 0 0.0
bridge-app debug+rpc (read only) 1752637 1752381 -256 -0.0
(read/write) 89424 89392 -32 -0.0
.bss 44456 44456 0 0.0
.data 1952 1952 0 0.0
.data.rel.ro 37944 37912 -32 -0.1
.dynamic 592 592 0 0.0
.got 3920 3920 0 0.0
.init 27 27 0 0.0
.init_array 544 544 0 0.0
.rodata 144684 144428 -256 -0.2
.text 1492741 1492837 96 0.0
chip-tool debug (read only) 10145893 10145269 -624 -0.0
(read/write) 354848 354784 -64 -0.0
.bss 22304 22304 0 0.0
.data 1072 1072 0 0.0
.data.rel.ro 325408 325344 -64 -0.0
.dynamic 608 608 0 0.0
.got 4784 4784 0 0.0
.init 27 27 0 0.0
.init_array 632 632 0 0.0
.rodata 517813 517493 -320 -0.1
.text 8845477 8845269 -208 -0.0
chip-tool-ipv6only arm64 (read only) 9769404 9768716 -688 -0.0
(read/write) 472689 472657 -32 -0.0
.bss 40609 40609 0 0.0
.data 1128 1128 0 0.0
.data.rel.ro 371824 371792 -32 -0.0
.dynamic 560 560 0 0.0
.got 55328 55336 8 0.0
.init 24 24 0 0.0
.init_array 192 192 0 0.0
.rodata 493604 493332 -272 -0.1
.text 8224436 8224100 -336 -0.0
door-lock-app debug (read only) 2004473 2004521 48 0.0
(read/write) 116832 116800 -32 -0.0
.bss 47584 47584 0 0.0
.data 992 992 0 0.0
.data.rel.ro 62856 62824 -32 -0.1
.dynamic 592 592 0 0.0
.got 4120 4120 0 0.0
.init 27 27 0 0.0
.init_array 664 664 0 0.0
.rodata 181180 181148 -32 -0.0
.text 1673634 1673810 176 0.0
lighting-app debug+rpc (read only) 2178137 2177881 -256 -0.0
(read/write) 123792 123760 -32 -0.0
.bss 48864 48864 0 0.0
.data 1472 1472 0 0.0
.data.rel.ro 67928 67896 -32 -0.0
.dynamic 608 608 0 0.0
.got 4168 4168 0 0.0
.init 27 27 0 0.0
.init_array 744 744 0 0.0
.rodata 175484 175228 -256 -0.1
.text 1843634 1843730 96 0.0
ota-provider-app debug (read only) 1938833 1938545 -288 -0.0
(read/write) 112624 112592 -32 -0.0
.bss 47488 47488 0 0.0
.data 1288 1288 0 0.0
.data.rel.ro 58200 58168 -32 -0.1
.dynamic 608 608 0 0.0
.got 4376 4376 0 0.0
.init 27 27 0 0.0
.init_array 616 616 0 0.0
.rodata 166571 166283 -288 -0.2
.text 1620498 1620594 96 0.0
ota-requestor-app debug (read only) 1969001 1968713 -288 -0.0
(read/write) 115592 115560 -32 -0.0
.bss 48480 48480 0 0.0
.data 1416 1416 0 0.0
.data.rel.ro 60264 60232 -32 -0.1
.dynamic 592 592 0 0.0
.got 4168 4168 0 0.0
.init 27 27 0 0.0
.init_array 640 640 0 0.0
.rodata 162980 162692 -288 -0.2
.text 1654034 1654130 96 0.0
shell debug (read only) 2426625 2426481 -144 -0.0
(read/write) 147208 147176 -32 -0.0
.bss 67240 67240 0 0.0
.data 784 784 0 0.0
.data.rel.ro 73472 73440 -32 -0.0
.dynamic 592 592 0 0.0
.got 4152 4152 0 0.0
.init 27 27 0 0.0
.init_array 920 920 0 0.0
.rodata 209426 209394 -32 -0.0
.text 2060498 2060482 -16 -0.0
thermostat-no-ble arm64 (read only) 2262500 2262412 -88 -0.0
(read/write) 148273 148241 -32 -0.0
.bss 62753 62753 0 0.0
.data 1024 1024 0 0.0
.data.rel.ro 77000 76968 -32 -0.0
.dynamic 560 560 0 0.0
.got 4480 4480 0 0.0
.init 24 24 0 0.0
.init_array 360 360 0 0.0
.rodata 140036 139836 -200 -0.1
.text 1899152 1899360 208 0.0
tv-app debug (read only) 2677657 2677401 -256 -0.0
(read/write) 247712 247648 -64 -0.0
.bss 164384 164384 0 0.0
.data 3104 3104 0 0.0
.data.rel.ro 74168 74104 -64 -0.1
.dynamic 592 592 0 0.0
.got 4552 4552 0 0.0
.init 27 27 0 0.0
.init_array 888 888 0 0.0
.rodata 207413 207157 -256 -0.1
.text 2295394 2295490 96 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2353452 2353308 -144 -0.0
.bss 184652 184652 0 0.0
.data 5752 5752 0 0.0
.text 1316052 1315908 -144 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1155923 1155795 -128 -0.0
bss 146716 146716 0 0.0
rodata 145956 145876 -80 -0.1
text 788084 788044 -40 -0.0
p6 all-clusters-app default (read/write) 2492976 2493200 224 0.0
.bss 118072 118072 0 0.0
.data 2632 2632 0 0.0
.text 1451240 1451464 224 0.0
light-app default (read/write) 2396376 2396384 8 0.0
.bss 111544 111544 0 0.0
.data 2488 2488 0 0.0
.text 1354640 1354648 8 0.0
lock-app default (read/write) 2359928 2359920 -8 -0.0
.bss 111288 111288 0 0.0
.data 2448 2448 0 0.0
.text 1318192 1318184 -8 -0.0
telink lighting-app tlsr9518adk80d (read/write) 895830 895670 -160 -0.0
bss 87424 87424 0 0.0
noinit 37160 37160 0 0.0
text 633404 633324 -80 -0.0

@mlepage-google
Copy link
Contributor Author

CI is failing because my zap regen all used my query ORDER BY change but it's not upstream yet.

mlepage-google and others added 2 commits March 23, 2022 14:03
This requires including the API header from the generated header, as
well as including the generated header from the API implementation file.
But it allows the static_asserts to be removed.
@github-actions
Copy link

github-actions bot commented Mar 23, 2022

PR #16327: Size comparison from b24efd9 to a6dd001

Increases (15 builds for efr32, esp32, linux, p6)
platform target config section b24efd9 a6dd001 change % change
efr32 lighting-app BRD4161A (read only) 922876 922892 16 0.0
.text 922868 922884 16 0.0
window-app BRD4161A (read only) 852672 852680 8 0.0
.text 852664 852672 8 0.0
esp32 all-clusters-app c3devkit (read only) 964156 964188 32 0.0
(read/write) 1393714 1393842 128 0.0
.dram0.data 14188 14196 8 0.1
.flash.rodata 198536 198648 112 0.1
.flash.text 964156 964188 32 0.0
m5stack (read only) 1020691 1020723 32 0.0
(read/write) 461492 461612 120 0.0
.flash.rodata 228040 228160 120 0.1
.flash.text 1015307 1015339 32 0.0
linux all-clusters-app debug .text 2102898 2103090 192 0.0
bridge-app debug+rpc .text 1493589 1493669 80 0.0
chip-tool-ipv6only arm64 .got 55680 55688 8 0.0
door-lock-app debug (read only) 2005113 2005161 48 0.0
.text 1674466 1674642 176 0.0
lighting-app debug+rpc .text 1844578 1844674 96 0.0
ota-provider-app debug .text 1627794 1627890 96 0.0
ota-requestor-app debug .text 1657698 1657794 96 0.0
shell debug (read only) 2427657 2427673 16 0.0
.text 2061570 2061746 176 0.0
thermostat-no-ble arm64 .text 1899600 1899840 240 0.0
tv-app debug .text 2297218 2297314 96 0.0
p6 all-clusters-app default (read/write) 2493592 2493832 240 0.0
.text 1451856 1452096 240 0.0
Decreases (22 builds for cyw30739, efr32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section b24efd9 a6dd001 change % change
cyw30739 light cyw930739m2evb_01 (read/write) 603478 603342 -136 -0.0
.app_xip_area 510576 510440 -136 -0.0
lock cyw930739m2evb_01 (read/write) 561274 561130 -144 -0.0
.app_xip_area 469900 469756 -144 -0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 573358 573214 -144 -0.0
.app_xip_area 472336 472192 -144 -0.0
efr32 lighting-app BRD4161A+rpc (read only) 951708 951700 -8 -0.0
.text 951700 951692 -8 -0.0
k32w light k32w061+release (read/write) 701652 701508 -144 -0.0
.text 616336 616192 -144 -0.0
lock k32w061+release (read/write) 701088 700944 -144 -0.0
.text 615756 615612 -144 -0.0
linux all-clusters-app debug (read/write) 143216 143184 -32 -0.0
.data.rel.ro 78904 78872 -32 -0.0
.rodata 211941 211845 -96 -0.0
bridge-app debug+rpc (read only) 1753357 1753085 -272 -0.0
(read/write) 89424 89392 -32 -0.0
.data.rel.ro 37944 37912 -32 -0.1
.rodata 144556 144300 -256 -0.2
chip-tool debug (read only) 10180709 10180085 -624 -0.0
(read/write) 354976 354912 -64 -0.0
.data.rel.ro 325520 325456 -64 -0.0
.rodata 520213 519893 -320 -0.1
.text 8877653 8877445 -208 -0.0
chip-tool-ipv6only arm64 (read only) 9799868 9799212 -656 -0.0
(read/write) 473185 473169 -16 -0.0
.data.rel.ro 371960 371928 -32 -0.0
.rodata 495764 495508 -256 -0.1
.text 8251428 8251092 -336 -0.0
door-lock-app debug (read/write) 116832 116800 -32 -0.0
.data.rel.ro 62856 62824 -32 -0.1
.rodata 180988 180956 -32 -0.0
lighting-app debug+rpc (read only) 2178761 2178537 -224 -0.0
(read/write) 123792 123760 -32 -0.0
.data.rel.ro 67928 67896 -32 -0.0
.rodata 175164 174940 -224 -0.1
ota-provider-app debug (read only) 1946497 1946209 -288 -0.0
(read/write) 112560 112528 -32 -0.0
.data.rel.ro 58200 58168 -32 -0.1
.rodata 166987 166699 -288 -0.2
ota-requestor-app debug (read only) 1973305 1973017 -288 -0.0
(read/write) 115784 115752 -32 -0.0
.data.rel.ro 60424 60392 -32 -0.1
.rodata 162980 162692 -288 -0.2
shell debug (read/write) 147272 147240 -32 -0.0
.data.rel.ro 73536 73504 -32 -0.0
.rodata 209362 209298 -64 -0.0
thermostat-no-ble arm64 (read only) 2262692 2262620 -72 -0.0
(read/write) 148273 148241 -32 -0.0
.data.rel.ro 77000 76968 -32 -0.0
.rodata 139780 139564 -216 -0.2
tv-app debug (read only) 2679225 2678969 -256 -0.0
(read/write) 247744 247680 -64 -0.0
.data.rel.ro 74168 74104 -64 -0.1
.rodata 207157 206901 -256 -0.1
mbed lock-app CY8CPROTO_062_4343W+release (read/write) 2353636 2353492 -144 -0.0
.text 1316236 1316092 -144 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1139467 1139291 -176 -0.0
rodata 141588 141508 -80 -0.1
text 780524 780432 -92 -0.0
p6 light-app default (read/write) 2396776 2396768 -8 -0.0
.text 1355040 1355032 -8 -0.0
lock-app default (read/write) 2360312 2360304 -8 -0.0
.text 1318576 1318568 -8 -0.0
telink lighting-app tlsr9518adk80d (read/write) 896954 896794 -160 -0.0
text 634304 634220 -84 -0.0
Full report (27 builds for cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section b24efd9 a6dd001 change % change
cyw30739 light cyw930739m2evb_01 (read/write) 603478 603342 -136 -0.0
.app_xip_area 510576 510440 -136 -0.0
.bss 75656 75656 0 0.0
.data 596 596 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
lock cyw930739m2evb_01 (read/write) 561274 561130 -144 -0.0
.app_xip_area 469900 469756 -144 -0.0
.bss 74160 74160 0 0.0
.data 560 560 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 573358 573214 -144 -0.0
.app_xip_area 472336 472192 -144 -0.0
.bss 83488 83488 0 0.0
.data 500 500 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read only) 922876 922892 16 0.0
(read/write) 128748 128748 0 0.0
.bss 126760 126760 0 0.0
.data 1988 1988 0 0.0
.text 922868 922884 16 0.0
BRD4161A+rpc (read only) 951708 951700 -8 -0.0
(read/write) 144704 144704 0 0.0
.bss 142536 142536 0 0.0
.data 2168 2168 0 0.0
.text 951700 951692 -8 -0.0
window-app BRD4161A (read only) 852672 852680 8 0.0
(read/write) 126720 126720 0 0.0
.bss 124856 124856 0 0.0
.data 1864 1864 0 0.0
.text 852664 852672 8 0.0
esp32 all-clusters-app c3devkit (read only) 964156 964188 32 0.0
(read/write) 1393714 1393842 128 0.0
.dram0.bss 62072 62072 0 0.0
.dram0.data 14188 14196 8 0.1
.flash.rodata 198536 198648 112 0.1
.flash.text 964156 964188 32 0.0
.iram0.text 62016 62016 0 0.0
m5stack (read only) 1020691 1020723 32 0.0
(read/write) 461492 461612 120 0.0
.dram0.bss 67600 67600 0 0.0
.dram0.data 34016 34016 0 0.0
.flash.rodata 228040 228160 120 0.1
.flash.text 1015307 1015339 32 0.0
.iram0.text 123107 123107 0 0.0
k32w light k32w061+release (read/write) 701652 701508 -144 -0.0
.bss 77648 77648 0 0.0
.data 1868 1868 0 0.0
.text 616336 616192 -144 -0.0
lock k32w061+release (read/write) 701088 700944 -144 -0.0
.bss 77624 77624 0 0.0
.data 1908 1908 0 0.0
.text 615756 615612 -144 -0.0
linux all-clusters-app debug (read only) 2478313 2478313 0 0.0
(read/write) 143216 143184 -32 -0.0
.bss 57312 57312 0 0.0
.data 1264 1264 0 0.0
.data.rel.ro 78904 78872 -32 -0.0
.dynamic 592 592 0 0.0
.got 4168 4168 0 0.0
.init 27 27 0 0.0
.init_array 936 936 0 0.0
.rodata 211941 211845 -96 -0.0
.text 2102898 2103090 192 0.0
bridge-app debug+rpc (read only) 1753357 1753085 -272 -0.0
(read/write) 89424 89392 -32 -0.0
.bss 44456 44456 0 0.0
.data 1952 1952 0 0.0
.data.rel.ro 37944 37912 -32 -0.1
.dynamic 592 592 0 0.0
.got 3920 3920 0 0.0
.init 27 27 0 0.0
.init_array 544 544 0 0.0
.rodata 144556 144300 -256 -0.2
.text 1493589 1493669 80 0.0
chip-tool debug (read only) 10180709 10180085 -624 -0.0
(read/write) 354976 354912 -64 -0.0
.bss 22336 22336 0 0.0
.data 1072 1072 0 0.0
.data.rel.ro 325520 325456 -64 -0.0
.dynamic 608 608 0 0.0
.got 4784 4784 0 0.0
.init 27 27 0 0.0
.init_array 632 632 0 0.0
.rodata 520213 519893 -320 -0.1
.text 8877653 8877445 -208 -0.0
chip-tool-ipv6only arm64 (read only) 9799868 9799212 -656 -0.0
(read/write) 473185 473169 -16 -0.0
.bss 40625 40625 0 0.0
.data 1128 1128 0 0.0
.data.rel.ro 371960 371928 -32 -0.0
.dynamic 560 560 0 0.0
.got 55680 55688 8 0.0
.init 24 24 0 0.0
.init_array 192 192 0 0.0
.rodata 495764 495508 -256 -0.1
.text 8251428 8251092 -336 -0.0
door-lock-app debug (read only) 2005113 2005161 48 0.0
(read/write) 116832 116800 -32 -0.0
.bss 47584 47584 0 0.0
.data 992 992 0 0.0
.data.rel.ro 62856 62824 -32 -0.1
.dynamic 592 592 0 0.0
.got 4120 4120 0 0.0
.init 27 27 0 0.0
.init_array 664 664 0 0.0
.rodata 180988 180956 -32 -0.0
.text 1674466 1674642 176 0.0
lighting-app debug+rpc (read only) 2178761 2178537 -224 -0.0
(read/write) 123792 123760 -32 -0.0
.bss 48864 48864 0 0.0
.data 1472 1472 0 0.0
.data.rel.ro 67928 67896 -32 -0.0
.dynamic 608 608 0 0.0
.got 4168 4168 0 0.0
.init 27 27 0 0.0
.init_array 744 744 0 0.0
.rodata 175164 174940 -224 -0.1
.text 1844578 1844674 96 0.0
ota-provider-app debug (read only) 1946497 1946209 -288 -0.0
(read/write) 112560 112528 -32 -0.0
.bss 47456 47456 0 0.0
.data 1256 1256 0 0.0
.data.rel.ro 58200 58168 -32 -0.1
.dynamic 608 608 0 0.0
.got 4376 4376 0 0.0
.init 27 27 0 0.0
.init_array 616 616 0 0.0
.rodata 166987 166699 -288 -0.2
.text 1627794 1627890 96 0.0
ota-requestor-app debug (read only) 1973305 1973017 -288 -0.0
(read/write) 115784 115752 -32 -0.0
.bss 48448 48448 0 0.0
.data 1448 1448 0 0.0
.data.rel.ro 60424 60392 -32 -0.1
.dynamic 592 592 0 0.0
.got 4184 4184 0 0.0
.init 27 27 0 0.0
.init_array 640 640 0 0.0
.rodata 162980 162692 -288 -0.2
.text 1657698 1657794 96 0.0
shell debug (read only) 2427657 2427673 16 0.0
(read/write) 147272 147240 -32 -0.0
.bss 67240 67240 0 0.0
.data 784 784 0 0.0
.data.rel.ro 73536 73504 -32 -0.0
.dynamic 592 592 0 0.0
.got 4152 4152 0 0.0
.init 27 27 0 0.0
.init_array 920 920 0 0.0
.rodata 209362 209298 -64 -0.0
.text 2061570 2061746 176 0.0
thermostat-no-ble arm64 (read only) 2262692 2262620 -72 -0.0
(read/write) 148273 148241 -32 -0.0
.bss 62753 62753 0 0.0
.data 1024 1024 0 0.0
.data.rel.ro 77000 76968 -32 -0.0
.dynamic 560 560 0 0.0
.got 4480 4480 0 0.0
.init 24 24 0 0.0
.init_array 360 360 0 0.0
.rodata 139780 139564 -216 -0.2
.text 1899600 1899840 240 0.0
tv-app debug (read only) 2679225 2678969 -256 -0.0
(read/write) 247744 247680 -64 -0.0
.bss 164416 164416 0 0.0
.data 3104 3104 0 0.0
.data.rel.ro 74168 74104 -64 -0.1
.dynamic 592 592 0 0.0
.got 4552 4552 0 0.0
.init 27 27 0 0.0
.init_array 888 888 0 0.0
.rodata 207157 206901 -256 -0.1
.text 2297218 2297314 96 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2353636 2353492 -144 -0.0
.bss 184652 184652 0 0.0
.data 5752 5752 0 0.0
.text 1316236 1316092 -144 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1139467 1139291 -176 -0.0
bss 142588 142588 0 0.0
rodata 141588 141508 -80 -0.1
text 780524 780432 -92 -0.0
p6 all-clusters-app default (read/write) 2493592 2493832 240 0.0
.bss 118072 118072 0 0.0
.data 2632 2632 0 0.0
.text 1451856 1452096 240 0.0
light-app default (read/write) 2396776 2396768 -8 -0.0
.bss 111544 111544 0 0.0
.data 2488 2488 0 0.0
.text 1355040 1355032 -8 -0.0
lock-app default (read/write) 2360312 2360304 -8 -0.0
.bss 111288 111288 0 0.0
.data 2448 2448 0 0.0
.text 1318576 1318568 -8 -0.0
telink lighting-app tlsr9518adk80d (read/write) 896954 896794 -160 -0.0
bss 87444 87444 0 0.0
noinit 37160 37160 0 0.0
text 634304 634220 -84 -0.0

@mlepage-google mlepage-google merged commit c7b4913 into project-chip:master Mar 23, 2022
@mlepage-google mlepage-google deleted the gen-matter-access branch March 23, 2022 21:32
andrei-menzopol pushed a commit to andrei-menzopol/connectedhomeip that referenced this pull request Apr 14, 2022
New zap template iterates over access definitions for app server
clusters, for attributes/commands/events, to generate parallel arrays of
custom privileges for read/write attribute, invoke command, and read
event.

New privilege storage source files provide an API to access the generated
data, and an implementation using the generated data.

The data is generated and the storage is built per-app.

The library (DM, IM, app common) RequiredPrivilege module now uses the
privilege-storage API to access populated data on a per-app basis. Weak
implementations of the privilege storage API provide a default implementation
lacking generated data, so test artifacts can be built.

Fixes project-chip#14419
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.

Add custom required privilege definitions for clusters that need them
4 participants