Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1333439

Summary: Functionality of parameter options short-cuts
Product: Red Hat Enterprise Linux 6 Reporter: Radka Brychtova <rskvaril>
Component: powertopAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED ERRATA QA Contact: Erik Hamera <ehamera>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.8CC: ddumas, thozza
Target Milestone: rcKeywords: 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 Flags
Proposed implementation none

Description Radka Brychtova 2016-05-05 13:37:36 UTC
Description of problem:
I was just going through older test. It was based on older bug (https://bugzilla.redhat.com/show_bug.cgi?id=610464) In the test there were short-cuts of cmd parameters options - which are now not working. 
I also find older definition of man page online - http://linux.die.net/man/8/powertop , where the short-cuts are defined. But now there are not - even in man page.
I am not sure, how old is this problem, but for me it just don't seems right remove them, if they were there earlier.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. run for example : powertop -d -t 1  


Actual results:
powertop: invalid option -- 'd'


Expected results:
Short-cuts working the same way as the longer version
If it will be returned - it should be also fixed in man page.


Additional info:
If the bug will be fixed - it should be fixed also in RHEL7

Comment 1 Jaroslav Škarvada 2016-05-05 14:12:43 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.

Comment 2 Jaroslav Škarvada 2016-05-05 15:35:29 UTC
Created attachment 1154255 [details]
Proposed implementation

Proposed upstream

Comment 3 Jaroslav Škarvada 2016-05-05 15:42:46 UTC
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).

Comment 4 Jaroslav Škarvada 2016-05-05 15:48:16 UTC
Upstream pull request:
https://github.com/fenrus75/powertop/pull/22

Comment 5 Radka Brychtova 2016-05-05 15:53:59 UTC
Are you going to repair it also in RHEL7, or not? (Should we create a new bug for that?)

Comment 6 Jaroslav Škarvada 2016-05-05 15:57:23 UTC
(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.

Comment 9 Erik Hamera 2017-01-15 02:39:03 UTC
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

Comment 11 errata-xmlrpc 2017-03-21 10:25:07 UTC
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