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

Delete log-only delegate from platform app for 'device address resolved' #15736

Merged
merged 2 commits into from
Mar 2, 2022

Conversation

andy31415
Copy link
Contributor

Problem

Usage of an extra resolve delegate adds a lot of coupling of who gets notified and how such address updates are handled.

The only two uses of this delegate are:

  • Pairing command for showing a log of 'resolved done'
  • Discover command in chip-tool

Change overview

We already log a lot of status when resolution is done, a separate log should not be required and this reduces code complexity making address resolution easier to integrate.

Testing

Remove only, compile should be sufficient.

Copy link
Contributor

@woody-apple woody-apple left a comment

Choose a reason for hiding this comment

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

Fast tracking platform changes

@github-actions
Copy link

github-actions bot commented Mar 2, 2022

PR #15736: Size comparison from c2a5710 to 93bcf08

Increases above 0.2%:

platform target config section c2a5710 93bcf08 change % change
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1039967 1076235 36268 3.5
bss 125828 127680 1852 1.5
rodata 135736 141636 5900 4.3
text 701156 729516 28360 4.0
Increases (1 build for nrfconnect)
platform target config section c2a5710 93bcf08 change % change
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1039967 1076235 36268 3.5
bss 125828 127680 1852 1.5
rodata 135736 141636 5900 4.3
text 701156 729516 28360 4.0
Decreases (1 build for linux)
platform target config section c2a5710 93bcf08 change % change
linux tv-app debug (read only) 2607705 2607233 -472 -0.0
(read/write) 250904 250840 -64 -0.0
.data.rel.ro 73576 73512 -64 -0.1
.rodata 199069 199037 -32 -0.0
.text 2234850 2234530 -320 -0.0
Full report (28 builds for cyw30739, efr32, k32w, linux, nrfconnect, p6, qpg, telink)
platform target config section c2a5710 93bcf08 change % change
cyw30739 light cyw930739m2evb_01 (read/write) 600590 600590 0 0.0
.app_xip_area 505364 505364 0 0.0
.bss 77908 77908 0 0.0
.data 660 660 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
lock cyw930739m2evb_01 (read/write) 558586 558586 0 0.0
.app_xip_area 464896 464896 0 0.0
.bss 76412 76412 0 0.0
.data 624 624 0 0.0
.rodata 0 0 0 0.0
.text 0 0 0 0.0
ota-requestor cyw930739m2evb_01 (read/write) 578998 578998 0 0.0
.app_xip_area 475876 475876 0 0.0
.bss 85516 85516 0 0.0
.data 568 568 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read only) 917696 917696 0 0.0
(read/write) 128672 128672 0 0.0
.bss 126616 126616 0 0.0
.data 2056 2056 0 0.0
.text 917688 917688 0 0.0
BRD4161A+rpc (read only) 947788 947788 0 0.0
(read/write) 145612 145612 0 0.0
.bss 143392 143392 0 0.0
.data 2220 2220 0 0.0
.text 947780 947780 0 0.0
lock-app BRD4161A+wf200 (read only) 987536 987536 0 0.0
(read/write) 120436 120436 0 0.0
.bss 118500 118500 0 0.0
.data 1932 1932 0 0.0
.text 987528 987528 0 0.0
window-app BRD4161A (read only) 851648 851648 0 0.0
(read/write) 126912 126912 0 0.0
.bss 124984 124984 0 0.0
.data 1924 1924 0 0.0
.text 851640 851640 0 0.0
k32w light k32w061+release (read/write) 692704 692704 0 0.0
.bss 77544 77544 0 0.0
.data 1932 1932 0 0.0
.text 607428 607428 0 0.0
lock k32w061+release (read/write) 696048 696048 0 0.0
.bss 77744 77744 0 0.0
.data 1972 1972 0 0.0
.text 610532 610532 0 0.0
linux all-clusters-app debug (read only) 2402689 2402689 0 0.0
(read/write) 144824 144824 0 0.0
.bss 59328 59328 0 0.0
.data 1392 1392 0 0.0
.data.rel.ro 78392 78392 0 0.0
.dynamic 592 592 0 0.0
.got 4160 4160 0 0.0
.init 27 27 0 0.0
.init_array 912 912 0 0.0
.rodata 204933 204933 0 0.0
.text 2035010 2035010 0 0.0
bridge-app debug+rpc (read only) 1728141 1728141 0 0.0
(read/write) 92784 92784 0 0.0
.bss 47624 47624 0 0.0
.data 2048 2048 0 0.0
.data.rel.ro 38040 38040 0 0.0
.dynamic 592 592 0 0.0
.got 3912 3912 0 0.0
.init 27 27 0 0.0
.init_array 544 544 0 0.0
.rodata 141556 141556 0 0.0
.text 1470805 1470805 0 0.0
chip-tool debug (read only) 9008445 9008445 0 0.0
(read/write) 283328 283328 0 0.0
.bss 25248 25248 0 0.0
.data 1136 1136 0 0.0
.data.rel.ro 250912 250912 0 0.0
.dynamic 608 608 0 0.0
.got 4784 4784 0 0.0
.init 27 27 0 0.0
.init_array 600 600 0 0.0
.rodata 480245 480245 0 0.0
.text 7920037 7920037 0 0.0
chip-tool-ipv6only arm64 (read only) 8762836 8762836 0 0.0
(read/write) 396977 396977 0 0.0
.bss 43617 43617 0 0.0
.data 1192 1192 0 0.0
.data.rel.ro 296592 296592 0 0.0
.dynamic 560 560 0 0.0
.got 51800 51800 0 0.0
.init 24 24 0 0.0
.init_array 184 184 0 0.0
.rodata 457884 457884 0 0.0
.text 7439668 7439668 0 0.0
door-lock-app debug (read only) 1943257 1943257 0 0.0
(read/write) 119232 119232 0 0.0
.bss 50624 50624 0 0.0
.data 1056 1056 0 0.0
.data.rel.ro 62168 62168 0 0.0
.dynamic 592 592 0 0.0
.got 4096 4096 0 0.0
.init 27 27 0 0.0
.init_array 664 664 0 0.0
.rodata 173564 173564 0 0.0
.text 1621234 1621234 0 0.0
lighting-app debug+rpc (read only) 2079121 2079121 0 0.0
(read/write) 124624 124624 0 0.0
.bss 51552 51552 0 0.0
.data 1472 1472 0 0.0
.data.rel.ro 66120 66120 0 0.0
.dynamic 608 608 0 0.0
.got 4128 4128 0 0.0
.init 27 27 0 0.0
.init_array 712 712 0 0.0
.rodata 166364 166364 0 0.0
.text 1757330 1757330 0 0.0
ota-provider-app debug (read only) 1875425 1875425 0 0.0
(read/write) 114864 114864 0 0.0
.bss 50432 50432 0 0.0
.data 1352 1352 0 0.0
.data.rel.ro 57448 57448 0 0.0
.dynamic 608 608 0 0.0
.got 4352 4352 0 0.0
.init 27 27 0 0.0
.init_array 616 616 0 0.0
.rodata 158803 158803 0 0.0
.text 1566082 1566082 0 0.0
ota-requestor-app debug (read only) 1886401 1886401 0 0.0
(read/write) 116632 116632 0 0.0
.bss 51296 51296 0 0.0
.data 1224 1224 0 0.0
.data.rel.ro 58696 58696 0 0.0
.dynamic 592 592 0 0.0
.got 4152 4152 0 0.0
.init 27 27 0 0.0
.init_array 624 624 0 0.0
.rodata 152516 152516 0 0.0
.text 1585074 1585074 0 0.0
shell debug (read only) 2371081 2371081 0 0.0
(read/write) 147272 147272 0 0.0
.bss 67648 67648 0 0.0
.data 864 864 0 0.0
.data.rel.ro 73112 73112 0 0.0
.dynamic 592 592 0 0.0
.got 4144 4144 0 0.0
.init 27 27 0 0.0
.init_array 896 896 0 0.0
.rodata 204882 204882 0 0.0
.text 2009666 2009666 0 0.0
thermostat-no-ble arm64 (read only) 2169412 2169412 0 0.0
(read/write) 148641 148641 0 0.0
.bss 65345 65345 0 0.0
.data 1072 1072 0 0.0
.data.rel.ro 75056 75056 0 0.0
.dynamic 560 560 0 0.0
.got 4216 4216 0 0.0
.init 24 24 0 0.0
.init_array 352 352 0 0.0
.rodata 132996 132996 0 0.0
.text 1818160 1818160 0 0.0
tv-app debug (read only) 2607705 2607233 -472 -0.0
(read/write) 250904 250840 -64 -0.0
.bss 168096 168096 0 0.0
.data 3200 3200 0 0.0
.data.rel.ro 73576 73512 -64 -0.1
.dynamic 592 592 0 0.0
.got 4528 4528 0 0.0
.init 27 27 0 0.0
.init_array 880 880 0 0.0
.rodata 199069 199037 -32 -0.0
.text 2234850 2234530 -320 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1039967 1076235 36268 3.5
bss 125828 127680 1852 1.5
rodata 135736 141636 5900 4.3
text 701156 729516 28360 4.0
p6 all-clusters-app default (read/write) 2489400 2489400 0 0.0
.bss 118736 118736 0 0.0
.data 2696 2696 0 0.0
.text 1447664 1447664 0 0.0
light-app default (read/write) 2396568 2396568 0 0.0
.bss 113048 113048 0 0.0
.data 2544 2544 0 0.0
.text 1354832 1354832 0 0.0
lock-app default (read/write) 2360080 2360080 0 0.0
.bss 112792 112792 0 0.0
.data 2504 2504 0 0.0
.text 1318344 1318344 0 0.0
qpg lighting-app qpg6105+debug (read only) 602140 602140 0 0.0
(read/write) 146936 146936 0 0.0
.bss 90928 90928 0 0.0
.data 1132 1132 0 0.0
.text 596820 596820 0 0.0
lock-app qpg6105+debug (read only) 567856 567856 0 0.0
(read/write) 146936 146936 0 0.0
.bss 90936 90936 0 0.0
.data 1084 1084 0 0.0
.text 562536 562536 0 0.0
persistent-storage-app qpg6105+debug (read only) 99520 99520 0 0.0
(read/write) 146940 146940 0 0.0
.bss 24004 24004 0 0.0
.data 176 176 0 0.0
.text 94200 94200 0 0.0
telink lighting-app tlsr9518adk80d (read/write) 884190 884190 0 0.0
bss 86408 86408 0 0.0
noinit 37160 37160 0 0.0
text 625148 625148 0 0.0

@andy31415 andy31415 merged commit b297f46 into project-chip:master Mar 2, 2022
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.

2 participants