-
Notifications
You must be signed in to change notification settings - Fork 15
adaptived: Add a cause that can publish cgroup data #55
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add auto-detection support for cgroup floats when invoking adaptived_cgroup_get_value() with a type of ADAPTIVED_CGVAL_DETECT. Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
…_VALUE Add support for a shared data struct that contains the cgroup name, a setting name, and the value associated with that setting. Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
e8a03c6 to
ee1d8ba
Compare
Member
Author
|
Code coverage on the new |
Add a cause that can gather cgroup data and publish it to the shared data mechanism. Downstream effects (print, rest calls, etc.) can then utilize this data. Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Add support to the "print" effect for printing shared data to the screen. This effect is useful for debugging the internal state of adaptived. Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Add a file comparison function, compare_files_unsorted(), that will compare two files even if the data is out of order. Note that the comparison is quite slow as the second file is repeatedly walked. Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Add a functional test for the cgroup_data cause. Note that this test operates on a fictional cgroup hierarchy that is temporarily built under the ftests directory. $ ./test071 ./ $ echo $? 0 Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Add a utility function, parse_token_file(), that can parse a file, search for a given token of the format "<< TOKEN >>", and then output the replaced token to the specified file. This can be useful for inserting timestamps, absolute paths, etc. into JSON files. Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Add a functional test for the cgroup_data cause. Note that this test operates on a fictional cgroup hierarchy that is temporarily built under the ftests directory. Also note that the test produces output paths that are absolute paths. $ ./test072 ./ $ echo $? 0 Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
ee1d8ba to
91c5676
Compare
Member
Author
|
v2 changes:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
enhancement
New feature or request
OCA Verified
All contributors have signed the Oracle Contributor Agreement.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add a cause
cgroup_datathat can gather and publish cgroup data via the adaptived shared data mechanism. This shared data can then be processed in an effect, e.g. output via a rest call.