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

cFE Integration candidate: 2021-03-02 #1196

Merged
merged 16 commits into from
Mar 4, 2021
Merged

cFE Integration candidate: 2021-03-02 #1196

merged 16 commits into from
Mar 4, 2021

Conversation

astrogeco
Copy link
Contributor

@astrogeco astrogeco commented Mar 1, 2021

Describe the contribution
Fix #1020, refactor SB buffer descriptor object
Fix #922, Update cfe_error.h to use the CFE_Status_t type
Fix #1149, remove cfeesugshellsrv from user guide
Fix #546
, APIs missing argument validation
Fix #547
, APIs missing check for NULL pointer(s)
Fix #1119
, Calculate crc can't return error code
Fix #1153, Remove logic based on LogEnabled status
Fix #1189, correct compiler warnings

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

Expected behavior changes

PR #1154 - Refactors the SB buffer descriptor object CFE_SB_BufferD_t and simplify the zero-copy buffer paradigm. Combines the zero-copy and the normal CFE buffer descriptor into a single unified CFE_SB_BufferD_t object. Results in a simpler zero-copy design that is similarto the the standard, non-zero-copy message path. All message descriptor objects are now tracked in a list by SB. All changes are internal to SB. This does not affect API or behavior of any existing APIs (but see note). Corrects a minor issue where the MsgSendErrorCounter would get incremented if there were no subscribers, but only in the zero copy API.

PR #935 - Replaces int_32 with CFE_Status_t for all error message codes

PR #1179 - Removes references to cfeesugshellsrv from user guide

PR #1140 - Adds null pointer checks and size checks to validate method parameters. Returning the input instead of an error code

PR #1178 - Removes use of LogEnabled element in HK telemetry for EVS logic since log is always enabled now. On failures, reset area or semaphore will panic.

PR #1197 - Fixes various build warnings when BUILDTYPE=release.

System(s) tested on
Ubuntu 18.04

Additional context
Part of nasa/cFS#204

Third party code
None

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

zanzaben and others added 5 commits February 9, 2021 11:06
Implmements a new function in FS to parse an input file name
from a user.  Initially applied to startup script processing.

The new function produces fully-qualified output where the input
may omit either a pathname or an extension.  These items will be
added from the specified defaults, if missing, and a complete
fully-qualified filename will be output.

If the input is already a fully qualified filename, then the
output is the same as the input (basically a copy).

This initially is used to provide better cross-platform startup
script processing, where module suffix may differ across platforms.
Only the "basename" of the filename needs to be specified in the
startup script - everything else can come from defaults.
Combine the "zero copy" and the normal CFE buffer descriptor into a single
unified CFE_SB_BufferD_t object.  This cleans up a bunch of extra logic
related to zero-copy buffers, including the extra descriptor object.  The
result is a simpler zero-copy design that is much less different from the
standard (non-zero-copy) message path.

All message descriptor objects are now tracked in a list by SB, not just
the zero-copy descriptors (for consistency - if any buffers need to be
tracked, they should all be tracked).
Fix #1020, refactor SB buffer descriptor object
astrogeco and others added 10 commits March 1, 2021 15:41
Fix #922, Update cfe_error.h to use the CFE_Status_t type
Corrects two false alarms about uninitialized vars and another
cast-align warning on the raspbian toolchain (gcc 4.9.3) or
other older versions of gcc (e.g. RHEL/CentOS 7).

- Promotes the CFE_SBR_INVALID_ROUTE_ID constant from the private
  cfe_sbr_priv.h header to the public cfe_sbr.h header (where the
  type itself is defined).
- Pre-Initialize local stack variables that store outputs from other
  functions (avoids false warning about use-before-init).
- Corrects an alignment warning on ARM.
…_guide

Fix #1149, remove cfeesugshellsrv from user guide
Fix #1153, Remove logic based on LogEnabled status
@astrogeco astrogeco marked this pull request as ready for review March 3, 2021 19:59
Add 'v' prefix to version numbers in ReadMe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment