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

[Linux] Run functions on GLib event loop in a sync way #25916

Merged
merged 6 commits into from
Apr 13, 2023

Conversation

arkq
Copy link
Contributor

@arkq arkq commented Mar 31, 2023

Problem

It's not possible to easily retrieve error from callback function passed to the RunOnGLibMainLoopThread() function.

This PR is a first step for using Matter dedicated GLib context in GLib event loop thread instead of global main context (using global main context causes issues with using Matter SDK with Qt framework on Linux).

Changes

  • make RunOnGLibMainLoopThread synchronous in all cases (if one want's async processing there is the ScheduleWork() function) and forward the callbacks's return value to the caller
  • rename ScheduleOnGLibMainLoopThread to GLibMatterContextInvokeSync so the name will be more descriptive

Testing

Tested BLE commissioning with

./chip-lighting-app --wifi
./out/linux-x64-chip-tool/chip-tool pairing ble-wifi 1 <SSID> <password> 20202021 3840

@github-actions
Copy link

PR #25916: Size comparison from ce0ddc0 to a88f22e

Full report (1 build for cc32xx)
platform target config section ce0ddc0 a88f22e change % change
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 645825 645825 0 0.0
(read/write) 203848 203848 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197248 197248 0 0.0
.comment 194 194 0 0.0
.data 1480 1480 0 0.0
.debug_abbrev 933102 933102 0 0.0
.debug_aranges 87704 87704 0 0.0
.debug_frame 301596 301596 0 0.0
.debug_info 20310331 20310331 0 0.0
.debug_line 2681125 2681125 0 0.0
.debug_loc 2827568 2827568 0 0.0
.debug_ranges 286448 286448 0 0.0
.debug_str 3041144 3041144 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 105953 105953 0 0.0
.shstrtab 232 232 0 0.0
.stab 204 204 0 0.0
.stabstr 441 441 0 0.0
.stack 2048 2048 0 0.0
.strtab 380543 380543 0 0.0
.symtab 257472 257472 0 0.0
.text 537752 537752 0 0.0

@github-actions
Copy link

github-actions bot commented Mar 31, 2023

PR #25916: Size comparison from ce0ddc0 to 40811c4

Increases (10 builds for bl602, bl702, cc32xx, k32w, linux, nrfconnect, psoc6)
platform target config section ce0ddc0 40811c4 change % change
bl602 lighting-app bl602 .text 1030086 1030088 2 0.0
bl602+rpc .text 1061020 1061024 4 0.0
bl702 lighting-app bl702 .debug_info 40760797 40760798 1 0.0
.text 957996 957998 2 0.0
bl702+rpc .debug_info 45407877 45407878 1 0.0
.text 1034268 1034270 2 0.0
cc32xx lock CC3235SF_LAUNCHXL .debug_info 20310331 20310332 1 0.0
k32w light k32w0+release (read/write) 673812 673828 16 0.0
.text 575004 575020 16 0.0
linux thermostat-no-ble arm64 (read only) 2520004 2520052 48 0.0
.text 2110336 2110400 64 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 text 805152 805156 4 0.0
psoc6 all-clusters-minimal cy8ckit_062s2_43012 .debug_info 27555406 27555407 1 0.0
lock cy8ckit_062s2_43012 .debug_info 23165238 23165239 1 0.0
Decreases (6 builds for efr32, linux, nrfconnect, psoc6, qpg)
platform target config section ce0ddc0 40811c4 change % change
efr32 lock-app BRD4161A+wf200 (read/write) 1071624 1071616 -8 -0.0
.text 896320 896312 -8 -0.0
linux chip-tool-ipv6only arm64 (read only) 12128124 12127516 -608 -0.0
(read/write) 742616 742536 -80 -0.0
.bss 34392 34344 -48 -0.1
.got 15504 15488 -16 -0.1
.rodata 582060 581916 -144 -0.0
.text 9783796 9783508 -288 -0.0
thermostat-no-ble arm64 (read/write) 145208 145160 -48 -0.0
.bss 56344 56296 -48 -0.1
.got 5360 5352 -8 -0.1
.rodata 147328 147232 -96 -0.1
nrfconnect all-clusters-minimal-app nrf52840dk_nrf52840 text 774368 774364 -4 -0.0
psoc6 light cy8ckit_062s2_43012 .debug_info 22913830 22913828 -2 -0.0
qpg lighting-app qpg6105+debug (read/write) 1152960 1152952 -8 -0.0
.text 600056 600048 -8 -0.0
Full report (34 builds for bl602, bl702, cc13x2_26x2, cc32xx, cyw30739, efr32, k32w, linux, mbed, nrfconnect, psoc6, qpg)
platform target config section ce0ddc0 40811c4 change % change
bl602 lighting-app bl602 (read/write) 1356834 1356834 0 0.0
.bss 94778 94778 0 0.0
.data 9776 9776 0 0.0
.text 1030086 1030088 2 0.0
bl602+rpc (read/write) 1402258 1402258 0 0.0
.bss 102826 102826 0 0.0
.data 10168 10168 0 0.0
.text 1061020 1061024 4 0.0
bl702 lighting-app bl702 (read only) 3358 3358 0 0.0
(read/write) 1184999 1184999 0 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 292 292 0 0.0
.bss 70721 70721 0 0.0
.bss_psram 24368 24368 0 0.0
.comment 48 48 0 0.0
.data 4088 4088 0 0.0
.debug_abbrev 1551719 1551719 0 0.0
.debug_aranges 134048 134048 0 0.0
.debug_frame 492940 492940 0 0.0
.debug_info 40760797 40760798 1 0.0
.debug_line 5300010 5300010 0 0.0
.debug_loc 3435610 3435610 0 0.0
.debug_ranges 374632 374632 0 0.0
.debug_str 3594957 3594957 0 0.0
.hbn 536 536 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 140 140 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 106720 106720 0 0.0
.rsvd 2960 2960 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 304 304 0 0.0
.stack 2048 2048 0 0.0
.strtab 573959 573959 0 0.0
.symtab 173856 173856 0 0.0
.tcm_data 36 36 0 0.0
.tcmcode 3358 3358 0 0.0
.text 0 0 0 0.0
957996 957998 2 0.0
bl702+rpc (read only) 3358 3358 0 0.0
(read/write) 1276819 1276819 0 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 292 292 0 0.0
.bss 78769 78769 0 0.0
.bss_psram 24768 24768 0 0.0
.comment 48 48 0 0.0
.data 4648 4648 0 0.0
.debug_abbrev 1703939 1703939 0 0.0
.debug_aranges 142408 142408 0 0.0
.debug_frame 521108 521108 0 0.0
.debug_info 45407877 45407878 1 0.0
.debug_line 5706273 5706273 0 0.0
.debug_loc 3634612 3634612 0 0.0
.debug_ranges 398632 398632 0 0.0
.debug_str 3999624 3999624 0 0.0
.hbn 536 536 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 156 156 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 121024 121024 0 0.0
.rsvd 2960 2960 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 304 304 0 0.0
.stack 2048 2048 0 0.0
.strtab 635769 635769 0 0.0
.symtab 192480 192480 0 0.0
.tcm_data 36 36 0 0.0
.tcmcode 3358 3358 0 0.0
.text 0 0 0 0.0
1034268 1034270 2 0.0
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 682575 682575 0 0.0
(read/write) 168680 168680 0 0.0
.bss 80948 80948 0 0.0
.data 3352 3352 0 0.0
.rodata 88535 88535 0 0.0
.text 593724 593724 0 0.0
all-clusters-minimal-app LP_CC2652R7 (read only) 645903 645903 0 0.0
(read/write) 157616 157616 0 0.0
.bss 80148 80148 0 0.0
.data 3352 3352 0 0.0
.rodata 78407 78407 0 0.0
.text 567176 567176 0 0.0
lock-ftd LP_CC2652R7 (read only) 679511 679511 0 0.0
(read/write) 169208 169208 0 0.0
.bss 78500 78500 0 0.0
.data 3316 3316 0 0.0
.rodata 76783 76783 0 0.0
.text 602248 602248 0 0.0
lock-mtd LP_CC2652R7 (read only) 665747 665747 0 0.0
(read/write) 178132 178132 0 0.0
.bss 73660 73660 0 0.0
.data 3316 3316 0 0.0
.rodata 103587 103587 0 0.0
.text 561680 561680 0 0.0
pump-app LP_CC2652R7 (read only) 692299 692299 0 0.0
(read/write) 157164 157164 0 0.0
.bss 78476 78476 0 0.0
.data 3280 3280 0 0.0
.rodata 90963 90963 0 0.0
.text 600856 600856 0 0.0
pump-controller-app LP_CC2652R7 (read only) 677235 677235 0 0.0
(read/write) 172364 172364 0 0.0
.bss 78612 78612 0 0.0
.data 3304 3304 0 0.0
.rodata 86835 86835 0 0.0
.text 589920 589920 0 0.0
shell LP_CC2652R7 (read only) 674030 674030 0 0.0
(read/write) 179296 179296 0 0.0
.bss 83020 83020 0 0.0
.data 3348 3348 0 0.0
.rodata 85438 85438 0 0.0
.text 588280 588280 0 0.0
cc32xx lock CC3235SF_LAUNCHXL (read only) 645825 645825 0 0.0
(read/write) 203848 203848 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197248 197248 0 0.0
.comment 194 194 0 0.0
.data 1480 1480 0 0.0
.debug_abbrev 933102 933102 0 0.0
.debug_aranges 87704 87704 0 0.0
.debug_frame 301596 301596 0 0.0
.debug_info 20310331 20310332 1 0.0
.debug_line 2681125 2681125 0 0.0
.debug_loc 2827568 2827568 0 0.0
.debug_ranges 286448 286448 0 0.0
.debug_str 3041144 3041144 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 105953 105953 0 0.0
.shstrtab 232 232 0 0.0
.stab 204 204 0 0.0
.stabstr 441 441 0 0.0
.stack 2048 2048 0 0.0
.strtab 380543 380543 0 0.0
.symtab 257472 257472 0 0.0
.text 0 0 0 0.0
537752 537752 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 534234 534234 0 0.0
.app_xip_area 414804 414804 0 0.0
.bss 61848 61848 0 0.0
.data 740 740 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 538522 538522 0 0.0
.app_xip_area 413804 413804 0 0.0
.bss 67128 67128 0 0.0
.data 748 748 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 555654 555654 0 0.0
.app_xip_area 436984 436984 0 0.0
.bss 61136 61136 0 0.0
.data 696 696 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A+rs9116 (read/write) 1018992 1018992 0 0.0
.bss 178700 178700 0 0.0
.data 2128 2128 0 0.0
.text 838144 838144 0 0.0
BRD4187C (read/write) 1025964 1025964 0 0.0
.bss 159240 159240 0 0.0
.data 2776 2776 0 0.0
.text 839352 839352 0 0.0
lock-app BRD4161A+wf200 (read/write) 1071624 1071616 -8 -0.0
.bss 173140 173140 0 0.0
.data 2144 2144 0 0.0
.text 896320 896312 -8 -0.0
window-app BRD4187C (read/write) 1142860 1142860 0 0.0
.bss 143664 143664 0 0.0
.data 2668 2668 0 0.0
.text 971932 971932 0 0.0
k32w contact k32w0+release (read/write) 674768 674768 0 0.0
.bss 65532 65532 0 0.0
.data 2224 2224 0 0.0
.text 575612 575612 0 0.0
light k32w0+release (read/write) 673812 673828 16 0.0
.bss 65196 65196 0 0.0
.data 2212 2212 0 0.0
.text 575004 575020 16 0.0
lock k32w0+release (read/write) 628500 628500 0 0.0
.bss 63268 63268 0 0.0
.data 2136 2136 0 0.0
.text 548080 548080 0 0.0
linux chip-tool-ipv6only arm64 (read only) 12128124 12127516 -608 -0.0
(read/write) 742616 742536 -80 -0.0
.bss 34392 34344 -48 -0.1
.data 3008 3008 0 0.0
.data.rel.ro 684496 684496 0 0.0
.dynamic 560 560 0 0.0
.got 15504 15488 -16 -0.1
.init 24 24 0 0.0
.init_array 216 216 0 0.0
.rodata 582060 581916 -144 -0.0
.text 9783796 9783508 -288 -0.0
thermostat-no-ble arm64 (read only) 2520004 2520052 48 0.0
(read/write) 145208 145160 -48 -0.0
.bss 56344 56296 -48 -0.1
.data 1784 1784 0 0.0
.data.rel.ro 77672 77672 0 0.0
.dynamic 560 560 0 0.0
.got 5360 5352 -8 -0.1
.init 24 24 0 0.0
.init_array 432 432 0 0.0
.rodata 147328 147232 -96 -0.1
.text 2110336 2110400 64 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2466536 2466536 0 0.0
.bss 215964 215964 0 0.0
.data 5880 5880 0 0.0
.text 1429180 1429180 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1174112 1174112 0 0.0
bss 155557 155557 0 0.0
rodata 132640 132640 0 0.0
text 805152 805156 4 0.0
nrf7002dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 1434148 1434148 0 0.0
bss 135297 135297 0 0.0
rodata 228692 228692 0 0.0
text 776076 776076 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1119184 1119184 0 0.0
bss 154713 154713 0 0.0
rodata 109456 109456 0 0.0
text 774368 774364 -4 -0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 840840 840840 0 0.0
(read/write) 1764196 1764196 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 189864 189864 0 0.0
.comment 200 200 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2640 2640 0 0.0
.debug_abbrev 1259828 1259828 0 0.0
.debug_aranges 111920 111920 0 0.0
.debug_frame 376476 376476 0 0.0
.debug_info 28096001 28096001 0 0.0
.debug_line 3823474 3823474 0 0.0
.debug_loc 3726051 3726051 0 0.0
.debug_ranges 368272 368272 0 0.0
.debug_str 3552234 3552234 0 0.0
.heap 840840 840840 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 584128 584128 0 0.0
.symtab 426928 426928 0 0.0
.text 1563304 1563304 0 0.0
.zero.table 8 8 0 0.0
text 0 0 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 841648 841648 0 0.0
(read/write) 1704516 1704516 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 189064 189064 0 0.0
.comment 200 200 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2632 2632 0 0.0
.debug_abbrev 1241692 1241692 0 0.0
.debug_aranges 111072 111072 0 0.0
.debug_frame 378560 378560 0 0.0
.debug_info 27555406 27555407 1 0.0
.debug_line 3826871 3826871 0 0.0
.debug_loc 3708121 3708121 0 0.0
.debug_ranges 366120 366120 0 0.0
.debug_str 3538160 3538160 0 0.0
.heap 841648 841648 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 543330 543330 0 0.0
.symtab 411744 411744 0 0.0
.text 1504432 1504432 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
light cy8ckit_062s2_43012 (read only) 849912 849912 0 0.0
(read/write) 1617572 1617572 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 180968 180968 0 0.0
.comment 200 200 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2464 2464 0 0.0
.debug_abbrev 1076990 1076990 0 0.0
.debug_aranges 103280 103280 0 0.0
.debug_frame 348840 348840 0 0.0
.debug_info 22913830 22913828 -2 -0.0
.debug_line 3377792 3377792 0 0.0
.debug_loc 3382928 3382928 0 0.0
.debug_ranges 324656 324656 0 0.0
.debug_str 3336839 3336839 0 0.0
.heap 849912 849912 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 478417 478417 0 0.0
.symtab 379376 379376 0 0.0
.text 1425752 1425752 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
lock cy8ckit_062s2_43012 (read only) 822136 822136 0 0.0
(read/write) 1674500 1674500 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 208728 208728 0 0.0
.comment 200 200 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2480 2480 0 0.0
.debug_abbrev 1079222 1079222 0 0.0
.debug_aranges 103680 103680 0 0.0
.debug_frame 350580 350580 0 0.0
.debug_info 23165238 23165239 1 0.0
.debug_line 3379550 3379550 0 0.0
.debug_loc 3406843 3406843 0 0.0
.debug_ranges 327256 327256 0 0.0
.debug_str 3355356 3355356 0 0.0
.heap 822136 822136 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 481814 481814 0 0.0
.symtab 381568 381568 0 0.0
.text 1454904 1454904 0 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1152960 1152952 -8 -0.0
.bss 96036 96036 0 0.0
.data 852 852 0 0.0
.text 600056 600048 -8 -0.0
lock-app qpg6105+debug (read/write) 1121528 1121528 0 0.0
.bss 91172 91172 0 0.0
.data 856 856 0 0.0
.text 568628 568628 0 0.0

@github-actions
Copy link

PR #25916: Size comparison from ce0ddc0 to 95eb311

Decreases (1 build for cc32xx)
platform target config section ce0ddc0 95eb311 change % change
cc32xx lock CC3235SF_LAUNCHXL .debug_info 20310331 20310330 -1 -0.0
Full report (1 build for cc32xx)
platform target config section ce0ddc0 95eb311 change % change
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 645825 645825 0 0.0
(read/write) 203848 203848 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197248 197248 0 0.0
.comment 194 194 0 0.0
.data 1480 1480 0 0.0
.debug_abbrev 933102 933102 0 0.0
.debug_aranges 87704 87704 0 0.0
.debug_frame 301596 301596 0 0.0
.debug_info 20310331 20310330 -1 -0.0
.debug_line 2681125 2681125 0 0.0
.debug_loc 2827568 2827568 0 0.0
.debug_ranges 286448 286448 0 0.0
.debug_str 3041144 3041144 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 105953 105953 0 0.0
.shstrtab 232 232 0 0.0
.stab 204 204 0 0.0
.stabstr 441 441 0 0.0
.stack 2048 2048 0 0.0
.strtab 380543 380543 0 0.0
.symtab 257472 257472 0 0.0
.text 537752 537752 0 0.0

@github-actions
Copy link

github-actions bot commented Apr 3, 2023

PR #25916: Size comparison from bf6dc7b to af69485

Increases (3 builds for linux, qpg)
platform target config section bf6dc7b af69485 change % change
linux chip-tool-ipv6only arm64 (read only) 12129740 12129788 48 0.0
.text 9785268 9785524 256 0.0
thermostat-no-ble arm64 (read/write) 145208 145240 32 0.0
qpg lighting-app qpg6105+debug (read/write) 1152968 1152976 8 0.0
.text 600064 600072 8 0.0
Decreases (7 builds for bl602, bl702, cc32xx, linux, psoc6)
platform target config section bf6dc7b af69485 change % change
bl602 lighting-app bl602 .text 1030088 1030086 -2 -0.0
bl702 lighting-app bl702 .debug_info 40760806 40760805 -1 -0.0
.text 957998 957996 -2 -0.0
cc32xx lock CC3235SF_LAUNCHXL .debug_info 20310332 20310330 -2 -0.0
linux chip-tool-ipv6only arm64 (read/write) 742616 742584 -32 -0.0
.got 15504 15488 -16 -0.1
.rodata 582204 582172 -32 -0.0
thermostat-no-ble arm64 (read only) 2519972 2519940 -32 -0.0
.got 5360 5352 -8 -0.1
.rodata 147312 147216 -96 -0.1
.text 2110320 2110064 -256 -0.0
psoc6 all-clusters cy8ckit_062s2_43012 .debug_info 28096001 28096000 -1 -0.0
lock cy8ckit_062s2_43012 .debug_info 23165239 23165238 -1 -0.0
Full report (23 builds for bl602, bl702, cc32xx, cyw30739, k32w, linux, mbed, nrfconnect, psoc6, qpg)
platform target config section bf6dc7b af69485 change % change
bl602 lighting-app bl602 (read/write) 1356842 1356842 0 0.0
.bss 94778 94778 0 0.0
.data 9776 9776 0 0.0
.text 1030088 1030086 -2 -0.0
bl602+rpc (read/write) 1402274 1402274 0 0.0
.bss 102826 102826 0 0.0
.data 10168 10168 0 0.0
.text 1061022 1061022 0 0.0
bl702 lighting-app bl702 0 0 0 0.0
(read only) 3358 3358 0 0.0
(read/write) 1185015 1185015 0 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 292 292 0 0.0
.bss 70721 70721 0 0.0
.bss_psram 24368 24368 0 0.0
.comment 48 48 0 0.0
.data 4088 4088 0 0.0
.debug_abbrev 1551719 1551719 0 0.0
.debug_aranges 134048 134048 0 0.0
.debug_frame 492940 492940 0 0.0
.debug_info 40760806 40760805 -1 -0.0
.debug_line 5299982 5299982 0 0.0
.debug_loc 3435610 3435610 0 0.0
.debug_ranges 374632 374632 0 0.0
.debug_str 3594957 3594957 0 0.0
.hbn 536 536 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 140 140 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 106736 106736 0 0.0
.rsvd 2960 2960 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 304 304 0 0.0
.stack 2048 2048 0 0.0
.strtab 573959 573959 0 0.0
.symtab 173856 173856 0 0.0
.tcm_data 36 36 0 0.0
.tcmcode 3358 3358 0 0.0
.text 957998 957996 -2 -0.0
bl702+rpc 0 0 0 0.0
(read only) 3358 3358 0 0.0
(read/write) 1276835 1276835 0 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 292 292 0 0.0
.bss 78769 78769 0 0.0
.bss_psram 24768 24768 0 0.0
.comment 48 48 0 0.0
.data 4648 4648 0 0.0
.debug_abbrev 1703939 1703939 0 0.0
.debug_aranges 142408 142408 0 0.0
.debug_frame 521108 521108 0 0.0
.debug_info 45407886 45407886 0 0.0
.debug_line 5706245 5706245 0 0.0
.debug_loc 3634612 3634612 0 0.0
.debug_ranges 398632 398632 0 0.0
.debug_str 3999624 3999624 0 0.0
.hbn 536 536 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 156 156 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 121040 121040 0 0.0
.rsvd 2960 2960 0 0.0
.sha_ocram 72 72 0 0.0
.shstrtab 304 304 0 0.0
.stack 2048 2048 0 0.0
.strtab 635769 635769 0 0.0
.symtab 192480 192480 0 0.0
.tcm_data 36 36 0 0.0
.tcmcode 3358 3358 0 0.0
.text 1034270 1034270 0 0.0
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 645825 645825 0 0.0
(read/write) 203848 203848 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197248 197248 0 0.0
.comment 194 194 0 0.0
.data 1480 1480 0 0.0
.debug_abbrev 933102 933102 0 0.0
.debug_aranges 87704 87704 0 0.0
.debug_frame 301596 301596 0 0.0
.debug_info 20310332 20310330 -2 -0.0
.debug_line 2681125 2681125 0 0.0
.debug_loc 2827568 2827568 0 0.0
.debug_ranges 286448 286448 0 0.0
.debug_str 3041144 3041144 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 105953 105953 0 0.0
.shstrtab 232 232 0 0.0
.stab 204 204 0 0.0
.stabstr 441 441 0 0.0
.stack 2048 2048 0 0.0
.strtab 380543 380543 0 0.0
.symtab 257472 257472 0 0.0
.text 537752 537752 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 534234 534234 0 0.0
.app_xip_area 414804 414804 0 0.0
.bss 61848 61848 0 0.0
.data 740 740 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 538522 538522 0 0.0
.app_xip_area 413804 413804 0 0.0
.bss 67128 67128 0 0.0
.data 748 748 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 555654 555654 0 0.0
.app_xip_area 436984 436984 0 0.0
.bss 61136 61136 0 0.0
.data 696 696 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
k32w contact k32w0+release (read/write) 674768 674768 0 0.0
.bss 65532 65532 0 0.0
.data 2224 2224 0 0.0
.text 575612 575612 0 0.0
light k32w0+release (read/write) 673828 673828 0 0.0
.bss 65196 65196 0 0.0
.data 2212 2212 0 0.0
.text 575020 575020 0 0.0
lock k32w0+release (read/write) 628500 628500 0 0.0
.bss 63268 63268 0 0.0
.data 2136 2136 0 0.0
.text 548080 548080 0 0.0
linux chip-tool-ipv6only arm64 (read only) 12129740 12129788 48 0.0
(read/write) 742616 742584 -32 -0.0
.bss 34392 34392 0 0.0
.data 3008 3008 0 0.0
.data.rel.ro 684496 684496 0 0.0
.dynamic 560 560 0 0.0
.got 15504 15488 -16 -0.1
.init 24 24 0 0.0
.init_array 216 216 0 0.0
.rodata 582204 582172 -32 -0.0
.text 9785268 9785524 256 0.0
thermostat-no-ble arm64 (read only) 2519972 2519940 -32 -0.0
(read/write) 145208 145240 32 0.0
.bss 56344 56344 0 0.0
.data 1784 1784 0 0.0
.data.rel.ro 77672 77672 0 0.0
.dynamic 560 560 0 0.0
.got 5360 5352 -8 -0.1
.init 24 24 0 0.0
.init_array 432 432 0 0.0
.rodata 147312 147216 -96 -0.1
.text 2110320 2110064 -256 -0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2466536 2466536 0 0.0
.bss 215964 215964 0 0.0
.data 5880 5880 0 0.0
.text 1429180 1429180 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1174124 1174124 0 0.0
bss 155557 155557 0 0.0
rodata 132652 132652 0 0.0
text 805156 805156 0 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1119196 1119196 0 0.0
bss 154713 154713 0 0.0
rodata 109468 109468 0 0.0
text 774368 774368 0 0.0
all-clusters-app nrf7002dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 1434148 1434148 0 0.0
bss 135297 135297 0 0.0
rodata 228692 228692 0 0.0
text 776076 776076 0 0.0
psoc6 all-clusters cy8ckit_062s2_43012 0 0 0 0.0
(read only) 840840 840840 0 0.0
(read/write) 1764196 1764196 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 189864 189864 0 0.0
.comment 200 200 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2640 2640 0 0.0
.debug_abbrev 1259828 1259828 0 0.0
.debug_aranges 111920 111920 0 0.0
.debug_frame 376476 376476 0 0.0
.debug_info 28096001 28096000 -1 -0.0
.debug_line 3823474 3823474 0 0.0
.debug_loc 3726051 3726051 0 0.0
.debug_ranges 368272 368272 0 0.0
.debug_str 3552234 3552234 0 0.0
.heap 840840 840840 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 584128 584128 0 0.0
.symtab 426928 426928 0 0.0
.text 1563304 1563304 0 0.0
.zero.table 8 8 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 0 0 0 0.0
(read only) 841648 841648 0 0.0
(read/write) 1704516 1704516 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 189064 189064 0 0.0
.comment 200 200 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2632 2632 0 0.0
.debug_abbrev 1241692 1241692 0 0.0
.debug_aranges 111072 111072 0 0.0
.debug_frame 378560 378560 0 0.0
.debug_info 27555407 27555407 0 0.0
.debug_line 3826871 3826871 0 0.0
.debug_loc 3708121 3708121 0 0.0
.debug_ranges 366120 366120 0 0.0
.debug_str 3538160 3538160 0 0.0
.heap 841648 841648 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 543330 543330 0 0.0
.symtab 411744 411744 0 0.0
.text 1504432 1504432 0 0.0
.zero.table 8 8 0 0.0
light cy8ckit_062s2_43012 0 0 0 0.0
(read only) 849912 849912 0 0.0
(read/write) 1617572 1617572 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 180968 180968 0 0.0
.comment 200 200 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2464 2464 0 0.0
.debug_abbrev 1076990 1076990 0 0.0
.debug_aranges 103280 103280 0 0.0
.debug_frame 348840 348840 0 0.0
.debug_info 22913829 22913829 0 0.0
.debug_line 3377792 3377792 0 0.0
.debug_loc 3382928 3382928 0 0.0
.debug_ranges 324656 324656 0 0.0
.debug_str 3336839 3336839 0 0.0
.heap 849912 849912 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 478417 478417 0 0.0
.symtab 379376 379376 0 0.0
.text 1425752 1425752 0 0.0
.zero.table 8 8 0 0.0
lock cy8ckit_062s2_43012 0 0 0 0.0
(read only) 822136 822136 0 0.0
(read/write) 1674500 1674500 0 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 208728 208728 0 0.0
.comment 200 200 0 0.0
.copy.table 24 24 0 0.0
.cy_m0p_image 6216 6216 0 0.0
.cy_sharedmem 8 8 0 0.0
.data 2480 2480 0 0.0
.debug_abbrev 1079222 1079222 0 0.0
.debug_aranges 103680 103680 0 0.0
.debug_frame 350580 350580 0 0.0
.debug_info 23165239 23165238 -1 -0.0
.debug_line 3379548 3379548 0 0.0
.debug_loc 3406843 3406843 0 0.0
.debug_ranges 327256 327256 0 0.0
.debug_str 3355356 3355356 0 0.0
.heap 822136 822136 0 0.0
.noinit 148 148 0 0.0
.ramVectors 736 736 0 0.0
.shstrtab 288 288 0 0.0
.stab 156 156 0 0.0
.stabstr 335 335 0 0.0
.stack_dummy 4096 4096 0 0.0
.strtab 481814 481814 0 0.0
.symtab 381568 381568 0 0.0
.text 1454904 1454904 0 0.0
.zero.table 8 8 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1152968 1152976 8 0.0
.bss 96036 96036 0 0.0
.data 852 852 0 0.0
.text 600064 600072 8 0.0
lock-app qpg6105+debug (read/write) 1121552 1121552 0 0.0
.bss 91172 91172 0 0.0
.data 856 856 0 0.0
.text 568652 568652 0 0.0

arkq added 2 commits April 4, 2023 10:55
The g_main_context_invoke_full() function checks whether the context, on
which it's supposed to run callback function, is acquired. Otherwise, it
runs given callback on the current thread. In our case this may lead to
incorrect GLib signals bindings, so we have to use g_source_attach()
when waiting for main loop.
TSAN can report false-positive on context unref. By firstly joining
thread and later unreferencing context we will prevent such warning.
@github-actions
Copy link

github-actions bot commented Apr 4, 2023

PR #25916: Size comparison from d81d4e3 to 523b369

Decreases (1 build for cc32xx)
platform target config section d81d4e3 523b369b change % change
cc32xx lock CC3235SF_LAUNCHXL .debug_info 20302987 20302986 -1 -0.0
Full report (1 build for cc32xx)
platform target config section d81d4e3 523b369b change % change
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 644409 644409 0 0.0
(read/write) 203848 203848 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197248 197248 0 0.0
.comment 194 194 0 0.0
.data 1480 1480 0 0.0
.debug_abbrev 933099 933099 0 0.0
.debug_aranges 87608 87608 0 0.0
.debug_frame 301328 301328 0 0.0
.debug_info 20302987 20302986 -1 -0.0
.debug_line 2679748 2679748 0 0.0
.debug_loc 2824679 2824679 0 0.0
.debug_ranges 286200 286200 0 0.0
.debug_str 3039406 3039406 0 0.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 105953 105953 0 0.0
.shstrtab 232 232 0 0.0
.stab 204 204 0 0.0
.stabstr 441 441 0 0.0
.stack 2048 2048 0 0.0
.strtab 377422 377422 0 0.0
.symtab 256768 256768 0 0.0
.text 536336 536336 0 0.0

@andy31415 andy31415 merged commit e56fe6d into project-chip:master Apr 13, 2023
@arkq arkq deleted the linux-glib-sync branch April 14, 2023 07:55
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.

None yet

2 participants