Share

Prospect System Profiler

Tracker: Bugs

5 Doesn't work with 2.6 kernels - ID: 1092861
Last Update: Comment added ( type2 )

I'm kind of surprized not having found anything
reported about this, but here's what happens when I try
prospect on my 2.6 system:

"
foo:/home/johan/src/crashdump/src# prospect echo plumber

Time: echo plumber
Can't open /proc/ksyms
- errno = 2 -- No such file or directory
0.901 BUG@Line0517:linux_model.c Couldn't find
"num_physpages" in /proc/ksyms.
Warning: couldn't import System.map file - kernel
profiles disabled.
prospect: couldn't find
"/lib/modules/2.6.9-1-686/oprofile/oprofile.o"

NOTE: Prospect depends on a functional oprofile
installation. You can get
oprofile from http://oprofile.sf.net. However,
make sure to read the
prospect README.INSTALL file since you may
already have an oprofile
distribution that was delivered with prospect,
but not installed.
Check the /usr/share/doc/prospect[-0.9.8b]
directory.
prospect
"

/proc/ksyms is called /proc/kallsyms in 2.6 kernels, so
while this particular issue should be simple to patch,
there might be others that are trickier.


Johan Walles ( johanwalles ) - 2004-12-29 19:05

5

Open

Accepted

Alex Tsariounov

None

v0.9.8

Public


Comments ( 3 )




Date: 2005-09-06 20:41
Sender: type2Project Admin

Logged In: YES
user_id=360573

Yes, the last comment is a little old. I've not had the
time to dedicate to this project lately. So, if you're so
inclined, you sure can hack it yourself (it's somewhat
involved, definitely not a one-liner).

A few comments to keep in mind: 1) I'd like to support both
2.4 and 2.6 oprofile systems and detection of this should be
automatic (i.e. no command line switches to tell prospect
that this is a 2.4 or 2.6 system); 2) I'd like to support
the Red Hat distros that use a 2.4 kernel with a 2.6
oprofile backported patch, also automatically detected; 3)
the delta between release 0.9.8b and TOT in CVS contains a
start of an implementation, but it's not complete (you may
want to base off of 0.9.8b instead, depending on your design).

Thanks,
Alex



Date: 2005-08-31 07:10
Sender: nobody

Logged In: NO

Any news on this ... The last comment I see is several
months old.
What is involved in getting this working for 2.6 kernels?
Perhaps I can hack it myself?



Date: 2005-01-04 18:00
Sender: type2Project Admin

Logged In: YES
user_id=360573

Yes, there are in fact a number of changes that need to be
done in order to support 2.6 kernels. I do plan on
implementing this in the near future; however, the time
frame is a trade off between user demand and time available.


Log in to comment.

Attached File

No Files Currently Attached

Changes ( 2 )

Field Old Value Date By
resolution_id None 2005-01-04 18:00 type2
assigned_to nobody 2005-01-04 18:00 type2