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 cached event number in ReadClient #17442

Merged

Conversation

yunhanw-google
Copy link
Contributor

@yunhanw-google yunhanw-google commented Apr 17, 2022

Problem

Need to use latest received EventNumber from ClusterStateCache when user read/subscribe using ClusterStateCache. If user has provided the event number, we would use that one to construct cache and bypass the one from ClusterStateCache.
This pattern is similar to what we have applied cached data version from ClusterStateCache

Change overview

-- Update EventNumber with optional in ReadPrepareParams and remove the existing mEventMin.
-- Move GenerateEventFilter logic into MessageDef
-- If event number is provided by user, then read client uses it to construct event filter and update it, when resubscribe happens, it would use updated event number. If event number is not provide by user, client would try to fetch the highest event number from cache, and when resubscribe happens, it would automatically retrieve the latest event number from cache.
-- Add virtual GetHighestReceivedEventNumber function in ClusterStateCache so that ReadClient can retrieve the event number from cache. In addition user can retrieve the highest received event number and construct the event filter manually later, and user could retrieve the event data using the range from x to mHighestReceivedEventNumber later.

Other design consideration, use the existing mEventMin in ReadClient where it has been updated when receiving the latest event data, then read client can always use the latest event number automatically during re-subscription, then we don't need virtual function GetHighestReceivedEventNumber. When using new readClient with same cache, user can call GetHighestReceivedEventNumber and update ReadPrepareParam for event number, this way, read client don't need to retrieve the highest event number from ClusterStateCache automatically. This pattern is different from the way ReadClient use cached data version from ClusterStateCache. However, prefer keeping the same pattern as data version cache has and eliminate the potential confusion regarding when to use mEventMin, particularly when mEventMin is different from the event number in cache

Testing

Add GetHighestReceivedEventNumber API test to check if the highest number is updated or not in cache correctly in existing event cache test.
Add new test to validated user-provided event can filter out the events correctly where the event number from event cache cannot be used for event filter construction.

TODO: Need to add test to validate the event things in resubscribe

@github-actions
Copy link

github-actions bot commented Apr 17, 2022

PR #17442: Size comparison from c503a97 to f621005

