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 694594

Summary: [6.2 FEAT] powerpc: re-enable dispatch trace log userspace interface
Product: Red Hat Enterprise Linux 6 Reporter: IBM Bug Proxy <bugproxy>
Component: kernelAssignee: Steve Best <sbest>
Status: CLOSED NOTABUG QA Contact: Red Hat Kernel QE team <kernel-qe>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2CC: jjarvis, nobody+PNT0273897, sbest
Target Milestone: betaKeywords: FutureFeature
Target Release: 6.2   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-29 18:47:19 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:

Description IBM Bug Proxy 2011-04-07 17:52:46 UTC
1. Feature Overview:
Feature Id: [71058]
a. Name of Feature: [6.2 FEAT] powerpc: re-enable dispatch trace log userspace interface
b. Feature Description
Since the cpu accounting code uses the hypervisor dispatch trace log now when
CONFIG_VIRT_CPU_ACCOUNTING = y,  disabled access to it via files in the
/sys/kernel/debug/powerpc/dtl/ directory in that case.  This restores those files. To do this, we
now have a hook that the cpu accounting code will call as it processes each entry from the
hypervisor dispatch trace log. The code in dtl.c now uses that to fill up its ring buffer, rather
than having the hypervisor fill the ring buffer directly. This also fixes dtl_file_read() to handle
overflow conditions a bit better and adds a spinlock to ensure that race conditions (multiple
processes opening or reading the file concurrently) are handled correctly.

2. Feature Details:
Sponsor: Power Kernel
Architectures:  ppc64, 
Arch Specificity: purely arch specific code
Affects Kernel Modules: No
Delivery Mechanism: Backport
Category: kernel
Request Type: Kernel - Enhancement from IBM
d. Upstream Acceptance: Accepted
Sponsor Priority P3
f. Severity: normal
IBM Confidential: No
Code Contribution: IBM code
g. Component Version Target: ---

3. Business Case
Any userspace tools that depend on the /sys/kernel/debug/powerpc/dtl interface will not function
when CONFIG_VIRT_CPU_ACCOUNTING = y. This enables those tools to function again. This also resolves
some bugs with the sysfs interface.

4. Primary contact at Red Hat:
John Jarvis, jjarvis

5. Primary contacts at Partner:
Project Management Contact:
Michael L. Hohnbaum, hbaum.com

Technical contact(s):
NISHANTH ARAVAMUDAN, aravam.com

Comment 2 RHEL Program Management 2011-04-07 18:03:59 UTC
Since RHEL 6.1 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 3 IBM Bug Proxy 2011-04-28 20:41:03 UTC
------- Comment From nacc.com 2011-04-28 16:32 EDT-------
Upstream commit is 872e439a45ed4a4bd499bc55cb0dffa74027f749

Comment 4 IBM Bug Proxy 2011-04-29 18:20:39 UTC
------- Comment From hohnbaum.com 2011-04-29 14:16 EDT-------
IBM is quitting this feature request as it has been resolved as part of a 6.1 feature:

> Upstream commit is 872e439a45ed4a4bd499bc55cb0dffa74027f749

> Argh, it seems this has already been resolved with the patch from BZ 66961 (RH 633515)