Skip to content

Ensure table name length is consistent across CPUs#27

Merged
jphickey merged 1 commit intonasa:masterfrom
jphickey:fix-25-tblname-lengths
Oct 23, 2019
Merged

Ensure table name length is consistent across CPUs#27
jphickey merged 1 commit intonasa:masterfrom
jphickey:fix-25-tblname-lengths

Conversation

@jphickey
Copy link
Contributor

Describe the contribution
To ensure consistency in the size of the CFE_TBL_FileHdr_t struct, this should be constrained to use only mission-scope definitions.

Also simplifies the structure definitions by NOT padding strings out to 32 bit multiples. The default size of the strings are already 32 bit multiples so this is just unnecessary complexity. There is also no major issue if not 32 bit aligned, as the compiler will add it automatically where needed.

Add a note in the related cfe_mission_cfg.h descriptions to affected values, that these should be kept as a multiple of 4 to maintain alignment.

Fixes #25

Testing performed
Built CFE using default/sample config
Verified no build issues, CFE and unit tests all run as expected (no change).

Expected behavior changes
No impact to behavior, but this may change the size of telemetry packets in some cases depending on the mission config.

System(s) tested on:
Ubuntu 18.04 (64 bit)

Contributor Info
Full name and company/organization of all contributors (required for acceptance)

Community contributors
You must attach a signed CLA (required for acceptance) or reference one already submitted

@skliper skliper changed the base branch from master to rc-6.7.0 September 13, 2019 19:05
@skliper
Copy link
Contributor

skliper commented Sep 13, 2019

Switched base branch to rc-6.7.0 until it gets merged so all those changes don't clutter this change.

@skliper skliper added this to the 6.7.0 milestone Sep 16, 2019
Copy link
Contributor

@skliper skliper left a comment

Choose a reason for hiding this comment

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

Add verify check to enforce multiple of 4 on string length in table header.

@skliper skliper removed this from the 6.7.0 milestone Sep 16, 2019
@skliper skliper added the CCB:Approved Indicates code review and approval by community CCB label Oct 1, 2019
To ensure consistency in the size of the CFE_TBL_FileHdr_t struct,
this should be constrained to use only mission-scope definitions.

Also simplifies the structure definitions by _NOT_ padding strings
out to 32 bit multiples.  The default size of the strings are
already 32 bit multiples so this is just unnecessary complexity.
There is also no major issue if not 32 bit aligned, as the
compiler will add it automatically where needed.

Add a note in the related cfe_mission_cfg.h descriptions to
affected values, that these should be kept as a multiple of 4
to maintain alignment.

Updated for 2019-09-16 code review:
 - Added compile-time verification that the configuration
   directives are actually multiples of 4.
@jphickey jphickey force-pushed the fix-25-tblname-lengths branch from 534904a to 8fe60c3 Compare October 8, 2019 18:41
@jphickey jphickey changed the base branch from rc-6.7.0 to master October 8, 2019 18:44
@jphickey jphickey requested a review from skliper October 8, 2019 18:45
@jphickey
Copy link
Contributor Author

jphickey commented Oct 8, 2019

Commit 8fe60c3 contains the requested modifications

@skliper skliper added this to the 6.8.0 milestone Oct 10, 2019
jphickey added a commit that referenced this pull request Oct 11, 2019
Merge branches 'p27', 'p367' and 'p369' for integration
@jphickey jphickey merged commit 8fe60c3 into nasa:master Oct 23, 2019
@jphickey jphickey deleted the fix-25-tblname-lengths branch February 6, 2020 15:50
dzbaker pushed a commit that referenced this pull request Jan 15, 2026
Update table implementation to use transaction state objects more
consistently for logging and event reporting.  The TxnState object
provides a consistent way to get things like the access descriptor, the
reg rec pointer, and the various IDs.
dzbaker pushed a commit that referenced this pull request Jan 15, 2026
Fix #27, use transaction info for events
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CCB:Approved Indicates code review and approval by community CCB

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TBL services using platform-scope values in table header definition

2 participants