Increases (23 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section c503a97 f621005 change % change
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 684415 684463 48 0.0
.text 580568 580616 48 0.0
lock-ftd LP_CC2652R7 (read only) 677311 677359 48 0.0
.text 577980 578028 48 0.0
lock-mtd LP_CC2652R7 (read only) 626055 626103 48 0.0
.text 526836 526884 48 0.0
pump-app LP_CC2652R7 (read only) 649455 649503 48 0.0
.text 573296 573344 48 0.0
pump-controller-app LP_CC2652R7 (read only) 642791 642839 48 0.0
.text 563296 563344 48 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 619110 619158 48 0.0
.app_xip_area 525868 525916 48 0.0
lock cyw930739m2evb_01 (read/write) 613362 613418 56 0.0
.app_xip_area 521624 521680 56 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 566022 566070 48 0.0
.app_xip_area 464688 464736 48 0.0
efr32 lighting-app BRD4161A (read only) 908852 908948 96 0.0
.text 908844 908940 96 0.0
BRD4161A+rpc (read only) 943228 943324 96 0.0
.text 943220 943316 96 0.0
window-app BRD4161A (read only) 845292 845388 96 0.0
.text 845284 845380 96 0.0
esp32 all-clusters-app c3devkit (read only) 980476 980532 56 0.0
.flash.text 980476 980532 56 0.0
m5stack (read only) 1035975 1036059 84 0.0
.flash.text 1030591 1030675 84 0.0
k32w light k32w061+release (read/write) 684684 684732 48 0.0
.text 598980 599028 48 0.0
lock k32w061+release (read/write) 725540 725588 48 0.0
.text 639268 639316 48 0.0
linux chip-tool-no-interactive-ipv6only arm64 (read only) 10388564 10391236 2672 0.0
(read/write) 493489 494161 672 0.1
.data.rel.ro 390224 390904 680 0.2
.text 8767108 8767732 624 0.0
thermostat-no-ble arm64 (read only) 2359028 2359508 480 0.0
.text 1984736 1985216 480 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read/write) 2410124 2410188 64 0.0
.text 1372724 1372788 64 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1164339 1164403 64 0.0
text 801660 801716 56 0.0
p6 all-clusters-app default (read/write) 2516976 2517072 96 0.0
.text 1475240 1475336 96 0.0
light-app default (read/write) 2416904 2417000 96 0.0
.text 1375168 1375264 96 0.0
lock-app default (read/write) 2420368 2420464 96 0.0
.text 1378632 1378728 96 0.0
telink lighting-app tlsr9518adk80d (read/write) 801956 802012 56 0.0
text 570550 570608 58 0.0
Decreases (2 builds for cc13x2_26x2)
platform target config section c503a97 f621005 change % change
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read/write) 168752 168704 -48 -0.0
lock-ftd LP_CC2652R7 (read/write) 166800 166752 -48 -0.0
Full report (23 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section c503a97 f621005 change % change
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 684415 684463 48 0.0
(read/write) 168752 168704 -48 -0.0
.bss 76152 76152 0 0.0
.data 3380 3380 0 0.0
.rodata 103367 103367 0 0.0
.text 580568 580616 48 0.0
lock-ftd LP_CC2652R7 (read only) 677311 677359 48 0.0
(read/write) 166800 166752 -48 -0.0
.bss 74152 74152 0 0.0
.data 3212 3212 0 0.0
.rodata 98847 98847 0 0.0
.text 577980 578028 48 0.0
lock-mtd LP_CC2652R7 (read only) 626055 626103 48 0.0
(read/write) 146940 146940 0 0.0
.bss 69872 69872 0 0.0
.data 3212 3212 0 0.0
.rodata 98727 98727 0 0.0
.text 526836 526884 48 0.0
pump-app LP_CC2652R7 (read only) 649455 649503 48 0.0
(read/write) 152476 152476 0 0.0
.bss 74608 74608 0 0.0
.data 3244 3244 0 0.0
.rodata 75671 75671 0 0.0
.text 573296 573344 48 0.0
pump-controller-app LP_CC2652R7 (read only) 642791 642839 48 0.0
(read/write) 152144 152144 0 0.0
.bss 74312 74312 0 0.0
.data 3208 3208 0 0.0
.rodata 79007 79007 0 0.0
.text 563296 563344 48 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 619110 619158 48 0.0
.app_xip_area 525868 525916 48 0.0
.bss 75908 75908 0 0.0
.data 684 684 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
lock cyw930739m2evb_01 (read/write) 613362 613418 56 0.0
.app_xip_area 521624 521680 56 0.0
.bss 74436 74436 0 0.0
.data 648 648 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 566022 566070 48 0.0
.app_xip_area 464688 464736 48 0.0
.bss 83736 83736 0 0.0
.data 564 564 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read only) 908852 908948 96 0.0
(read/write) 133112 133112 0 0.0
.bss 131072 131072 0 0.0
.data 2040 2040 0 0.0
.text 908844 908940 96 0.0
BRD4161A+rpc (read only) 943228 943324 96 0.0
(read/write) 149796 149796 0 0.0
.bss 147552 147552 0 0.0
.data 2244 2244 0 0.0
.text 943220 943316 96 0.0
window-app BRD4161A (read only) 845292 845388 96 0.0
(read/write) 131116 131116 0 0.0
.bss 129168 129168 0 0.0
.data 1948 1948 0 0.0
.text 845284 845380 96 0.0
esp32 all-clusters-app c3devkit (read only) 980476 980532 56 0.0
(read/write) 1397826 1397826 0 0.0
.dram0.bss 62600 62600 0 0.0
.dram0.data 14412 14412 0 0.0
.flash.rodata 201896 201896 0 0.0
.flash.text 980476 980532 56 0.0
.iram0.text 62016 62016 0 0.0
m5stack (read only) 1035975 1036059 84 0.0
(read/write) 465552 465552 0 0.0
.dram0.bss 68112 68112 0 0.0
.dram0.data 34152 34152 0 0.0
.flash.rodata 231452 231452 0 0.0
.flash.text 1030591 1030675 84 0.0
.iram0.text 123107 123107 0 0.0
k32w light k32w061+release (read/write) 684684 684732 48 0.0
.bss 77912 77912 0 0.0
.data 1992 1992 0 0.0
.text 598980 599028 48 0.0
lock k32w061+release (read/write) 725540 725588 48 0.0
.bss 78520 78520 0 0.0
.data 1952 1952 0 0.0
.text 639268 639316 48 0.0
linux chip-tool-no-interactive-ipv6only arm64 (read only) 10388564 10391236 2672 0.0
(read/write) 493489 494161 672 0.1
.bss 40865 40865 0 0.0
.data 1184 1184 0 0.0
.data.rel.ro 390224 390904 680 0.2
.dynamic 560 560 0 0.0
.got 57408 57408 0 0.0
.init 24 24 0 0.0
.init_array 184 184 0 0.0
.rodata 514340 514340 0 0.0
.text 8767108 8767732 624 0.0
thermostat-no-ble arm64 (read only) 2359028 2359508 480 0.0
(read/write) 151137 151137 0 0.0
.bss 62945 62945 0 0.0
.data 1440 1440 0 0.0
.data.rel.ro 78984 78984 0 0.0
.dynamic 560 560 0 0.0
.got 4752 4752 0 0.0
.init 24 24 0 0.0
.init_array 368 368 0 0.0
.rodata 145300 145300 0 0.0
.text 1984736 1985216 480 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2410124 2410188 64 0.0
.bss 185228 185228 0 0.0
.data 5840 5840 0 0.0
.text 1372724 1372788 64 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1164339 1164403 64 0.0
bss 136504 136504 0 0.0
rodata 147524 147524 0 0.0
text 801660 801716 56 0.0
p6 all-clusters-app default (read/write) 2516976 2517072 96 0.0
.bss 118624 118624 0 0.0
.data 2768 2768 0 0.0
.text 1475240 1475336 96 0.0
light-app default (read/write) 2416904 2417000 96 0.0
.bss 112104 112104 0 0.0
.data 2576 2576 0 0.0
.text 1375168 1375264 96 0.0
lock-app default (read/write) 2420368 2420464 96 0.0
.bss 111880 111880 0 0.0
.data 2536 2536 0 0.0
.text 1378632 1378728 96 0.0
telink lighting-app tlsr9518adk80d (read/write) 801956 802012 56 0.0
bss 69952 69952 0 0.0
noinit 40416 40416 0 0.0
text 570550 570608 58 0.0

