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 725812

Summary: python-linux-perf: Create new package with the Linux perf subsystem python binding
Product: Red Hat Enterprise Linux 6 Reporter: Arnaldo Carvalho de Melo <acme>
Component: kernelAssignee: Jiri Olsa <jolsa>
kernel sub component: Perf QA Contact: Han Pingtian <phan>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: high CC: acme, bhu, jolsa, qcai, williams
Version: 6.2Keywords: FutureFeature
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: kernel-2.6.32-190.el6 Doc Type: Enhancement
Doc Text:
Red Hat Enterprise Linux 6.2 updates the perf utility to upstream version 3.1 along with the kernel upgrade to v 3.1. Refer to BZ#725524 for newly supported kernel features provided by the perf utility. The updated version of the perf utility includes: Added cgroup support Added handling of /proc/sys/kernel/kptr_restrict Added more cache-miss percentage printouts Added the -d -d and -d -d -d options to show more CPU events Added the --sync/-S option Added support for the PERF_TYPE_RAW parameter Added more documentation about the -f/--fields option The python-perf package has been added for python binding support.
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 13:54:39 UTC Type: ---
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: 725522, 752353, 784888, 788156    
Bug Blocks:    

Description Arnaldo Carvalho de Melo 2011-07-26 16:13:01 UTC
Description of problem:

A python binding to allow access to the perf events kernel subsystem was introduced upstream and is used by the tuna package to receive notifications of thread lifetime events, instead of the current /proc polling it does.


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


How reproducible:

New package


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:

perf python binding installed and used by tools such as tuna.


Additional info:

The changes to the kernel spec file to have the package built were already prototyped/done by Jiri Olsa.

Comment 3 RHEL Program Management 2011-07-27 14:40:47 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux maintenance release. Product Management has 
requested further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed 
products. This request is not yet committed for inclusion in an Update release.

Comment 6 Aristeu Rozanski 2011-08-18 17:32:50 UTC
Patch(es) available on kernel-2.6.32-190.el6

Comment 9 Linda Wang 2011-08-21 15:56:22 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
In RHEL6.2, as part of the perf montoring subsystem sync up with upstream 3.1+, python-perf package has also been added for python binding.

Comment 10 Linda Wang 2011-08-21 15:56:31 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1 +1 @@
-In RHEL6.2, as part of the perf montoring subsystem sync up with upstream 3.1+, python-perf package has also been added for python binding.+In RHEL6.2, as part of the perf montoring subsystem sync up with upstream 3.1+, python-perf package has also been added for python binding support.

Comment 11 Han Pingtian 2011-09-05 05:59:05 UTC
Looks like python-perf isn't in distribution yet. I cannot find it in RHEL6.2-20110904.n.0. I have filed a bug 735709.

Comment 12 Martin Prpič 2011-11-10 12:02:53 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1 +1,10 @@
-In RHEL6.2, as part of the perf montoring subsystem sync up with upstream 3.1+, python-perf package has also been added for python binding support.+Red Hat Enterprise Linux 6.2 updates the perf utility to upstream version 3.1 along with the kernel upgrade to v 3.1. Refer to BZ#725524 for newly supported kernel features provided by the perf utility. The updated version of the perf utility includes:
+
+    Added cgroup support
+    Added handling of /proc/sys/kernel/kptr_restrict
+    Added more cache-miss percentage printouts
+    Added the -d -d and -d -d -d options to show more CPU events
+    Added the --sync/-S option
+    Added support for the PERF_TYPE_RAW parameter
+    Added more documentation about the -f/--fields option
+    The python-perf package has been added for python binding support.

Comment 13 errata-xmlrpc 2011-12-06 13:54:39 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.

http://rhn.redhat.com/errata/RHSA-2011-1530.html