Bug 86429

Summary: OProfile driver gets incorrect app name
Product: [Retired] Red Hat Raw Hide Reporter: William Cohen <wcohen>
Component: kernelAssignee: Arjan van de Ven <arjanv>
Status: CLOSED RAWHIDE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Taroon Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-07-07 21:11:30 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:
Attachments:
Description Flags
patch to correct order of evaluation problem in oprofile driver none

Description William Cohen 2003-03-21 20:35:06 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003

Description of problem:
There is a evaluation order problem in the test to determine the application
name from the mm. The patch requires addition of "()"s to a test to correct the
order of evaulation.  The patch based on  2.5.65 is attached.

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

How reproducible:
Always

Steps to Reproduce:
1. Use SMP kernel (this is on p4 machine)
2. opcontrol --setup --vmlinux=/boot/vmlinux-`uname -r`
--ctr0-event=GLOBAL_POWER_EVENTS --ctr0-unit-mask=1 --ctr0-count=1200000
--separate=library
  opcontrol --start
3. start x (XFree executable causes problems)
    

Actual Results:  There will be sample files in /var/lib/oprofile/samples with
"}dev}mem" in the name.  This indicates there are are samples for /dev/mem,
which is not correct. 

Expected Results:  No samples with "}dev}mem" in the name in
/var/lib/oprofile/samples. Samples should be for Xfree.

Additional info:

Comment 1 William Cohen 2003-03-21 20:36:37 UTC
Created attachment 90689 [details]
patch to correct order of evaluation problem in oprofile driver