src/app/ReadClient.h Show resolved Hide resolved
@yunhanw-google yunhanw-google marked this pull request as ready for review April 18, 2022 22:35
-- Update EventNumber with optional in ReadPrepareParams
-- If event number is provided by user, then read  client uses it to construct event filter and update it, when resubscribe happens, it would use updated event number. If event number is not provide by user, client would try to fetch the highest event number from cache, and when resubscribe happens, it would automatically retrieve the latest event number from cache.
-- Add GetHighestReceivedEventNumber function in ClusterStateCache so
that user can retrieve the highest recieved event number and construct the event filter manually later if user don't wanna the cache, and user could retrieve the event data using the range from x to mHighestReceivedEventNumber later.
@yunhanw-google yunhanw-google force-pushed the feature/integrate_event_cache branch from 3ef8afc to c716093 Compare April 19, 2022 03:46
@github-actions
Copy link

github-actions bot commented Apr 19, 2022

PR #17442: Size comparison from 8793870 to c716093

Increases (23 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section 8793870 c716093 change % change
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 684759 684807 48 0.0
.text 580864 580912 48 0.0
lock-ftd LP_CC2652R7 (read only) 677679 677727 48 0.0
.text 578292 578340 48 0.0
lock-mtd LP_CC2652R7 (read only) 626423 626471 48 0.0
.text 527148 527196 48 0.0
pump-app LP_CC2652R7 (read only) 649807 649855 48 0.0
.text 573600 573648 48 0.0
pump-controller-app LP_CC2652R7 (read only) 643151 643199 48 0.0
.text 563608 563656 48 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 619310 619366 56 0.0
.app_xip_area 526068 526124 56 0.0
lock cyw930739m2evb_01 (read/write) 613562 613610 48 0.0
.app_xip_area 521824 521872 48 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 566406 566454 48 0.0
.app_xip_area 465056 465104 48 0.0
efr32 lighting-app BRD4161A (read only) 909172 909268 96 0.0
.text 909164 909260 96 0.0
BRD4161A+rpc (read only) 943548 943644 96 0.0
.text 943540 943636 96 0.0
window-app BRD4161A (read only) 845540 845636 96 0.0
.text 845532 845628 96 0.0
esp32 all-clusters-app c3devkit (read only) 980742 980798 56 0.0
.flash.text 980742 980798 56 0.0
m5stack (read only) 1036127 1036207 80 0.0
.flash.text 1030743 1030823 80 0.0
k32w light k32w061+release (read/write) 684868 684916 48 0.0
.text 599164 599212 48 0.0
lock k32w061+release (read/write) 725716 725764 48 0.0
.text 639444 639492 48 0.0
linux chip-tool-no-interactive-ipv6only arm64 (read only) 10430092 10432780 2688 0.0
(read/write) 494193 494881 688 0.1
.data.rel.ro 390440 391128 688 0.2
.text 8804420 8805044 624 0.0
thermostat-no-ble arm64 (read only) 2359996 2360492 496 0.0
.text 1985648 1986144 496 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read/write) 2410300 2410364 64 0.0
.text 1372900 1372964 64 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1164691 1164739 48 0.0
text 801960 802016 56 0.0
p6 all-clusters-app default (read/write) 2517224 2517320 96 0.0
.text 1475488 1475584 96 0.0
light-app default (read/write) 2417144 2417240 96 0.0
.text 1375408 1375504 96 0.0
lock-app default (read/write) 2420608 2420704 96 0.0
.text 1378872 1378968 96 0.0
telink lighting-app tlsr9518adk80d (read/write) 802236 802292 56 0.0
text 570790 570848 58 0.0
Decreases (2 builds for cc13x2_26x2)
platform target config section 8793870 c716093 change % change
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read/write) 168424 168376 -48 -0.0
lock-ftd LP_CC2652R7 (read/write) 166448 166400 -48 -0.0
Full report (23 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section 8793870 c716093 change % change
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 684759 684807 48 0.0
(read/write) 168424 168376 -48 -0.0
.bss 76168 76168 0 0.0
.data 3380 3380 0 0.0
.rodata 103415 103415 0 0.0
.text 580864 580912 48 0.0
lock-ftd LP_CC2652R7 (read only) 677679 677727 48 0.0
(read/write) 166448 166400 -48 -0.0
.bss 74168 74168 0 0.0
.data 3212 3212 0 0.0
.rodata 98903 98903 0 0.0
.text 578292 578340 48 0.0
lock-mtd LP_CC2652R7 (read only) 626423 626471 48 0.0
(read/write) 146956 146956 0 0.0
.bss 69888 69888 0 0.0
.data 3212 3212 0 0.0
.rodata 98783 98783 0 0.0
.text 527148 527196 48 0.0
pump-app LP_CC2652R7 (read only) 649807 649855 48 0.0
(read/write) 152492 152492 0 0.0
.bss 74624 74624 0 0.0
.data 3244 3244 0 0.0
.rodata 75719 75719 0 0.0
.text 573600 573648 48 0.0
pump-controller-app LP_CC2652R7 (read only) 643151 643199 48 0.0
(read/write) 152160 152160 0 0.0
.bss 74328 74328 0 0.0
.data 3208 3208 0 0.0
.rodata 79055 79055 0 0.0
.text 563608 563656 48 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 619310 619366 56 0.0
.app_xip_area 526068 526124 56 0.0
.bss 75908 75908 0 0.0
.data 684 684 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
lock cyw930739m2evb_01 (read/write) 613562 613610 48 0.0
.app_xip_area 521824 521872 48 0.0
.bss 74436 74436 0 0.0
.data 648 648 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 566406 566454 48 0.0
.app_xip_area 465056 465104 48 0.0
.bss 83752 83752 0 0.0
.data 564 564 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read only) 909172 909268 96 0.0
(read/write) 133128 133128 0 0.0
.bss 131088 131088 0 0.0
.data 2040 2040 0 0.0
.text 909164 909260 96 0.0
BRD4161A+rpc (read only) 943548 943644 96 0.0
(read/write) 149812 149812 0 0.0
.bss 147568 147568 0 0.0
.data 2244 2244 0 0.0
.text 943540 943636 96 0.0
window-app BRD4161A (read only) 845540 845636 96 0.0
(read/write) 131116 131116 0 0.0
.bss 129168 129168 0 0.0
.data 1948 1948 0 0.0
.text 845532 845628 96 0.0
esp32 all-clusters-app c3devkit (read only) 980742 980798 56 0.0
(read/write) 1397866 1397866 0 0.0
.dram0.bss 62600 62600 0 0.0
.dram0.data 14412 14412 0 0.0
.flash.rodata 201936 201936 0 0.0
.flash.text 980742 980798 56 0.0
.iram0.text 62016 62016 0 0.0
m5stack (read only) 1036127 1036207 80 0.0
(read/write) 465608 465608 0 0.0
.dram0.bss 68112 68112 0 0.0
.dram0.data 34152 34152 0 0.0
.flash.rodata 231508 231508 0 0.0
.flash.text 1030743 1030823 80 0.0
.iram0.text 123107 123107 0 0.0
k32w light k32w061+release (read/write) 684868 684916 48 0.0
.bss 77912 77912 0 0.0
.data 1992 1992 0 0.0
.text 599164 599212 48 0.0
lock k32w061+release (read/write) 725716 725764 48 0.0
.bss 78520 78520 0 0.0
.data 1952 1952 0 0.0
.text 639444 639492 48 0.0
linux chip-tool-no-interactive-ipv6only arm64 (read only) 10430092 10432780 2688 0.0
(read/write) 494193 494881 688 0.1
.bss 40865 40865 0 0.0
.data 1184 1184 0 0.0
.data.rel.ro 390440 391128 688 0.2
.dynamic 560 560 0 0.0
.got 57904 57904 0 0.0
.init 24 24 0 0.0
.init_array 184 184 0 0.0
.rodata 516652 516652 0 0.0
.text 8804420 8805044 624 0.0
thermostat-no-ble arm64 (read only) 2359996 2360492 496 0.0
(read/write) 151137 151137 0 0.0
.bss 62945 62945 0 0.0
.data 1440 1440 0 0.0
.data.rel.ro 78984 78984 0 0.0
.dynamic 560 560 0 0.0
.got 4752 4752 0 0.0
.init 24 24 0 0.0
.init_array 368 368 0 0.0
.rodata 145356 145356 0 0.0
.text 1985648 1986144 496 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2410300 2410364 64 0.0
.bss 185228 185228 0 0.0
.data 5840 5840 0 0.0
.text 1372900 1372964 64 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1164691 1164739 48 0.0
bss 136520 136520 0 0.0
rodata 147572 147572 0 0.0
text 801960 802016 56 0.0
p6 all-clusters-app default (read/write) 2517224 2517320 96 0.0
.bss 118624 118624 0 0.0
.data 2768 2768 0 0.0
.text 1475488 1475584 96 0.0
light-app default (read/write) 2417144 2417240 96 0.0
.bss 112104 112104 0 0.0
.data 2576 2576 0 0.0
.text 1375408 1375504 96 0.0
lock-app default (read/write) 2420608 2420704 96 0.0
.bss 111880 111880 0 0.0
.data 2536 2536 0 0.0
.text 1378872 1378968 96 0.0
telink lighting-app tlsr9518adk80d (read/write) 802236 802292 56 0.0
bss 69952 69952 0 0.0
noinit 40416 40416 0 0.0
text 570790 570848 58 0.0

