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

Fix timestamps in Diagnostic Logs cluster to follow the spec. #24830

Conversation

bzbarsky-apple
Copy link
Contributor

There were a few issues here:

  1. We were using a monotonic timestamp, but setting the UTCTimeStamp in the response payload.

  2. We were using a millisecond timestamp, whereas the spec has microsecond ones.

Switch to using "time since server init" for the timestamp, put it in the TimeSinceBoot field, and make sure it has the right units.

Also fixes the timestamps to actually be optional, per spec.

Fixes #24265

@bzbarsky-apple bzbarsky-apple force-pushed the fix-diagnostic-logs-timestamps branch from b7b1af2 to a9717a8 Compare February 2, 2023 17:57
src/app/server/Server.h Outdated Show resolved Hide resolved
@github-actions
Copy link

github-actions bot commented Feb 2, 2023

PR #24830: Size comparison from c3a5b9e to 94c68f8

Increases above 0.2%:

platform target config section c3a5b9e 94c68f8 change % change
linux all-clusters-app debug .init_array 1192 1200 8 0.7
all-clusters-minimal-app debug .init_array 1160 1168 8 0.7
bridge-app debug .init_array 856 864 8 0.9
lighting-app debug+rpc .init_array 928 936 8 0.9
lock-app debug .init_array 904 912 8 0.9
shell debug .init_array 1040 1048 8 0.8
tv-app debug .init_array 1072 1080 8 0.7
tv-casting-app debug .init_array 1048 1056 8 0.8
psoc6 light cy8ckit_062s2_43012 .debug_info 22500599 22561963 61364 0.3
lock cy8ckit_062s2_43012 .debug_info 22726205 22788417 62212 0.3
Increases (53 builds for bl602, bl702, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
platform target config section c3a5b9e 94c68f8 change % change
bl602 lighting-app bl602 (read/write) 1345714 1345746 32 0.0
.bss 94826 94834 8 0.0
.text 1022774 1022792 18 0.0
bl602+rpc (read/write) 1390906 1390930 24 0.0
.bss 102874 102882 8 0.0
.text 1053450 1053474 24 0.0
bl702 lighting-app bl702 (read/write) 1183691 1183731 40 0.0
.bss 69937 69945 8 0.0
.debug_abbrev 1550344 1551721 1377 0.1
.debug_aranges 134104 134120 16 0.0
.debug_frame 491108 491136 28 0.0
.debug_info 40210653 40275799 65146 0.2
.debug_line 5266922 5270750 3828 0.1
.debug_loc 3401020 3401369 349 0.0
.debug_ranges 371752 371800 48 0.0
.text 951808 951826 18 0.0
bl702+rpc (read/write) 1276383 1276423 40 0.0
.bss 77985 77993 8 0.0
.debug_abbrev 1698758 1700167 1409 0.1
.debug_aranges 142328 142344 16 0.0
.debug_frame 518812 518840 28 0.0
.debug_info 44607134 44673072 65938 0.1
.debug_line 5665390 5669174 3784 0.1
.debug_loc 3597311 3597677 366 0.0
.debug_ranges 395456 395504 48 0.0
.text 1028832 1028850 18 0.0
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 677127 677159 32 0.0
.bss 80908 80916 8 0.0
.text 589284 589316 32 0.0
all-clusters-minimal-app LP_CC2652R7 (read only) 641135 641167 32 0.0
(read/write) 157600 157608 8 0.0
.bss 80100 80108 8 0.0
.text 563336 563368 32 0.0
lock-ftd LP_CC2652R7 (read only) 674251 674275 24 0.0
.bss 78340 78348 8 0.0
.text 597448 597472 24 0.0
lock-mtd LP_CC2652R7 (read only) 660619 660659 40 0.0
.bss 73604 73612 8 0.0
.text 557336 557376 40 0.0
pump-app LP_CC2652R7 (read only) 687087 687111 24 0.0
.bss 78308 78316 8 0.0
.text 596160 596184 24 0.0
pump-controller-app LP_CC2652R7 (read only) 672495 672519 24 0.0
.bss 78420 78428 8 0.0
.text 585488 585512 24 0.0
shell LP_CC2652R7 (read only) 668398 668422 24 0.0
.bss 82980 82988 8 0.0
.text 583824 583848 24 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 584042 584082 40 0.0
.app_xip_area 460828 460860 32 0.0
.bss 65664 65672 8 0.0
lock cyw930739m2evb_01 (read/write) 587926 587966 40 0.0
.app_xip_area 459416 459448 32 0.0
.bss 70952 70960 8 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 549546 549586 40 0.0
.app_xip_area 431812 431844 32 0.0
.bss 60224 60232 8 0.0
efr32 lighting-app BRD4161A+rs911x (read/write) 1037792 1037832 40 0.0
.bss 181592 181600 8 0.0
.text 854132 854164 32 0.0
BRD4187C (read/write) 1151088 1151128 40 0.0
.bss 132888 132896 8 0.0
.text 991060 991092 32 0.0
lock-app BRD4161A+wf200 (read/write) 1065568 1065608 40 0.0
.bss 153120 153128 8 0.0
.text 910376 910408 32 0.0
window-app BRD4187C (read/write) 1145972 1146012 40 0.0
.bss 134392 134400 8 0.0
.text 984412 984444 32 0.0
esp32 all-clusters-app c3devkit (read only) 1047054 1047072 18 0.0
.dram0.bss 77992 78000 8 0.0
.flash.text 1047054 1047072 18 0.0
m5stack (read only) 1098867 1098875 8 0.0
(read/write) 500303 500315 12 0.0
.dram0.bss 83040 83048 8 0.0
.flash.rodata 249420 249424 4 0.0
.flash.text 1093483 1093491 8 0.0
k32w contact k32w0+release (read/write) 659592 659632 40 0.0
.bss 76592 76600 8 0.0
.text 561776 561808 32 0.0
light k32w0+release (read/write) 671580 671620 40 0.0
.bss 74376 74384 8 0.0
.text 592412 592444 32 0.0
lock k32w0+release (read/write) 631132 631172 40 0.0
.bss 75144 75152 8 0.0
.text 551176 551208 32 0.0
linux all-clusters-app debug (read only) 3156609 3156777 168 0.0
(read/write) 154864 154904 40 0.0
.bss 63744 63776 32 0.1
.init_array 1192 1200 8 0.7
.text 2687266 2687410 144 0.0
all-clusters-minimal-app debug (read only) 2972577 2972729 152 0.0
(read/write) 148080 148120 40 0.0
.bss 62880 62912 32 0.1
.init_array 1160 1168 8 0.7
.text 2507874 2508002 128 0.0
bridge-app debug (read only) 2525489 2525657 168 0.0
(read/write) 132352 132392 40 0.0
.bss 53632 53664 32 0.1
.init_array 856 864 8 0.9
.text 2138978 2139122 144 0.0
chip-tool debug (read only) 11644017 11644113 96 0.0
.text 9469300 9469396 96 0.0
chip-tool-ipv6only arm64 (read only) 11041172 11041268 96 0.0
.text 8790660 8790756 96 0.0
lighting-app debug+rpc (read only) 2693097 2693265 168 0.0
(read/write) 131688 131696 8 0.0
.init_array 928 936 8 0.9
.text 2285682 2285826 144 0.0
lock-app debug (read only) 2657297 2657449 152 0.0
(read/write) 126736 126776 40 0.0
.bss 49536 49568 32 0.1
.init_array 904 912 8 0.9
.text 2238434 2238562 128 0.0
ota-provider-app debug (read only) 2225945 2225977 32 0.0
.text 1887778 1887810 32 0.0
ota-requestor-app debug (read only) 2387441 2387473 32 0.0
.text 2033298 2033330 32 0.0
shell debug (read only) 2686057 2686385 328 0.0
(read/write) 139360 139400 40 0.0
.bss 59144 59176 32 0.1
.init_array 1040 1048 8 0.8
.rodata 241938 242098 160 0.1
.text 2283602 2283746 144 0.0
thermostat-no-ble arm64 (read only) 2507500 2507532 32 0.0
(read/write) 144712 144728 16 0.0
.bss 56456 56472 16 0.0
.text 2094720 2094752 32 0.0
tv-app debug (read only) 3315657 3315937 280 0.0
(read/write) 259632 259672 40 0.0
.bss 170872 170904 32 0.0
.init_array 1072 1080 8 0.7
.rodata 270648 270776 128 0.0
.text 2850210 2850338 128 0.0
tv-casting-app debug (read only) 5701137 5701545 408 0.0
(read/write) 164664 164672 8 0.0
.init_array 1048 1056 8 0.8
.rodata 365396 365556 160 0.0
.text 5050002 5050226 224 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read/write) 2463728 2463792 64 0.0
.bss 215924 215932 8 0.0
.text 1426372 1426436 64 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1161056 1161088 32 0.0
bss 143563 143571 8 0.0
text 804168 804196 28 0.0
nrf7002dk_nrf5340_cpuapp (read/write) 1366320 1366416 96 0.0
bss 106022 106030 8 0.0
text 763908 763936 28 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read/write) 1107236 1107380 144 0.0
bss 142719 142727 8 0.0
text 774164 774192 28 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read/write) 1756100 1756140 40 0.0
.bss 189832 189840 8 0.0
.debug_abbrev 1251867 1253320 1453 0.1
.debug_info 27522183 27585236 63053 0.2
.debug_line 3780345 3782862 2517 0.1
.debug_loc 3675138 3675949 811 0.0
.debug_ranges 362408 362440 32 0.0
.text 1555208 1555240 32 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read/write) 1697876 1697916 40 0.0
.bss 189024 189032 8 0.0
.debug_abbrev 1237538 1238955 1417 0.1
.debug_info 27078055 27140266 62211 0.2
.debug_line 3788691 3791264 2573 0.1
.debug_loc 3658868 3659678 810 0.0
.debug_ranges 360376 360408 32 0.0
.text 1497800 1497832 32 0.0
light cy8ckit_062s2_43012 (read/write) 1611332 1611372 40 0.0
.bss 180904 180912 8 0.0
.debug_abbrev 1071872 1073253 1381 0.1
.debug_info 22500599 22561963 61364 0.3
.debug_line 3340991 3343480 2489 0.1
.debug_loc 3336931 3337757 826 0.0
.debug_ranges 319552 319584 32 0.0
.text 1419576 1419608 32 0.0
lock cy8ckit_062s2_43012 (read/write) 1645564 1645604 40 0.0
.bss 185880 185888 8 0.0
.debug_abbrev 1073576 1074993 1417 0.1
.debug_info 22726205 22788417 62212 0.3
.debug_line 3342904 3345365 2461 0.1
.debug_loc 3359734 3360560 826 0.0
.debug_ranges 321464 321496 32 0.0
.text 1448824 1448856 32 0.0
qpg lighting-app qpg6105+debug (read/write) 1147876 1147900 24 0.0
.bss 99908 99916 8 0.0
.text 594976 595000 24 0.0
lock-app qpg6105+debug (read/write) 1115852 1115884 32 0.0
.bss 96428 96436 8 0.0
.text 562948 562980 32 0.0
telink all-clusters-app tlsr9518adk80d (read/write) 1015728 1015760 32 0.0
bss 98012 98020 8 0.0
text 685822 685842 20 0.0
all-clusters-minimal-app tlsr9518adk80d (read/write) 952284 952308 24 0.0
bss 97060 97068 8 0.0
text 648118 648136 18 0.0
contact-sensor-app tlsr9518adk80d (read/write) 857616 857640 24 0.0
bss 89184 89192 8 0.0
text 579028 579042 14 0.0
light-switch-app tlsr9518adk80d (read/write) 873316 873340 24 0.0
bss 89272 89280 8 0.0
text 593072 593090 18 0.0
lighting-app tlsr9518adk80d (read/write) 950648 950672 24 0.0
bss 97420 97428 8 0.0
text 658480 658496 16 0.0
ota-requestor-app tlsr9518adk80d (read/write) 887476 887500 24 0.0
bss 90220 90228 8 0.0
text 604438 604456 18 0.0
thermostat tlsr9518adk80d (read/write) 877524 877548 24 0.0
bss 90660 90668 8 0.0
text 594646 594666 20 0.0
Decreases (12 builds for bl702, cc13x2_26x2, psoc6)
platform target config section c3a5b9e 94c68f8 change % change
bl702 lighting-app bl702 .debug_str 3535301 3531873 -3428 -0.1
bl702+rpc .debug_str 3938539 3935111 -3428 -0.1
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read/write) 174088 174064 -24 -0.0
lock-ftd LP_CC2652R7 (read/write) 174308 174292 -16 -0.0
lock-mtd LP_CC2652R7 (read/write) 183204 183172 -32 -0.0
pump-app LP_CC2652R7 (read/write) 162208 162192 -16 -0.0
pump-controller-app LP_CC2652R7 (read/write) 176912 176896 -16 -0.0
shell LP_CC2652R7 (read/write) 184888 184872 -16 -0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 840840 840832 -8 -0.0
.debug_str 3486134 3482449 -3685 -0.1
.heap 840840 840832 -8 -0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 841656 841648 -8 -0.0
.debug_str 3471887 3468202 -3685 -0.1
.heap 841656 841648 -8 -0.0
light cy8ckit_062s2_43012 (read only) 849976 849968 -8 -0.0
.debug_str 3275133 3271413 -3720 -0.1
.heap 849976 849968 -8 -0.0
lock cy8ckit_062s2_43012 (read only) 844992 844984 -8 -0.0
.debug_str 3292359 3288639 -3720 -0.1
.heap 844992 844984 -8 -0.0
Full report (53 builds for bl602, bl702, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
platform target config section c3a5b9e 94c68f8 change % change
bl602 lighting-app bl602 (read/write) 1345714 1345746 32 0.0
.bss 94826 94834 8 0.0
.data 9736 9736 0 0.0
.text 1022774 1022792 18 0.0
bl602+rpc (read/write) 1390906 1390930 24 0.0
.bss 102874 102882 8 0.0
.data 10128 10128 0 0.0
.text 1053450 1053474 24 0.0
bl702 lighting-app bl702 (read only) 3358 3358 0 0.0
(read/write) 1183691 1183731 40 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 292 292 0 0.0
.bss 69937 69945 8 0.0
.bss_psram 30048 30048 0 0.0
.comment 48 48 0 0.0
.data 4056 4056 0 0.0
.debug_abbrev 1550344 1551721 1377 0.1
.debug_aranges 134104 134120 16 0.0
.debug_frame 491108 491136 28 0.0
.debug_info 40210653 40275799 65146 0.2
.debug_line 5266922 5270750 3828 0.1
.debug_loc 3401020 3401369 349 0.0
.debug_ranges 371752 371800 48 0.0
.debug_str 3535301 3531873 -3428 -0.1
.hbn 536 536 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 144 144 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 106768 106768 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 572034 572034 0 0.0
.symtab 173280 173280 0 0.0
.tcm_data 36 36 0 0.0
.tcmcode 3358 3358 0 0.0
.text 0 0 0 0.0
951808 951826 18 0.0
bl702+rpc (read only) 3358 3358 0 0.0
(read/write) 1276383 1276423 40 0.0
.bleromro 6342 6342 0 0.0
.bleromrw 124 124 0 0.0
.boot2 292 292 0 0.0
.bss 77985 77993 8 0.0
.bss_psram 30304 30304 0 0.0
.comment 48 48 0 0.0
.data 4608 4608 0 0.0
.debug_abbrev 1698758 1700167 1409 0.1
.debug_aranges 142328 142344 16 0.0
.debug_frame 518812 518840 28 0.0
.debug_info 44607134 44673072 65938 0.1
.debug_line 5665390 5669174 3784 0.1
.debug_loc 3597311 3597677 366 0.0
.debug_ranges 395456 395504 48 0.0
.debug_str 3938539 3935111 -3428 -0.1
.hbn 536 536 0 0.0
.hbn_noinit 260 260 0 0.0
.init 342 342 0 0.0
.init_array 160 160 0 0.0
.psram 0 0 0 0.0
.riscv.attributes 47 47 0 0.0
.rodata 121312 121312 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 632631 632631 0 0.0
.symtab 191632 191632 0 0.0
.tcm_data 36 36 0 0.0
.tcmcode 3358 3358 0 0.0
.text 0 0 0 0.0
1028832 1028850 18 0.0
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 677127 677159 32 0.0
(read/write) 174088 174064 -24 -0.0
.bss 80908 80916 8 0.0
.data 3384 3384 0 0.0
.rodata 87527 87527 0 0.0
.text 589284 589316 32 0.0
all-clusters-minimal-app LP_CC2652R7 (read only) 641135 641167 32 0.0
(read/write) 157600 157608 8 0.0
.bss 80100 80108 8 0.0
.data 3384 3384 0 0.0
.rodata 77479 77479 0 0.0
.text 563336 563368 32 0.0
lock-ftd LP_CC2652R7 (read only) 674251 674275 24 0.0
(read/write) 174308 174292 -16 -0.0
.bss 78340 78348 8 0.0
.data 3312 3312 0 0.0
.rodata 76323 76323 0 0.0
.text 597448 597472 24 0.0
lock-mtd LP_CC2652R7 (read only) 660619 660659 40 0.0
(read/write) 183204 183172 -32 -0.0
.bss 73604 73612 8 0.0
.data 3312 3312 0 0.0
.rodata 102803 102803 0 0.0
.text 557336 557376 40 0.0
pump-app LP_CC2652R7 (read only) 687087 687111 24 0.0
(read/write) 162208 162192 -16 -0.0
.bss 78308 78316 8 0.0
.data 3276 3276 0 0.0
.rodata 90447 90447 0 0.0
.text 596160 596184 24 0.0
pump-controller-app LP_CC2652R7 (read only) 672495 672519 24 0.0
(read/write) 176912 176896 -16 -0.0
.bss 78420 78428 8 0.0
.data 3300 3300 0 0.0
.rodata 86527 86527 0 0.0
.text 585488 585512 24 0.0
shell LP_CC2652R7 (read only) 668398 668422 24 0.0
(read/write) 184888 184872 -16 -0.0
.bss 82980 82988 8 0.0
.data 3380 3380 0 0.0
.rodata 84262 84262 0 0.0
.text 583824 583848 24 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 584042 584082 40 0.0
.app_xip_area 460828 460860 32 0.0
.bss 65664 65672 8 0.0
.data 736 736 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 587926 587966 40 0.0
.app_xip_area 459416 459448 32 0.0
.bss 70952 70960 8 0.0
.data 744 744 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 549546 549586 40 0.0
.app_xip_area 431812 431844 32 0.0
.bss 60224 60232 8 0.0
.data 692 692 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A+rs911x (read/write) 1037792 1037832 40 0.0
.bss 181592 181600 8 0.0
.data 2044 2044 0 0.0
.text 854132 854164 32 0.0
BRD4187C (read/write) 1151088 1151128 40 0.0
.bss 132888 132896 8 0.0
.data 2544 2544 0 0.0
.text 991060 991092 32 0.0
lock-app BRD4161A+wf200 (read/write) 1065568 1065608 40 0.0
.bss 153120 153128 8 0.0
.data 2052 2052 0 0.0
.text 910376 910408 32 0.0
window-app BRD4187C (read/write) 1145972 1146012 40 0.0
.bss 134392 134400 8 0.0
.data 2572 2572 0 0.0
.text 984412 984444 32 0.0
esp32 all-clusters-app c3devkit (read only) 1047054 1047072 18 0.0
(read/write) 1518674 1518674 0 0.0
.dram0.bss 77992 78000 8 0.0
.dram0.data 13792 13792 0 0.0
.flash.rodata 220664 220664 0 0.0
.flash.text 1047054 1047072 18 0.0
.iram0.text 72896 72896 0 0.0
m5stack (read only) 1098867 1098875 8 0.0
(read/write) 500303 500315 12 0.0
.dram0.bss 83040 83048 8 0.0
.dram0.data 34072 34072 0 0.0
.flash.rodata 249420 249424 4 0.0
.flash.text 1093483 1093491 8 0.0
.iram0.text 124855 124855 0 0.0
k32w contact k32w0+release (read/write) 659592 659632 40 0.0
.bss 76592 76600 8 0.0
.data 2112 2112 0 0.0
.text 561776 561808 32 0.0
light k32w0+release (read/write) 671580 671620 40 0.0
.bss 74376 74384 8 0.0
.data 2064 2064 0 0.0
.text 592412 592444 32 0.0
lock k32w0+release (read/write) 631132 631172 40 0.0
.bss 75144 75152 8 0.0
.data 2084 2084 0 0.0
.text 551176 551208 32 0.0
linux all-clusters-app debug (read only) 3156609 3156777 168 0.0
(read/write) 154864 154904 40 0.0
.bss 63744 63776 32 0.1
.data 2272 2272 0 0.0
.data.rel.ro 82248 82248 0 0.0
.dynamic 608 608 0 0.0
.got 4776 4776 0 0.0
.init 27 27 0 0.0
.init_array 1192 1200 8 0.7
.rodata 283851 283851 0 0.0
.text 2687266 2687410 144 0.0
all-clusters-minimal-app debug (read only) 2972577 2972729 152 0.0
(read/write) 148080 148120 40 0.0
.bss 62880 62912 32 0.1
.data 2240 2240 0 0.0
.data.rel.ro 76472 76472 0 0.0
.dynamic 608 608 0 0.0
.got 4688 4688 0 0.0
.init 27 27 0 0.0
.init_array 1160 1168 8 0.7
.rodata 282539 282539 0 0.0
.text 2507874 2508002 128 0.0
bridge-app debug (read only) 2525489 2525657 168 0.0
(read/write) 132352 132392 40 0.0
.bss 53632 53664 32 0.1
.data 3632 3632 0 0.0
.data.rel.ro 68968 68968 0 0.0
.dynamic 608 608 0 0.0
.got 4616 4616 0 0.0
.init 27 27 0 0.0
.init_array 856 864 8 0.9
.rodata 214048 214048 0 0.0
.text 2138978 2139122 144 0.0
chip-tool debug (read only) 11644017 11644113 96 0.0
(read/write) 655568 655568 0 0.0
.bss 26264 26264 0 0.0
.data 3042 3042 0 0.0
.data.rel.ro 619512 619512 0 0.0
.dynamic 608 608 0 0.0
.got 5352 5352 0 0.0
.init 27 27 0 0.0
.init_array 752 752 0 0.0
.rodata 651365 651365 0 0.0
.text 9469300 9469396 96 0.0
chip-tool-ipv6only arm64 (read only) 11041172 11041268 96 0.0
(read/write) 704936 704936 0 0.0
.bss 34248 34248 0 0.0
.data 3008 3008 0 0.0
.data.rel.ro 648352 648352 0 0.0
.dynamic 560 560 0 0.0
.got 14128 14128 0 0.0
.init 24 24 0 0.0
.init_array 208 208 0 0.0
.rodata 577172 577172 0 0.0
.text 8790660 8790756 96 0.0
lighting-app debug+rpc (read only) 2693097 2693265 168 0.0
(read/write) 131688 131696 8 0.0
.bss 51104 51104 0 0.0
.data 2288 2288 0 0.0
.data.rel.ro 72088 72088 0 0.0
.dynamic 608 608 0 0.0
.got 4648 4648 0 0.0
.init 27 27 0 0.0
.init_array 928 936 8 0.9
.rodata 229984 229984 0 0.0
.text 2285682 2285826 144 0.0
lock-app debug (read only) 2657297 2657449 152 0.0
(read/write) 126736 126776 40 0.0
.bss 49536 49568 32 0.1
.data 1904 1904 0 0.0
.data.rel.ro 69080 69080 0 0.0
.dynamic 608 608 0 0.0
.got 4680 4680 0 0.0
.init 27 27 0 0.0
.init_array 904 912 8 0.9
.rodata 246280 246280 0 0.0
.text 2238434 2238562 128 0.0
ota-provider-app debug (read only) 2225945 2225977 32 0.0
(read/write) 106512 106512 0 0.0
.bss 47712 47712 0 0.0
.data 2080 2080 0 0.0
.data.rel.ro 51608 51608 0 0.0
.dynamic 608 608 0 0.0
.got 3744 3744 0 0.0
.init 27 27 0 0.0
.init_array 744 744 0 0.0
.rodata 197576 197576 0 0.0
.text 1887778 1887810 32 0.0
ota-requestor-app debug (read only) 2387441 2387473 32 0.0
(read/write) 114240 114240 0 0.0
.bss 50176 50176 0 0.0
.data 2480 2480 0 0.0
.data.rel.ro 56376 56376 0 0.0
.dynamic 608 608 0 0.0
.got 3744 3744 0 0.0
.init 27 27 0 0.0
.init_array 824 824 0 0.0
.rodata 204528 204528 0 0.0
.text 2033298 2033330 32 0.0
shell debug (read only) 2686057 2686385 328 0.0
(read/write) 139360 139400 40 0.0
.bss 59144 59176 32 0.1
.data 1264 1264 0 0.0
.data.rel.ro 73136 73136 0 0.0
.dynamic 608 608 0 0.0
.got 4136 4136 0 0.0
.init 27 27 0 0.0
.init_array 1040 1048 8 0.8
.rodata 241938 242098 160 0.1
.text 2283602 2283746 144 0.0
thermostat-no-ble arm64 (read only) 2507500 2507532 32 0.0
(read/write) 144712 144728 16 0.0
.bss 56456 56472 16 0.0
.data 1824 1824 0 0.0
.data.rel.ro 76992 76992 0 0.0
.dynamic 560 560 0 0.0
.got 5400 5400 0 0.0
.init 24 24 0 0.0
.init_array 432 432 0 0.0
.rodata 150856 150856 0 0.0
.text 2094720 2094752 32 0.0
tv-app debug (read only) 3315657 3315937 280 0.0
(read/write) 259632 259672 40 0.0
.bss 170872 170904 32 0.0
.data 3904 3904 0 0.0
.data.rel.ro 78144 78144 0 0.0
.dynamic 608 608 0 0.0
.got 5008 5008 0 0.0
.init 27 27 0 0.0
.init_array 1072 1080 8 0.7
.rodata 270648 270776 128 0.0
.text 2850210 2850338 128 0.0
tv-casting-app debug (read only) 5701137 5701545 408 0.0
(read/write) 164664 164672 8 0.0
.bss 53496 53496 0 0.0
.data 1936 1936 0 0.0
.data.rel.ro 102600 102600 0 0.0
.dynamic 608 608 0 0.0
.got 4928 4928 0 0.0
.init 27 27 0 0.0
.init_array 1048 1056 8 0.8
.rodata 365396 365556 160 0.0
.text 5050002 5050226 224 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2463728 2463792 64 0.0
.bss 215924 215932 8 0.0
.data 5880 5880 0 0.0
.text 1426372 1426436 64 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1161056 1161088 32 0.0
bss 143563 143571 8 0.0
rodata 133468 133468 0 0.0
text 804168 804196 28 0.0
nrf7002dk_nrf5340_cpuapp (read only) 4 4 0 0.0
(read/write) 1366320 1366416 96 0.0
bss 106022 106030 8 0.0
rodata 210896 210896 0 0.0
text 763908 763936 28 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read only) 4 4 0 0.0
(read/write) 1107236 1107380 144 0.0
bss 142719 142727 8 0.0
rodata 110608 110608 0 0.0
text 774164 774192 28 0.0
psoc6 all-clusters cy8ckit_062s2_43012 (read only) 840840 840832 -8 -0.0
(read/write) 1756100 1756140 40 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 189832 189840 8 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 2672 2672 0 0.0
.debug_abbrev 1251867 1253320 1453 0.1
.debug_aranges 111368 111368 0 0.0
.debug_frame 373864 373864 0 0.0
.debug_info 27522183 27585236 63053 0.2
.debug_line 3780345 3782862 2517 0.1
.debug_loc 3675138 3675949 811 0.0
.debug_ranges 362408 362440 32 0.0
.debug_str 3486134 3482449 -3685 -0.1
.heap 840840 840832 -8 -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 577911 577911 0 0.0
.symtab 424736 424736 0 0.0
.text 1555208 1555240 32 0.0
.zero.table 8 8 0 0.0
text 0 0 0 0.0
all-clusters-minimal cy8ckit_062s2_43012 (read only) 841656 841648 -8 -0.0
(read/write) 1697876 1697916 40 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 189024 189032 8 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 2664 2664 0 0.0
.debug_abbrev 1237538 1238955 1417 0.1
.debug_aranges 110632 110632 0 0.0
.debug_frame 376308 376308 0 0.0
.debug_info 27078055 27140266 62211 0.2
.debug_line 3788691 3791264 2573 0.1
.debug_loc 3658868 3659678 810 0.0
.debug_ranges 360376 360408 32 0.0
.debug_str 3471887 3468202 -3685 -0.1
.heap 841656 841648 -8 -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 539119 539119 0 0.0
.symtab 410016 410016 0 0.0
.text 1497800 1497832 32 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
light cy8ckit_062s2_43012 (read only) 849976 849968 -8 -0.0
(read/write) 1611332 1611372 40 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 180904 180912 8 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 1071872 1073253 1381 0.1
.debug_aranges 102840 102840 0 0.0
.debug_frame 346744 346744 0 0.0
.debug_info 22500599 22561963 61364 0.3
.debug_line 3340991 3343480 2489 0.1
.debug_loc 3336931 3337757 826 0.0
.debug_ranges 319552 319584 32 0.0
.debug_str 3275133 3271413 -3720 -0.1
.heap 849976 849968 -8 -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 474324 474324 0 0.0
.symtab 377792 377792 0 0.0
.text 1419576 1419608 32 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
lock cy8ckit_062s2_43012 (read only) 844992 844984 -8 -0.0
(read/write) 1645564 1645604 40 0.0
.ARM.attributes 46 46 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 185880 185888 8 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 2472 2472 0 0.0
.debug_abbrev 1073576 1074993 1417 0.1
.debug_aranges 103280 103280 0 0.0
.debug_frame 348684 348684 0 0.0
.debug_info 22726205 22788417 62212 0.3
.debug_line 3342904 3345365 2461 0.1
.debug_loc 3359734 3360560 826 0.0
.debug_ranges 321464 321496 32 0.0
.debug_str 3292359 3288639 -3720 -0.1
.heap 844992 844984 -8 -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 477700 477700 0 0.0
.symtab 379952 379952 0 0.0
.text 1448824 1448856 32 0.0
.zero.table 0 0 0 0.0
8 8 0 0.0
qpg lighting-app qpg6105+debug (read/write) 1147876 1147900 24 0.0
.bss 99908 99916 8 0.0
.data 848 848 0 0.0
.text 594976 595000 24 0.0
lock-app qpg6105+debug (read/write) 1115852 1115884 32 0.0
.bss 96428 96436 8 0.0
.data 860 860 0 0.0
.text 562948 562980 32 0.0
telink all-clusters-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 1015728 1015760 32 0.0
bss 98012 98020 8 0.0
text 685822 685842 20 0.0
all-clusters-minimal-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 952284 952308 24 0.0
bss 97060 97068 8 0.0
text 648118 648136 18 0.0
contact-sensor-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 857616 857640 24 0.0
bss 89184 89192 8 0.0
text 579028 579042 14 0.0
light-switch-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 873316 873340 24 0.0
bss 89272 89280 8 0.0
text 593072 593090 18 0.0
lighting-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 950648 950672 24 0.0
bss 97420 97428 8 0.0
text 658480 658496 16 0.0
ota-requestor-app tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 887476 887500 24 0.0
bss 90220 90228 8 0.0
text 604438 604456 18 0.0
thermostat tlsr9518adk80d (read only) 4 4 0 0.0
(read/write) 877524 877548 24 0.0
bss 90660 90668 8 0.0
text 594646 594666 20 0.0

