Bug 76746

Summary: Upgrade to oprofile 0.3 with module support.
Product: [Retired] Red Hat Linux Reporter: hjl
Component: kernelAssignee: Arjan van de Ven <arjanv>
Status: CLOSED CURRENTRELEASE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-09-30 15:40:07 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
Support oprofile module
none
Upgrade to oprofile 0.3 none

Description hjl 2002-10-25 18:06:41 UTC
I appended 2 patches, one for module and the
other for oprofile 0.3.

Comment 1 hjl 2002-10-25 18:08:51 UTC
Created attachment 82105 [details]
Support oprofile module

Comment 2 hjl 2002-10-25 18:09:36 UTC
Created attachment 82106 [details]
Upgrade to oprofile 0.3

Comment 3 Arjan van de Ven 2002-10-25 18:10:47 UTC
exporting the sys_call_table is not an option; it actually makes oprofile unsafe
to use ;(

Comment 4 Arjan van de Ven 2002-10-25 18:11:16 UTC
the real fix is to backport the 2.5 version that doesn't need this export...

Comment 5 hjl 2002-10-25 18:13:39 UTC
Do you have a testcase to show the sys_call_table
problem? I haven't noticed any yet.

Comment 6 Arjan van de Ven 2002-10-25 18:15:36 UTC
sure

load oprofile. load vtune.
stop oprofile, unload module
stop vtune
BOOM

both oprofile and vtune would stack on the same syscalls... but only save the
last one.


Comment 7 hjl 2002-10-25 21:08:22 UTC
Are you implying making oprofile builtin makes it safe?
If it is true, I have one line change to disable unloading
oprofile.

Comment 8 Arjan van de Ven 2002-10-25 21:10:00 UTC
not making the syscall table available to modules makes it safe
eg there is only going to be exactly 1 thing that can muck about with it and
that is oprofile

Comment 9 hjl 2002-10-25 21:18:34 UTC
I can live with that if I have to make a choice.
I need oprofile on UP kernel and it is disabled.
The worst can happen is I have to remember I can
only use oprofile or vtune at a time. I don't
even know/use vtune, which I assume has something
to do with VTune from Intel.

Comment 10 Arjan van de Ven 2002-10-25 21:20:10 UTC
the reason oprofile is disabled on UP is because it unconditially enabled the
apic... which breaks several laptops

we're trying to fix THAT and then it'll be on in the UP kernel again

Comment 11 Bugzilla owner 2004-09-30 15:40:07 UTC
Thanks for the bug report. However, Red Hat no longer maintains this version of
the product. Please upgrade to the latest version and open a new bug if the problem
persists.

The Fedora Legacy project (http://fedoralegacy.org/) maintains some older releases, 
and if you believe this bug is interesting to them, please report the problem in
the bug tracker at: http://bugzilla.fedora.us/