Bug 1333439
| Summary: | Functionality of parameter options short-cuts | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Radka Brychtova <rskvaril> | ||||
| Component: | powertop | Assignee: | Jaroslav Škarvada <jskarvad> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Erik Hamera <ehamera> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 6.8 | CC: | ddumas, thozza | ||||
| Target Milestone: | rc | Keywords: | FastFix, Patch | ||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | powertop-2.3-4.el6 | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 1333495 (view as bug list) | Environment: | |||||
| Last Closed: | 2017-03-21 10:25:07 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 1333495, 1373253 | ||||||
| Attachments: |
|
||||||
|
Description
Radka Brychtova
2016-05-05 13:37:36 UTC
PowerTOP was rebased in RHEL-6 (Jul 3, 2013) and now it can write formatted reports. There is currently '-C, --csv filename' to write report in CSV and '-r, --html filename' to write report in HTML. The '-d, --dump' is older switch which only writes non-formatted reports to STDOUT and it was superseded by the formatted reports. However, I think there may be still use-cases for non-formatted reports, so I will try to get the feature back upstream. But the feature needs to be rewritten, because the code base is not compatible. Created attachment 1154255 [details]
Proposed implementation
Proposed upstream
In the proposed implementation the -d, --dump takes one optional argument - the filename. If the optional argument is omitted, it outputs to STDOUT (as the -d previously did). For CSV and HTML it now functions similarly. The user interface remains backward compatible, because for the CSV and HTML the filename argument is now optional (it was previously mandatory). Upstream pull request: https://github.com/fenrus75/powertop/pull/22 Are you going to repair it also in RHEL7, or not? (Should we create a new bug for that?) (In reply to Radka Skvarilova from comment #5) > Are you going to repair it also in RHEL7, or not? (Should we create a new > bug for that?) Please clone it. It is ultra low prio, so I doubt it will get into it, but it's good to have it tracked. Options -d, -C, -r, --dump, --csv, --html works as expected with and without filename both. Options -d and --dump without filename are using stdout, the rest creates backward-compatible default filename powertop.html or powertop.csv.
# uname -srvm
Linux 2.6.32-682.el6.x86_64 #1 SMP Tue Jan 10 00:46:37 EST 2017 x86_64
# lscpu | egrep 'family|Model|Stepping'
CPU family: 6
Model: 58
Model name: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
Stepping: 9
# dmidecode |grep -A 3 'BIOS Information'
BIOS Information
Vendor: American Megatrends Inc.
Version: ACRVMBY1.86C.0075.B00.1112251124
Release Date: 12/25/2011
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2017-0670.html |