Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 76746 - Upgrade to oprofile 0.3 with module support.
Summary: Upgrade to oprofile 0.3 with module support.
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: kernel
Version: 8.0
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Arjan van de Ven
QA Contact: Brian Brock
Depends On:
TreeView+ depends on / blocked
Reported: 2002-10-25 18:06 UTC by hjl
Modified: 2008-08-01 16:22 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2004-09-30 15:40:07 UTC

Attachments (Terms of Use)
Support oprofile module (deleted)
2002-10-25 18:08 UTC, hjl
no flags Details | Diff
Upgrade to oprofile 0.3 (deleted)
2002-10-25 18:09 UTC, hjl
no flags Details | Diff

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

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

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

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

The Fedora Legacy project ( maintains some older releases, 
and if you believe this bug is interesting to them, please report the problem in
the bug tracker at:

Note You need to log in before you can comment on or make changes to this bug.