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

Set the DeviceInstanceInfoProvider instance to the platform implementation. #20925

Merged

Conversation

woody-apple
Copy link
Contributor

Problem

In the #19514 there was a mistake made.
Within some platforms, the DeviceInstanceInfoProvider was set to a generic one instead of the platform implementation.

Change overview

To resolve this issue, the DeviceInstanceInfoProvider has been set to the proper one in PlatformManager implementation for
Android, Darwin, Linux, Tizen, and WebOS.

Fixes: #20590

Testing

Tested in CI

In the #19514 there was a mistake made.
Within some platforms, the DeviceInstanceInfoProvider was set to
a generic one instead of the platform implementation.

To resolve this issue, the DeviceInstanceInfoProvider has been
set to the proper one in PlatformManager implementation for
Android, Darwin, Linux, Tizen, and WebOS.
@github-actions
Copy link

github-actions bot commented Jul 19, 2022

PR #20925: Size comparison from 66592b6 to 5b07bd1

Increases above 0.2%:

platform target config section 66592b6 5b07bd1 change % change
linux all-clusters-app debug .init_array 1056 1064 8 0.8
all-clusters-minimal-app debug .init_array 1048 1056 8 0.8
bridge-app debug+rpc .init_array 728 736 8 1.1
chip-tool debug .init_array 640 648 8 1.2
lighting-app debug+rpc .init_array 816 824 8 1.0
lock-app debug .init_array 792 800 8 1.0
ota-provider-app debug .init_array 672 680 8 1.2
ota-requestor-app debug .init_array 728 736 8 1.1
shell debug .init_array 928 936 8 0.9
thermostat-no-ble arm64 .got 5072 5104 32 0.6
tv-app debug .init_array 952 960 8 0.8
tv-casting-app debug .init_array 864 872 8 0.9
Increases (13 builds for linux)
platform target config section 66592b6 5b07bd1 change % change
linux all-clusters-app debug (read only) 2973161 2975641 2480 0.1
(read/write) 155016 155152 136 0.1
.bss 61664 61696 32 0.1
.data.rel.ro 85048 85160 112 0.1
.got 4560 4568 8 0.2
.init_array 1056 1064 8 0.8
.text 2530834 2532930 2096 0.1
all-clusters-minimal-app debug (read only) 2819721 2822201 2480 0.1
(read/write) 146688 146824 136 0.1
.bss 60864 60896 32 0.1
.data.rel.ro 77608 77720 112 0.1
.got 4480 4488 8 0.2
.init_array 1048 1056 8 0.8
.text 2379122 2381218 2096 0.1
bridge-app debug+rpc (read only) 2320009 2322489 2480 0.1
(read/write) 125504 125640 136 0.1
.bss 48928 48960 32 0.1
.data.rel.ro 66984 67096 112 0.2
.got 4384 4392 8 0.2
.init_array 728 736 8 1.1
.text 1960130 1962226 2096 0.1
chip-tool debug (read only) 10295393 10297761 2368 0.0
(read/write) 629504 629640 136 0.0
.bss 24728 24760 32 0.1
.data.rel.ro 595152 595256 104 0.0
.init_array 640 648 8 1.2
.text 8331604 8333684 2080 0.0
chip-tool-ipv6only arm64 (read only) 10035964 10037948 1984 0.0
(read/write) 694577 694801 224 0.0
.bss 42961 42993 32 0.1
.data.rel.ro 630768 630920 152 0.0
.got 13624 13656 32 0.2
.text 7976180 7977764 1584 0.0
lighting-app debug+rpc (read only) 2557817 2560281 2464 0.1
(read/write) 129528 129664 136 0.1
.bss 49440 49472 32 0.1
.data.rel.ro 72136 72248 112 0.2
.got 4384 4392 8 0.2
.init_array 816 824 8 1.0
.text 2173922 2176002 2080 0.1
lock-app debug (read only) 2522617 2525097 2480 0.1
(read/write) 124512 124648 136 0.1
.bss 47840 47872 32 0.1
.data.rel.ro 69096 69208 112 0.2
.got 4416 4424 8 0.2
.init_array 792 800 8 1.0
.text 2128482 2130578 2096 0.1
ota-provider-app debug (read only) 2326209 2328673 2464 0.1
(read/write) 118312 118448 136 0.1
.bss 47488 47520 32 0.1
.data.rel.ro 63096 63192 96 0.2
.got 4480 4488 8 0.2
.init_array 672 680 8 1.2
.text 1959698 1961778 2080 0.1
ota-requestor-app debug (read only) 2443817 2446281 2464 0.1
(read/write) 125216 125384 168 0.1
.bss 49856 49888 32 0.1
.data.rel.ro 67304 67416 112 0.2
.got 4472 4480 8 0.2
.init_array 728 736 8 1.1
.text 2065154 2067234 2080 0.1
shell debug (read only) 2560065 2562545 2480 0.1
(read/write) 141104 141240 136 0.1
.bss 57448 57480 32 0.1
.data.rel.ro 76688 76792 104 0.1
.got 4128 4136 8 0.2
.init_array 928 936 8 0.9
.text 2174946 2177042 2096 0.1
thermostat-no-ble arm64 (read only) 2600548 2602988 2440 0.1
(read/write) 158257 158481 224 0.1
.bss 65249 65281 32 0.0
.data.rel.ro 83216 83368 152 0.2
.got 5072 5104 32 0.6
.text 2195056 2196944 1888 0.1
tv-app debug (read only) 3108121 3110585 2464 0.1
(read/write) 257704 257840 136 0.1
.bss 167016 167048 32 0.0
.data.rel.ro 79392 79496 104 0.1
.got 4840 4848 8 0.2
.init_array 952 960 8 0.8
.text 2670818 2672898 2080 0.1
tv-casting-app debug (read only) 5350449 5352817 2368 0.0
(read/write) 156848 156984 136 0.1
.bss 50248 50280 32 0.1
.data.rel.ro 97928 98032 104 0.1
.init_array 864 872 8 0.9
.text 4753538 4755618 2080 0.0
Decreases (2 builds for bl602, telink)
platform target config section 66592b6 5b07bd1 change % change
bl602 lighting-app bl602+rpc .text 1085464 1085460 -4 -0.0
telink light-switch-app tlsr9518adk80d text 566812 566810 -2 -0.0
Full report (43 builds for bl602, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section 66592b6 5b07bd1 change % change
bl602 lighting-app bl602 (read/write) 1383730 1383730 0 0.0
.bss 116978 116978 0 0.0
.data 4480 4480 0 0.0
.text 1053776 1053776 0 0.0
bl602+rpc (read/write) 1429170 1429170 0 0.0
.bss 124418 124418 0 0.0
.data 4600 4600 0 0.0
.text 1085464 1085460 -4 -0.0
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 668399 668399 0 0.0
(read/write) 182840 182840 0 0.0
.bss 74132 74132 0 0.0
.data 3356 3356 0 0.0
.rodata 88319 88319 0 0.0
.text 579764 579764 0 0.0
all-clusters-minimal-app LP_CC2652R7 (read only) 634015 634015 0 0.0
(read/write) 157700 157700 0 0.0
.bss 73428 73428 0 0.0
.data 3356 3356 0 0.0
.rodata 77551 77551 0 0.0
.text 556140 556140 0 0.0
lock-ftd LP_CC2652R7 (read only) 671595 671595 0 0.0
(read/write) 169820 169820 0 0.0
.bss 71196 71196 0 0.0
.data 3280 3280 0 0.0
.rodata 76451 76451 0 0.0
.text 594664 594664 0 0.0
lock-mtd LP_CC2652R7 (read only) 653887 653887 0 0.0
(read/write) 183216 183216 0 0.0
.bss 66884 66884 0 0.0
.data 3280 3280 0 0.0
.rodata 101199 101199 0 0.0
.text 552208 552208 0 0.0
pump-app LP_CC2652R7 (read only) 680587 680587 0 0.0
(read/write) 161676 161676 0 0.0
.bss 71276 71276 0 0.0
.data 3280 3280 0 0.0
.rodata 88811 88811 0 0.0
.text 591292 591292 0 0.0
pump-controller-app LP_CC2652R7 (read only) 666379 666379 0 0.0
(read/write) 176004 176004 0 0.0
.bss 71396 71396 0 0.0
.data 3276 3276 0 0.0
.rodata 84675 84675 0 0.0
.text 581224 581224 0 0.0
shell LP_CC2652R7 (read only) 660890 660890 0 0.0
(read/write) 185852 185852 0 0.0
.bss 76436 76436 0 0.0
.data 3360 3360 0 0.0
.rodata 85098 85098 0 0.0
.text 575476 575476 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 581926 581926 0 0.0
.app_xip_area 460632 460632 0 0.0
.bss 64232 64232 0 0.0
.data 716 716 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 587842 587842 0 0.0
.app_xip_area 461820 461820 0 0.0
.bss 68960 68960 0 0.0
.data 720 720 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 585266 585266 0 0.0
.app_xip_area 464820 464820 0 0.0
.bss 63440 63440 0 0.0
.data 660 660 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read/write) 1084792 1084792 0 0.0
.bss 133044 133044 0 0.0
.data 2048 2048 0 0.0
.text 949680 949680 0 0.0
BRD4161A+rpc (read/write) 1139132 1139132 0 0.0
.bss 149724 149724 0 0.0
.data 2260 2260 0 0.0
.text 987124 987124 0 0.0
BRD4161A+rs911x (read/write) 950160 950160 0 0.0
.bss 140768 140768 0 0.0
.data 2048 2048 0 0.0
.text 807324 807324 0 0.0
lock-app BRD4161A+wf200 (read/write) 1128004 1128004 0 0.0
.bss 144136 144136 0 0.0
.data 2056 2056 0 0.0
.text 981792 981792 0 0.0
window-app BRD4161A (read/write) 1078284 1078284 0 0.0
.bss 134516 134516 0 0.0
.data 2076 2076 0 0.0
.text 941672 941672 0 0.0
esp32 all-clusters-app c3devkit (read only) 1021762 1021762 0 0.0
(read/write) 1486026 1486026 0 0.0
.dram0.bss 70080 70080 0 0.0
.dram0.data 14600 14600 0 0.0
.flash.rodata 215912 215912 0 0.0
.flash.text 1021762 1021762 0 0.0
.iram0.text 62902 62902 0 0.0
m5stack (read only) 1075507 1075507 0 0.0
(read/write) 488064 488064 0 0.0
.dram0.bss 75600 75600 0 0.0
.dram0.data 34144 34144 0 0.0
.flash.rodata 246324 246324 0 0.0
.flash.text 1070123 1070123 0 0.0
.iram0.text 123267 123267 0 0.0
k32w light k32w061+release (read/write) 660700 660700 0 0.0
.bss 69540 69540 0 0.0
.data 1992 1992 0 0.0
.text 583368 583368 0 0.0
lock k32w061+release (read/write) 687684 687684 0 0.0
.bss 70004 70004 0 0.0
.data 2004 2004 0 0.0
.text 609876 609876 0 0.0
linux all-clusters-app debug (read only) 2973161 2975641 2480 0.1
(read/write) 155016 155152 136 0.1
.bss 61664 61696 32 0.1
.data 2048 2048 0 0.0
.data.rel.ro 85048 85160 112 0.1
.dynamic 608 608 0 0.0
.got 4560 4568 8 0.2
.init 27 27 0 0.0
.init_array 1056 1064 8 0.8
.rodata 264733 264733 0 0.0
.text 2530834 2532930 2096 0.1
all-clusters-minimal-app debug (read only) 2819721 2822201 2480 0.1
(read/write) 146688 146824 136 0.1
.bss 60864 60896 32 0.1
.data 2048 2048 0 0.0
.data.rel.ro 77608 77720 112 0.1
.dynamic 608 608 0 0.0
.got 4480 4488 8 0.2
.init 27 27 0 0.0
.init_array 1048 1056 8 0.8
.rodata 265661 265661 0 0.0
.text 2379122 2381218 2096 0.1
bridge-app debug+rpc (read only) 2320009 2322489 2480 0.1
(read/write) 125504 125640 136 0.1
.bss 48928 48960 32 0.1
.data 3824 3824 0 0.0
.data.rel.ro 66984 67096 112 0.2
.dynamic 608 608 0 0.0
.got 4384 4392 8 0.2
.init 27 27 0 0.0
.init_array 728 736 8 1.1
.rodata 198240 198240 0 0.0
.text 1960130 1962226 2096 0.1
chip-tool debug (read only) 10295393 10297761 2368 0.0
(read/write) 629504 629640 136 0.0
.bss 24728 24760 32 0.1
.data 3234 3234 0 0.0
.data.rel.ro 595152 595256 104 0.0
.dynamic 608 608 0 0.0
.got 5088 5088 0 0.0
.init 27 27 0 0.0
.init_array 640 648 8 1.2
.rodata 515765 515765 0 0.0
.text 8331604 8333684 2080 0.0
chip-tool-ipv6only arm64 (read only) 10035964 10037948 1984 0.0
(read/write) 694577 694801 224 0.0
.bss 42961 42993 32 0.1
.data 3304 3304 0 0.0
.data.rel.ro 630768 630920 152 0.0
.dynamic 528 528 0 0.0
.got 13624 13656 32 0.2
.init 24 24 0 0.0
.init_array 192 192 0 0.0
.rodata 479820 479820 0 0.0
.text 7976180 7977764 1584 0.0
lighting-app debug+rpc (read only) 2557817 2560281 2464 0.1
(read/write) 129528 129664 136 0.1
.bss 49440 49472 32 0.1
.data 2096 2096 0 0.0
.data.rel.ro 72136 72248 112 0.2
.dynamic 608 608 0 0.0
.got 4384 4392 8 0.2
.init 27 27 0 0.0
.init_array 816 824 8 1.0
.rodata 214024 214024 0 0.0
.text 2173922 2176002 2080 0.1
lock-app debug (read only) 2522617 2525097 2480 0.1
(read/write) 124512 124648 136 0.1
.bss 47840 47872 32 0.1
.data 1712 1712 0 0.0
.data.rel.ro 69096 69208 112 0.2
.dynamic 608 608 0 0.0
.got 4416 4424 8 0.2
.init 27 27 0 0.0
.init_array 792 800 8 1.0
.rodata 229064 229064 0 0.0
.text 2128482 2130578 2096 0.1
ota-provider-app debug (read only) 2326209 2328673 2464 0.1
(read/write) 118312 118448 136 0.1
.bss 47488 47520 32 0.1
.data 1944 1944 0 0.0
.data.rel.ro 63096 63192 96 0.2
.dynamic 608 608 0 0.0
.got 4480 4488 8 0.2
.init 27 27 0 0.0
.init_array 672 680 8 1.2
.rodata 203832 203832 0 0.0
.text 1959698 1961778 2080 0.1
ota-requestor-app debug (read only) 2443817 2446281 2464 0.1
(read/write) 125216 125384 168 0.1
.bss 49856 49888 32 0.1
.data 2232 2232 0 0.0
.data.rel.ro 67304 67416 112 0.2
.dynamic 608 608 0 0.0
.got 4472 4480 8 0.2
.init 27 27 0 0.0
.init_array 728 736 8 1.1
.rodata 207584 207584 0 0.0
.text 2065154 2067234 2080 0.1
shell debug (read only) 2560065 2562545 2480 0.1
(read/write) 141104 141240 136 0.1
.bss 57448 57480 32 0.1
.data 1264 1264 0 0.0
.data.rel.ro 76688 76792 104 0.1
.dynamic 608 608 0 0.0
.got 4128 4136 8 0.2
.init 27 27 0 0.0
.init_array 928 936 8 0.9
.rodata 228114 228114 0 0.0
.text 2174946 2177042 2096 0.1
thermostat-no-ble arm64 (read only) 2600548 2602988 2440 0.1
(read/write) 158257 158481 224 0.1
.bss 65249 65281 32 0.0
.data 1704 1704 0 0.0
.data.rel.ro 83216 83368 152 0.2
.dynamic 528 528 0 0.0
.got 5072 5104 32 0.6
.init 24 24 0 0.0
.init_array 400 400 0 0.0
.rodata 165748 165748 0 0.0
.text 2195056 2196944 1888 0.1
tv-app debug (read only) 3108121 3110585 2464 0.1
(read/write) 257704 257840 136 0.1
.bss 167016 167048 32 0.0
.data 4848 4848 0 0.0
.data.rel.ro 79392 79496 104 0.1
.dynamic 608 608 0 0.0
.got 4840 4848 8 0.2
.init 27 27 0 0.0
.init_array 952 960 8 0.8
.rodata 249504 249504 0 0.0
.text 2670818 2672898 2080 0.1
tv-casting-app debug (read only) 5350449 5352817 2368 0.0
(read/write) 156848 156984 136 0.1
.bss 50248 50280 32 0.1
.data 2416 2416 0 0.0
.data.rel.ro 97928 98032 104 0.1
.dynamic 608 608 0 0.0
.got 4736 4736 0 0.0
.init 27 27 0 0.0
.init_array 864 872 8 0.9
.rodata 331657 331657 0 0.0
.text 4753538 4755618 2080 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2449192 2449192 0 0.0
.bss 213940 213940 0 0.0
.data 5872 5872 0 0.0
.text 1411836 1411836 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1176643 1176643 0 0.0
bss 142900 142900 0 0.0
rodata 142204 142204 0 0.0
text 812636 812636 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read/write) 1156675 1156675 0 0.0
bss 142136 142136 0 0.0
rodata 133748 133748 0 0.0
text 801920 801920 0 0.0
p6 all-clusters-app default (read only) 882136 882136 0 0.0
(read/write) 1685036 1685036 0 0.0
.bss 148560 148560 0 0.0
.data 2648 2648 0 0.0
.text 1525440 1525440 0 0.0
all-clusters-minimal-app default (read only) 882856 882856 0 0.0
(read/write) 1629180 1629180 0 0.0
.bss 147840 147840 0 0.0
.data 2648 2648 0 0.0
.text 1470304 1470304 0 0.0
light-app default (read only) 891160 891160 0 0.0
(read/write) 1549220 1549220 0 0.0
.bss 139744 139744 0 0.0
.data 2440 2440 0 0.0
.text 1398648 1398648 0 0.0
lock-app default (read only) 891288 891288 0 0.0
(read/write) 1576220 1576220 0 0.0
.bss 139600 139600 0 0.0
.data 2456 2456 0 0.0
.text 1425776 1425776 0 0.0
telink light-switch-app tlsr9518adk80d (read/write) 798700 798700 0 0.0
bss 70576 70576 0 0.0
noinit 40416 40416 0 0.0
text 566812 566810 -2 -0.0
lighting-app tlsr9518adk80d (read/write) 818740 818740 0 0.0
bss 71420 71420 0 0.0
noinit 40416 40416 0 0.0
text 583346 583346 0 0.0

@woody-apple woody-apple merged commit 56db839 into sve Jul 19, 2022
@woody-apple woody-apple deleted the cherry-pick-fcd6594c7dfe5854731ec2ee58e10b19927e0c69 branch July 19, 2022 15:39
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