@bzbarsky-apple bzbarsky-apple marked this pull request as draft February 2, 2023 22:24
auto-merge was automatically disabled February 2, 2023 22:24

Pull request was converted to draft

Copy link
Contributor

@jmeg-sfy jmeg-sfy left a comment

Choose a reason for hiding this comment

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

thanks for this fix

There were a few issues here:

1. We were using a monotonic timestamp, but setting the UTCTimeStamp in the
response payload.

2. We were using a millisecond timestamp, whereas the spec has microsecond ones.

Switch to using "time since server init" for the timestamp, put it in the
TimeSinceBoot field, and make sure it has the right units.

Also fixes the timestamps to actually be optional, per spec.

Fixes project-chip#24265
@bzbarsky-apple bzbarsky-apple force-pushed the fix-diagnostic-logs-timestamps branch from 94c68f8 to 1bc5e35 Compare February 14, 2023 16:29
@bzbarsky-apple bzbarsky-apple marked this pull request as ready for review February 14, 2023 16:29
@github-actions
Copy link

PR #24830: Size comparison from e497117 to 1bc5e35

Increases above 0.2%:

platform target config section e497117 1bc5e35 change % change
cc32xx lock CC3235SF_LAUNCHXL .debug_info 20180781 20236862 56081 0.3
Increases (1 build for cc32xx)
platform target config section e497117 1bc5e35 change % change
cc32xx lock CC3235SF_LAUNCHXL (read only) 640361 640385 24 0.0
(read/write) 204084 204092 8 0.0
.bss 197488 197496 8 0.0
.debug_abbrev 928461 929901 1440 0.2
.debug_info 20180781 20236862 56081 0.3
.debug_line 2649933 2652356 2423 0.1
.debug_loc 2786017 2786824 807 0.0
.debug_ranges 280728 280776 48 0.0
.text 532604 532628 24 0.0
Decreases (1 build for cc32xx)
platform target config section e497117 1bc5e35 change % change
cc32xx lock CC3235SF_LAUNCHXL .debug_frame 299840 299836 -4 -0.0
.debug_str 3005287 3001867 -3420 -0.1
Full report (1 build for cc32xx)
platform target config section e497117 1bc5e35 change % change
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 640361 640385 24 0.0
(read/write) 204084 204092 8 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197488 197496 8 0.0
.comment 194 194 0 0.0
.data 1476 1476 0 0.0
.debug_abbrev 928461 929901 1440 0.2
.debug_aranges 87352 87352 0 0.0
.debug_frame 299840 299836 -4 -0.0
.debug_info 20180781 20236862 56081 0.3
.debug_line 2649933 2652356 2423 0.1
.debug_loc 2786017 2786824 807 0.0
.debug_ranges 280728 280776 48 0.0
.debug_str 3005287 3001867 -3420 -0.1
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 105633 105633 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 375902 375902 0 0.0
.symtab 255856 255856 0 0.0
.text 532604 532628 24 0.0

@bzbarsky-apple bzbarsky-apple merged commit 1d6a958 into project-chip:master Feb 14, 2023
@bzbarsky-apple bzbarsky-apple deleted the fix-diagnostic-logs-timestamps branch February 14, 2023 18:22
lecndav pushed a commit to lecndav/connectedhomeip that referenced this pull request Mar 22, 2023
…t-chip#24830)

* Fix timestamps in Diagnostic Logs cluster to follow the spec.

There were a few issues here:

1. We were using a monotonic timestamp, but setting the UTCTimeStamp in the
response payload.

2. We were using a millisecond timestamp, whereas the spec has microsecond ones.

Switch to using "time since server init" for the timestamp, put it in the
TimeSinceBoot field, and make sure it has the right units.

Also fixes the timestamps to actually be optional, per spec.

Fixes project-chip#24265

* Address review comment.
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.

Timestamps in Diagnostic Logs cluster do not match spec
6 participants