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

Cleanup in aisle CASESession #26339

Merged
merged 3 commits into from
May 3, 2023

Conversation

mlepage-google
Copy link
Contributor

Various (but not all) cleanup noted in issue #26280.

@github-actions
Copy link

github-actions bot commented May 2, 2023

PR #26339: Size comparison from 328c553 to 9124aa6

Increases above 0.2%:

platform target config section 328c553 9124aa6 change % change
cc32xx lock CC3235SF_LAUNCHXL .debug_str 3068127 3099132 31005 1.0
.strtab 480350 482872 2522 0.5
Increases (1 build for cc32xx)
platform target config section 328c553 9124aa6 change % change
cc32xx lock CC3235SF_LAUNCHXL (read only) 604426 604682 256 0.0
.debug_abbrev 956917 956987 70 0.0
.debug_aranges 101056 101072 16 0.0
.debug_frame 341168 341280 112 0.0
.debug_info 19511288 19514706 3418 0.0
.debug_line 2664965 2665179 214 0.0
.debug_loclists 1486884 1488026 1142 0.1
.debug_rnglists 94239 94277 38 0.0
.debug_str 3068127 3099132 31005 1.0
.strtab 480350 482872 2522 0.5
.symtab 287024 287120 96 0.0
.text 498004 498260 256 0.1
Full report (1 build for cc32xx)
platform target config section 328c553 9124aa6 change % change
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 604426 604682 256 0.0
(read/write) 204156 204156 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197568 197568 0 0.0
.comment 206 206 0 0.0
.data 1468 1468 0 0.0
.debug_abbrev 956917 956987 70 0.0
.debug_aranges 101056 101072 16 0.0
.debug_frame 341168 341280 112 0.0
.debug_info 19511288 19514706 3418 0.0
.debug_line 2664965 2665179 214 0.0
.debug_line_str 513 513 0 0.0
.debug_loc 33340 33340 0 0.0
.debug_loclists 1486884 1488026 1142 0.1
.debug_ranges 4984 4984 0 0.0
.debug_rnglists 94239 94277 38 0.0
.debug_str 3068127 3099132 31005 1.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 104298 104298 0 0.0
.shstrtab 265 265 0 0.0
.stack 2048 2048 0 0.0
.strtab 480350 482872 2522 0.5
.symtab 287024 287120 96 0.0
.text 498004 498260 256 0.1

@github-actions
Copy link

github-actions bot commented May 3, 2023

PR #26339: Size comparison from c9725c6 to 1592d3f

Increases above 0.2%:

platform target config section c9725c6 1592d3f change % change
cc32xx lock CC3235SF_LAUNCHXL .debug_str 3069486 3100491 31005 1.0
.strtab 480350 482872 2522 0.5
Increases (1 build for cc32xx)
platform target config section c9725c6 1592d3f change % change
cc32xx lock CC3235SF_LAUNCHXL (read only) 604450 604722 272 0.0
.debug_abbrev 956917 956987 70 0.0
.debug_aranges 101088 101104 16 0.0
.debug_frame 341304 341416 112 0.0
.debug_info 19518669 19522304 3635 0.0
.debug_line 2665797 2666090 293 0.0
.debug_loclists 1487495 1488715 1220 0.1
.debug_rnglists 94265 94279 14 0.0
.debug_str 3069486 3100491 31005 1.0
.strtab 480350 482872 2522 0.5
.symtab 287024 287120 96 0.0
.text 498028 498300 272 0.1
Full report (1 build for cc32xx)
platform target config section c9725c6 1592d3f change % change
cc32xx lock CC3235SF_LAUNCHXL 0 0 0 0.0
(read only) 604450 604722 272 0.0
(read/write) 204156 204156 0 0.0
.ARM.attributes 44 44 0 0.0
.ARM.exidx 8 8 0 0.0
.bss 197568 197568 0 0.0
.comment 206 206 0 0.0
.data 1468 1468 0 0.0
.debug_abbrev 956917 956987 70 0.0
.debug_aranges 101088 101104 16 0.0
.debug_frame 341304 341416 112 0.0
.debug_info 19518669 19522304 3635 0.0
.debug_line 2665797 2666090 293 0.0
.debug_line_str 513 513 0 0.0
.debug_loc 33340 33340 0 0.0
.debug_loclists 1487495 1488715 1220 0.1
.debug_ranges 4984 4984 0 0.0
.debug_rnglists 94265 94279 14 0.0
.debug_str 3069486 3100491 31005 1.0
.ramVecs 780 780 0 0.0
.resetVecs 64 64 0 0.0
.rodata 104298 104298 0 0.0
.shstrtab 265 265 0 0.0
.stack 2048 2048 0 0.0
.strtab 480350 482872 2522 0.5
.symtab 287024 287120 96 0.0
.text 498028 498300 272 0.1

@woody-apple woody-apple merged commit 79bedcf into project-chip:master May 3, 2023
@mlepage-google mlepage-google deleted the async-cleanup branch May 3, 2023 19:14
andy31415 pushed a commit that referenced this pull request Jul 5, 2023
* Cleanup in aisle CASESession (#26339)

* Cleanup in aisle CASESession

* Reduce nesting in function

* CASE: Handle failure if unable to schedule handle/send sigma3c (#27226)

* CASE: Handle failure if unable to schedule handle/send sigma3c

- We are no longer unregistering the unsolicit message hander for
  sigma1. Based on handshake state and failure to schedule work, decide
  what to do.
  1. If in middle of handshake but it's zombie, tear down the handshake.
  2. If still in middle of handshake, return without responding.
  3. Otherwise, jsut do a new handshake.

- Added APIs in helper to check if it fails to schedule after work
  callback and to re run it from foreground thread.
- Added wrapper around the APIs for HandleSigma3 and SendSigma3 cases.

* Restyled by clang-format

* Address review comments

Added the accessor for CASESession state.
Now, all the logic for checking and resetting stays with CASESession

* Fix some API docs

* Addressed review comments

* Update src/protocols/secure_channel/CASESession.cpp

Co-authored-by: Marc Lepage <[email protected]>

* Update src/protocols/secure_channel/CASEServer.cpp

Co-authored-by: Marc Lepage <[email protected]>

* Moved status check before setting atomic variable

* fix build failures

---------

Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: Justin Wood <[email protected]>
Co-authored-by: Marc Lepage <[email protected]>

---------

Co-authored-by: Marc Lepage <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: Justin Wood <[email protected]>
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.

4 participants