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 #385, adds generic driver interface and Linux sysmon module #386

Merged
merged 2 commits into from
Apr 12, 2023

Conversation

jphickey
Copy link
Contributor

@jphickey jphickey commented Apr 6, 2023

Checklist (Please check before submitting)

Describe the contribution
Defines an "iodriver" interface with a simple module id + opcode + argument interface, which can be extended as necessary for different purposes.

Also adds a "linux_sysmon" module that implements this interface to provide system monitoring capabilities. This includes, but is not limited to, the CPU utilization that HS needs.

Fixes #385

Testing performed
Build and run CFE with (patched) HS, observe CPU utilization getting reported correctly via the PSP module

Expected behavior changes
Adds "iodriver" pluggable/extendable interface, and "linux_sysmon" for health monitoring

System(s) tested on
Debian

Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.

@jphickey jphickey added the CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) label Apr 6, 2023
@jphickey jphickey force-pushed the fix-385-sysmon branch 2 times, most recently from 3e1d254 to cb99ae2 Compare April 6, 2023 17:18
Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

CodeQL-coding-standard found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.

@dzbaker dzbaker added CCB: Provisionally-Approved and removed CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) labels Apr 6, 2023
Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

CodeQL found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.

@jphickey jphickey force-pushed the fix-385-sysmon branch 2 times, most recently from 5f6e167 to 4bbc455 Compare April 7, 2023 01:06
Defines an "iodriver" interface with a simple module id + opcode +
argument interface, which can be extended as necessary for different
purposes.

Also adds a "linux_sysmon" module that implements this interface to
provide system monitoring capabilities.  This includes, but is not
limited to, the CPU utilization that HS needs.
@jphickey
Copy link
Contributor Author

jphickey commented Apr 7, 2023

@dzbaker all issues have been cleaned up now, should be good to go.

@dzbaker dzbaker added CCB:Approved Indicates Approval by CCB and removed CCB: Provisionally-Approved labels Apr 10, 2023
dzbaker added a commit that referenced this pull request Apr 10, 2023
Fix #385, adds generic driver interface and Linux sysmon module
Update the doxygen documentation to correct warnings, and correct some
inconsistent symbol names.
@dzbaker dzbaker merged commit 0f9f68a into nasa:main Apr 12, 2023
@jphickey jphickey deleted the fix-385-sysmon branch April 17, 2023 14:32
@dmknutsen dmknutsen added this to the Equuleus milestone Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CCB:Approved Indicates Approval by CCB
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add API for obtaining system health statistics
3 participants