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

Integration Candidate 2020-10-07 #936

Merged
merged 13 commits into from
Oct 6, 2020
Merged

Integration Candidate 2020-10-07 #936

merged 13 commits into from
Oct 6, 2020

Conversation

astrogeco
Copy link
Contributor

@astrogeco astrogeco commented Oct 1, 2020

Describe the contribution
Fix #923
Fix #897
Fix #651
Fix #923
Fix #705
Fix #888

Testing performed
See Bundle: https://github.com/nasa/cFS/pull/145/checks

Expected behavior changes

PR #898 - Adds the field UnregAppID to track whether an "unregistered" event was generated, un-overloading the EventCount field to serve its primary purpose of counting actual events generated from a valid/registered AppID.

PR #925 - Move the AppID lookup execution to be early in the CFE_SB_SendMsgFull implementation. This avoids double locking between SB+ES and avoids a block-scope local variable.

PR #917 - Instead of identifying a memory pool by its memory address, use a resource ID. IDs are a constant size, regardless of whether the host machine is 32 or 64 bits.

  • IDs can be put into commands/telemetry and maintain a more consistent format with consistent alignment requirements.
  • IDs can be independently verified without dereferencing memory. Previously the only way to validate a memory pool was to read the address pointed to, which results in a segfault if the address was bad.

PR #899 - Change from OS_MAX* defines to appropriately-scoped CFE defines for array sizing

PR #919 - This creates the new CFE_Status_t typedef for function's return status codes. Also adds a note to CFE_TBL_GetStatus since its behavior will likely change in the future in the hopes of not having a non-zero "info" status.

System(s) tested on
Bundle CI - https://github.com/nasa/cFS/pull/145/checks

Additional context
Part of nasa/cFS#145

Third party code
None

Contributor Info - All information REQUIRED for consideration of pull request
@jphickey
@skliper
@CDKnightNASA

jphickey and others added 5 commits September 29, 2020 16:23
Do not use EventCount to track whether an "unregistered" event
was generated, because that by definition came from a different app
than the one that "owns" that field.

This just adds a separate field to track that state, so it doesn't
potentially modify the counter for an unrelated app.
Instead of identifying a memory pool by its memory address,
use a resource ID.  IDs are a constant size, regardless of
whether the host machine is 32 or 64 bits.

- IDs can be put into commands/telemetry and maintain a more
  consistent format with consistent alignment requirements.
- IDs can be independently verified without dereferencing
  memory.  Previously the only way to validate a memory pool
  was to read the address pointed to, which results in a SEGV
  if the address was bad.
Move the AppID lookup to be early in the CFE_SB_SendMsgFull implementation.
Avoids double locking between SB+ES and avoids a block-scope local variable.
@astrogeco astrogeco changed the title Integration candidate Integration Candidate 2020-10-07 Oct 1, 2020
@astrogeco astrogeco added this to the 7.0.0 milestone Oct 1, 2020
@astrogeco
Copy link
Contributor Author

@jphickey it looks like #917 broke the build. Thankfully (maybe?) its doxygen stuff.

/home/travis/build/nasa/cFS/cfe/cmake/sample_defs/cpu1_platform_cfg.h:283: warning: explicit link request to 'CFE_ES_MAX_MEMPOOL_BLOCK_SIZES' could not be resolved

/home/travis/build/nasa/cFS/cfe/docs/src/cfe_es.dox:763: warning: explicit link request to 'CFE_ES_MAX_MEMPOOL_BLOCK_SIZES' could not be resolved

/home/travis/build/nasa/cFS/cfe/docs/src/cfe_es.dox:763: warning: explicit link request to 'CFE_ES_MAX_MEMPOOL_BLOCK_SIZES' could not be resolved

Corrects doxygen links to symbols which have been updated
@jphickey
Copy link
Contributor

jphickey commented Oct 5, 2020

@astrogeco Fixed in commit ac402f3, doxygen looks clean now.

Edit - corrected commit ID - there is a CFE and bundle commit, as usual.

@astrogeco astrogeco force-pushed the integration-candidate branch from b31aafc to 73479f7 Compare October 6, 2020 14:40
@astrogeco astrogeco merged commit 7f6fdfb into main Oct 6, 2020
astrogeco added a commit to nasa/cFS that referenced this pull request Oct 6, 2020
Combines 
- nasa/cFE#936
- nasa/osal#612

*** 

* Add osal#541

* Add cfe#898

* Add cfe#925

* Add cfe#917

* Add cFE#899

* Add nasa/cFE#888

* Add CFE hotfix for documentation link warnings

* Add FastTracked nasa/osal#616

* Set submodules to main for IC-2020-10-07

Co-authored-by: Joseph Hickey <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment