-
Notifications
You must be signed in to change notification settings - Fork 86
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
Perf config #832
Closed
Closed
Perf config #832
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
493e28c
Added library function which retun True/False if performance collecti…
PraveenPenguin 03e25d2
Added a library function which help to set perf collection attribute …
PraveenPenguin b532165
Added support in Machine config as perf collection data can be set vi…
PraveenPenguin f595b2f
Remove non relevant function docstring
PraveenPenguin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -927,20 +927,20 @@ def is_perfcollection_enabled(self): | |
if rc: | ||
return True | ||
return False | ||
|
||
def hmc_perfcollect_configure(self, enable=True): | ||
''' | ||
Enable/Disable perfcollection from HMC | ||
enable perfcollection value is 1 and for disable it 0 | ||
''' | ||
# Set perf collection profile value using HMC command | ||
cmd = ('chsyscfg -r lpar -m %s -i "name=%s, allow_perf_collection=' % | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. there is only one double qoute .. is this a typo ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes that is correct
|
||
(self.mg_system, self.lpar_name)) | ||
if enable: # Value '1' to enable perfcollection | ||
if enable: | ||
cmd = '%s1"' % cmd | ||
else: # Value '0' to disable perfcollection | ||
else: | ||
cmd = '%s0"' % cmd | ||
self.run_command(cmd, timeout=300) | ||
|
||
|
||
|
||
class OpTestHMC(HMCUtil): | ||
|
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this additional commit? It changes the code(cosmetic changes) added by previous commit? Can we fold this into previous one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as i was looking to add changes align with logging as changes , let me see if some thing messed up while , let me resend
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah.. you can just ammend the changes to same previous commit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes closing this PR as have logic separation of commit as some while addressing review comment
bank line
goes as diffrent commit