@yunhanw-google yunhanw-google force-pushed the feature/integrate_event_cache branch from c716093 to b6ad775 Compare April 19, 2022 16:40
@github-actions
Copy link

github-actions bot commented Apr 19, 2022

PR #17442: Size comparison from 03ea72d to b6ad775

Increases above 0.2%:

platform target config section 03ea72d b6ad775 change % change
linux chip-tool debug .data.rel.ro 343592 344304 712 0.2
Increases (32 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section 03ea72d b6ad775 change % change
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 685783 685839 56 0.0
.text 581680 581736 56 0.0
lock-ftd LP_CC2652R7 (read only) 678087 678135 48 0.0
.text 578284 578332 48 0.0
lock-mtd LP_CC2652R7 (read only) 626831 626879 48 0.0
.text 527140 527188 48 0.0
pump-app LP_CC2652R7 (read only) 649799 649847 48 0.0
.text 573592 573640 48 0.0
pump-controller-app LP_CC2652R7 (read only) 643143 643191 48 0.0
.text 563600 563648 48 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 619302 619350 48 0.0
.app_xip_area 526060 526108 48 0.0
lock cyw930739m2evb_01 (read/write) 613994 614050 56 0.0
.app_xip_area 522232 522288 56 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 566390 566438 48 0.0
.app_xip_area 465040 465088 48 0.0
efr32 lighting-app BRD4161A (read only) 909172 909268 96 0.0
.text 909164 909260 96 0.0
BRD4161A+rpc (read only) 943548 943644 96 0.0
.text 943540 943636 96 0.0
window-app BRD4161A (read only) 846644 846740 96 0.0
.text 846636 846732 96 0.0
esp32 all-clusters-app c3devkit (read only) 981876 981932 56 0.0
.flash.text 981876 981932 56 0.0
m5stack (read only) 1037047 1037127 80 0.0
.flash.text 1031663 1031743 80 0.0
k32w light k32w061+release (read/write) 684852 684900 48 0.0
.text 599148 599196 48 0.0
lock k32w061+release (read/write) 726148 726196 48 0.0
.text 639852 639900 48 0.0
linux all-clusters-app debug (read only) 2709137 2709553 416 0.0
.text 2300818 2301234 416 0.0
bridge-app debug+rpc (read only) 1842109 1842557 448 0.0
.text 1573749 1574197 448 0.0
chip-tool debug (read only) 10863821 10866445 2624 0.0
(read/write) 373552 374288 736 0.2
.data.rel.ro 343592 344304 712 0.2
.rodata 544813 544877 64 0.0
.text 9484805 9485253 448 0.0
chip-tool-no-interactive-ipv6only arm64 (read only) 10481260 10483996 2736 0.0
(read/write) 494929 495633 704 0.1
.data.rel.ro 390744 391448 704 0.2
.text 8851796 8852420 624 0.0
lighting-app debug+rpc (read only) 2319225 2319657 432 0.0
.text 1969218 1969650 432 0.0
lock-app debug (read only) 2142921 2143337 416 0.0
.text 1796194 1796610 416 0.0
ota-provider-app debug (read only) 2052161 2052593 432 0.0
.text 1721234 1721666 432 0.0
ota-requestor-app debug (read only) 2082977 2083409 432 0.0
.text 1754242 1754674 432 0.0
shell debug (read only) 2536065 2536481 416 0.0
.text 2158530 2158946 416 0.0
thermostat-no-ble arm64 (read only) 2360236 2360716 480 0.0
.text 1985760 1986240 480 0.0
tv-app debug (read only) 2836353 2837145 792 0.0
(read/write) 253136 253168 32 0.0
.data.rel.ro 76512 76544 32 0.0
.rodata 215563 215627 64 0.0
.text 2438594 2439202 608 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read/write) 2410916 2410980 64 0.0
.text 1373516 1373580 64 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1165731 1165779 48 0.0
text 802792 802848 56 0.0
p6 all-clusters-app default (read/write) 2518648 2518744 96 0.0
.text 1476912 1477008 96 0.0
light-app default (read/write) 2417320 2417416 96 0.0
.text 1375584 1375680 96 0.0
lock-app default (read/write) 2421208 2421304 96 0.0
.text 1379472 1379568 96 0.0
telink lighting-app tlsr9518adk80d (read/write) 802236 802292 56 0.0
text 570794 570852 58 0.0
Decreases (2 builds for cc13x2_26x2)
platform target config section 03ea72d b6ad775 change % change
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read/write) 167400 167344 -56 -0.0
lock-ftd LP_CC2652R7 (read/write) 166064 166016 -48 -0.0
Full report (32 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section 03ea72d b6ad775 change % change
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 685783 685839 56 0.0
(read/write) 167400 167344 -56 -0.0
.bss 76168 76168 0 0.0
.data 3380 3380 0 0.0
.rodata 103623 103623 0 0.0
.text 581680 581736 56 0.0
lock-ftd LP_CC2652R7 (read only) 678087 678135 48 0.0
(read/write) 166064 166016 -48 -0.0
.bss 74192 74192 0 0.0
.data 3212 3212 0 0.0
.rodata 99319 99319 0 0.0
.text 578284 578332 48 0.0
lock-mtd LP_CC2652R7 (read only) 626831 626879 48 0.0
(read/write) 146980 146980 0 0.0
.bss 69912 69912 0 0.0
.data 3212 3212 0 0.0
.rodata 99199 99199 0 0.0
.text 527140 527188 48 0.0
pump-app LP_CC2652R7 (read only) 649799 649847 48 0.0
(read/write) 152492 152492 0 0.0
.bss 74624 74624 0 0.0
.data 3244 3244 0 0.0
.rodata 75719 75719 0 0.0
.text 573592 573640 48 0.0
pump-controller-app LP_CC2652R7 (read only) 643143 643191 48 0.0
(read/write) 152160 152160 0 0.0
.bss 74328 74328 0 0.0
.data 3208 3208 0 0.0
.rodata 79055 79055 0 0.0
.text 563600 563648 48 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 619302 619350 48 0.0
.app_xip_area 526060 526108 48 0.0
.bss 75908 75908 0 0.0
.data 684 684 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
lock cyw930739m2evb_01 (read/write) 613994 614050 56 0.0
.app_xip_area 522232 522288 56 0.0
.bss 74460 74460 0 0.0
.data 648 648 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 566390 566438 48 0.0
.app_xip_area 465040 465088 48 0.0
.bss 83752 83752 0 0.0
.data 564 564 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read only) 909172 909268 96 0.0
(read/write) 133128 133128 0 0.0
.bss 131088 131088 0 0.0
.data 2040 2040 0 0.0
.text 909164 909260 96 0.0
BRD4161A+rpc (read only) 943548 943644 96 0.0
(read/write) 149812 149812 0 0.0
.bss 147568 147568 0 0.0
.data 2244 2244 0 0.0
.text 943540 943636 96 0.0
window-app BRD4161A (read only) 846644 846740 96 0.0
(read/write) 131116 131116 0 0.0
.bss 129168 129168 0 0.0
.data 1948 1948 0 0.0
.text 846636 846732 96 0.0
esp32 all-clusters-app c3devkit (read only) 981876 981932 56 0.0
(read/write) 1398306 1398306 0 0.0
.dram0.bss 62640 62640 0 0.0
.dram0.data 14412 14412 0 0.0
.flash.rodata 202344 202344 0 0.0
.flash.text 981876 981932 56 0.0
.iram0.text 62016 62016 0 0.0
m5stack (read only) 1037047 1037127 80 0.0
(read/write) 466024 466024 0 0.0
.dram0.bss 68152 68152 0 0.0
.dram0.data 34152 34152 0 0.0
.flash.rodata 231884 231884 0 0.0
.flash.text 1031663 1031743 80 0.0
.iram0.text 123107 123107 0 0.0
k32w light k32w061+release (read/write) 684852 684900 48 0.0
.bss 77912 77912 0 0.0
.data 1992 1992 0 0.0
.text 599148 599196 48 0.0
lock k32w061+release (read/write) 726148 726196 48 0.0
.bss 78544 78544 0 0.0
.data 1952 1952 0 0.0
.text 639852 639900 48 0.0
linux all-clusters-app debug (read only) 2709137 2709553 416 0.0
(read/write) 149568 149568 0 0.0
.bss 59968 59968 0 0.0
.data 1920 1920 0 0.0
.data.rel.ro 81624 81624 0 0.0
.dynamic 608 608 0 0.0
.got 4448 4448 0 0.0
.init 27 27 0 0.0
.init_array 984 984 0 0.0
.rodata 233669 233669 0 0.0
.text 2300818 2301234 416 0.0
bridge-app debug+rpc (read only) 1842109 1842557 448 0.0
(read/write) 91920 91920 0 0.0
.bss 44232 44232 0 0.0
.data 2912 2912 0 0.0
.data.rel.ro 39688 39688 0 0.0
.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 149433 149433 0 0.0
.text 1573749 1574197 448 0.0
chip-tool debug (read only) 10863821 10866445 2624 0.0
(read/write) 373552 374288 736 0.2
.bss 22592 22592 0 0.0
.data 1136 1136 0 0.0
.data.rel.ro 343592 344304 712 0.2
.dynamic 624 624 0 0.0
.got 4936 4936 0 0.0
.init 27 27 0 0.0
.init_array 648 648 0 0.0
.rodata 544813 544877 64 0.0
.text 9484805 9485253 448 0.0
chip-tool-no-interactive-ipv6only arm64 (read only) 10481260 10483996 2736 0.0
(read/write) 494929 495633 704 0.1
.bss 40865 40865 0 0.0
.data 1184 1184 0 0.0
.data.rel.ro 390744 391448 704 0.2
.dynamic 560 560 0 0.0
.got 58336 58336 0 0.0
.init 24 24 0 0.0
.init_array 184 184 0 0.0
.rodata 518524 518524 0 0.0
.text 8851796 8852420 624 0.0
lighting-app debug+rpc (read only) 2319225 2319657 432 0.0
(read/write) 127984 127984 0 0.0
.bss 50016 50016 0 0.0
.data 1952 1952 0 0.0
.data.rel.ro 70312 70312 0 0.0
.dynamic 608 608 0 0.0
.got 4304 4304 0 0.0
.init 27 27 0 0.0
.init_array 776 776 0 0.0
.rodata 183561 183561 0 0.0
.text 1969218 1969650 432 0.0
lock-app debug (read only) 2142921 2143337 416 0.0
(read/write) 120248 120248 0 0.0
.bss 47840 47840 0 0.0
.data 1472 1472 0 0.0
.data.rel.ro 65368 65368 0 0.0
.dynamic 592 592 0 0.0
.got 4248 4248 0 0.0
.init 27 27 0 0.0
.init_array 720 720 0 0.0
.rodata 189977 189977 0 0.0
.text 1796194 1796610 416 0.0
ota-provider-app debug (read only) 2052161 2052593 432 0.0
(read/write) 115616 115616 0 0.0
.bss 48032 48032 0 0.0
.data 1640 1640 0 0.0
.data.rel.ro 60200 60200 0 0.0
.dynamic 608 608 0 0.0
.got 4448 4448 0 0.0
.init 27 27 0 0.0
.init_array 632 632 0 0.0
.rodata 173931 173931 0 0.0
.text 1721234 1721666 432 0.0
ota-requestor-app debug (read only) 2082977 2083409 432 0.0
(read/write) 118424 118424 0 0.0
.bss 48704 48704 0 0.0
.data 1896 1896 0 0.0
.data.rel.ro 62248 62248 0 0.0
.dynamic 592 592 0 0.0
.got 4288 4288 0 0.0
.init 27 27 0 0.0
.init_array 656 656 0 0.0
.rodata 170252 170252 0 0.0
.text 1754242 1754674 432 0.0
shell debug (read only) 2536065 2536481 416 0.0
(read/write) 150312 150312 0 0.0
.bss 67368 67368 0 0.0
.data 1296 1296 0 0.0
.data.rel.ro 75944 75944 0 0.0
.dynamic 592 592 0 0.0
.got 4168 4168 0 0.0
.init 27 27 0 0.0
.init_array 920 920 0 0.0
.rodata 215794 215794 0 0.0
.text 2158530 2158946 416 0.0
thermostat-no-ble arm64 (read only) 2360236 2360716 480 0.0
(read/write) 151137 151137 0 0.0
.bss 62945 62945 0 0.0
.data 1440 1440 0 0.0
.data.rel.ro 78984 78984 0 0.0
.dynamic 560 560 0 0.0
.got 4752 4752 0 0.0
.init 24 24 0 0.0
.init_array 368 368 0 0.0
.rodata 145484 145484 0 0.0
.text 1985760 1986240 480 0.0
tv-app debug (read only) 2836353 2837145 792 0.0
(read/write) 253136 253168 32 0.0
.bss 165976 165976 0 0.0
.data 4448 4448 0 0.0
.data.rel.ro 76512 76544 32 0.0
.dynamic 592 592 0 0.0
.got 4680 4680 0 0.0
.init 27 27 0 0.0
.init_array 912 912 0 0.0
.rodata 215563 215627 64 0.0
.text 2438594 2439202 608 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2410916 2410980 64 0.0
.bss 185252 185252 0 0.0
.data 5840 5840 0 0.0
.text 1373516 1373580 64 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1165731 1165779 48 0.0
bss 136520 136520 0 0.0
rodata 147780 147780 0 0.0
text 802792 802848 56 0.0
p6 all-clusters-app default (read/write) 2518648 2518744 96 0.0
.bss 118624 118624 0 0.0
.data 2768 2768 0 0.0
.text 1476912 1477008 96 0.0
light-app default (read/write) 2417320 2417416 96 0.0
.bss 112104 112104 0 0.0
.data 2576 2576 0 0.0
.text 1375584 1375680 96 0.0
lock-app default (read/write) 2421208 2421304 96 0.0
.bss 111904 111904 0 0.0
.data 2536 2536 0 0.0
.text 1379472 1379568 96 0.0
telink lighting-app tlsr9518adk80d (read/write) 802236 802292 56 0.0
bss 69952 69952 0 0.0
noinit 40416 40416 0 0.0
text 570794 570852 58 0.0

@andy31415 andy31415 merged commit faf9ed4 into project-chip:master Apr 20, 2022
Comment on lines +189 to +190
* If application don't have this one, it clear outparam and return CHIP_NO_ERROR.
* if any returning error, it will fail the entire read client.
Copy link
Contributor

Choose a reason for hiding this comment

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

If the application does not want to filter events by event number, it should call ClearValue() on aEventNumber
and return CHIP_NO_ERROR.  An error return from this function will fail the entire read client interaction.

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.

3 participants