Glenn Ammons | 7 Jun 2006 20:59
Picon
Favicon

Trouble convincing OProfile to use my "vmlinux"

I am trying to profile the kernel but can't seem to convince OProfile
to use my "vmlinux" image.  I am doing this:

    % uname -a
    Linux schmidt 2.6.15 #1 Wed Jun 7 12:09:02 EDT 2006 i686 GNU/Linux
    % sudo opcontrol --init
    % sudo opcontrol --reset 
    % sudo opcontrol --vmlinux=/boot/vmlinux-`uname -r`
    % sudo opcontrol --status
    Daemon running: pid 10399
    Separate options: none
    vmlinux file: /boot/vmlinux-2.6.15
    Image filter: none
    Call-graph depth: 0
    % ls -l /boot/vmlinux-2.6.15 
    -rw-r--r-- 1 root root 3103965 2006-06-07 13:52 /boot/vmlinux-2.6.15
    % sudo opcontrol --start ; time cat `for (( i=0; $i < 256; i++ )); do echo ../../tmp/XO-TOOLS.tar.gz ; done` >
/dev/null ; sudo opcontrol --stop
    Profiler running.

    real	0m1.775s
    user	0m0.121s
    sys	0m1.594s
    Stopping profiling.
    % opreport
    CPU: Pentium M (P6 core), speed 1196.28 MHz (estimated)
    Counted CPU_CLK_UNHALTED events (clocks processor is not halted, and not in a thermal trip) with a unit
mask of 0x00 (No unit mask) count 100000
    CPU_CLK_UNHALT...|
      samples|      %|
(Continue reading)

John Levon | 7 Jun 2006 21:02
Favicon

Re: Trouble convincing OProfile to use my "vmlinux"

On Wed, Jun 07, 2006 at 02:59:39PM -0400, Glenn Ammons wrote:

> I am trying to profile the kernel but can't seem to convince OProfile
> to use my "vmlinux" image.  I am doing this:
> 
>     % uname -a
>     Linux schmidt 2.6.15 #1 Wed Jun 7 12:09:02 EDT 2006 i686 GNU/Linux
>     % sudo opcontrol --init
>     % sudo opcontrol --reset 
>     % sudo opcontrol --vmlinux=/boot/vmlinux-`uname -r`
>     % sudo opcontrol --status
>     Daemon running: pid 10399

Exactly. You need to restart the daemon.

regards
john
John Levon | 7 Jun 2006 21:07
Favicon

Re: Patch for download page, for SF's new CVS setup

On Wed, May 24, 2006 at 03:27:29PM -0400, Derek Schuff wrote:

> Since Sourceforge recently changed the setup of their CVS services, the 
> instructions for checking stuff out of CVS and links to viewcvs need to 
> change. I've attached a little patch which fixes download/index.php3 from 
> oprofile-web

Applied, thanks.

john
Glenn Ammons | 7 Jun 2006 21:09
Picon
Favicon

Re: Trouble convincing OProfile to use my "vmlinux"

"John Levon" <levon <at> movementarian.org> writes:

> Exactly. You need to restart the daemon.

Thanks, John.  That worked.

--glenn
Mark Meijer | 7 Jun 2006 21:17

install on gentoo

 

hi all,


I am not targetting the kernel to debug, but I understand
the kernel is needed to track what my program is doing.

I am installing like this..
su root
./configure --with-kernel-support
make
make install

I don't see any errors in configure/make/make install.
I did need to add /usr/local/bin to my PATH.

When I run with
# opcontrol --no-vmlinux
FATAL: Module oprofile not found.
FATAL: Module oprofile not found.
Kernel doesn't support oprofile

Any ideas?


kernel = 2.6.12-gentoo-r6

Obtained 0.9.1 from
 http://sourceforge.net/projects/oprofile
because the .gz files I grabbed using firefox and wget from
 http://oprofile.sourceforge.net/download/
would not unpack.  (problem?)

Patched 0.9.1 with
 oprofile-0.9.1-anon.patch


thank you!!
cheers,


Mark

 

 

 

<div>

<div class="Section1">

<p class="MsoNormal"><span><p>&nbsp;</p></span></p>

<p class="MsoNormal"><span>hi all,<br><br><br>
I am not targetting the kernel to debug, but I understand<br>
the kernel is needed to track what my program is doing.<br><br>
I am installing like this..<br>
su root<br>
./configure --with-kernel-support<br>
make<br>
make install<br><br>
I don't see any errors in configure/make/make install.<br>
I did need to add /usr/local/bin to my PATH.<br><br>
When I run with<br>
# opcontrol --no-vmlinux<br>
FATAL: Module oprofile not found.<br>
FATAL: Module oprofile not found.<br>
Kernel doesn't support oprofile<br><br>
Any ideas?<br><br><br>
kernel = 2.6.12-gentoo-r6<br><br>
Obtained 0.9.1 from<br>
&nbsp;<a href="http://sourceforge.net/projects/oprofile" target="_blank">http://sourceforge.net/projects/oprofile</a><br>
because the .gz files I grabbed using firefox and wget from<br>
&nbsp;<a href="http://oprofile.sourceforge.net/download/" target="_blank">http://oprofile.sourceforge.net/download/</a><br>
would not unpack. &nbsp;(problem?)<br><br>
Patched 0.9.1 with<br>
&nbsp;oprofile-0.9.1-anon.patch<br><br><br>
thank you!!<br>
cheers,<p></p></span></p>

<p class="MsoNormal"><span><br><span class="sg">Mark</span><p></p></span></p>

<p class="MsoNormal"><span><p>&nbsp;</p></span></p>

<p class="MsoNormal"><span><p>&nbsp;</p></span></p>

<p class="MsoNormal"><span><p>&nbsp;</p></span></p>

</div>

</div>
_______________________________________________
oprofile-list mailing list
oprofile-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oprofile-list
John Levon | 7 Jun 2006 21:24
Favicon

Re: install on gentoo

On Wed, Jun 07, 2006 at 03:17:39PM -0400, Mark Meijer wrote:

> kernel = 2.6.12-gentoo-r6

You need to talk to Gentoo. Maybe they don't have oprofile enabled.

john
Derek Schuff | 7 Jun 2006 21:36
Picon
Favicon

Re: install on gentoo

Hi Mark,

You need to make sure oprofile is built into the kernel or loaded as a module 
(called oprofile). this module is included in the linux kernel source.
I have an old gentoo box around (running 2.6.11-gentoo-r...something) and i 
notice it doesnt have oprofile module built (i didnt configure this kernel, 
someone else did, so i dont know if thats the default or not). but if you 
configure your own kernel, when you make menuconfig (or whatever your 
preferred kernel config method is), you want to look under 'Profiling 
support' on the top level menu, and enable Oprofile system profiling (as a 
module is fine). then oprofile should work.

-derek

On Wednesday 07 June 2006 3:17 pm, Mark Meijer wrote:
> hi all,
>
>
> I am not targetting the kernel to debug, but I understand
> the kernel is needed to track what my program is doing.
>
> I am installing like this..
> su root
> ./configure --with-kernel-support
> make
> make install
>
> I don't see any errors in configure/make/make install.
> I did need to add /usr/local/bin to my PATH.
>
> When I run with
> # opcontrol --no-vmlinux
> FATAL: Module oprofile not found.
> FATAL: Module oprofile not found.
> Kernel doesn't support oprofile
>
> Any ideas?
>
>
> kernel = 2.6.12-gentoo-r6
>
> Obtained 0.9.1 from
>  http://sourceforge.net/projects/oprofile
> <http://sourceforge.net/projects/oprofile>
> because the .gz files I grabbed using firefox and wget from
>  http://oprofile.sourceforge.net/download/
> <http://oprofile.sourceforge.net/download/>
> would not unpack.  (problem?)
>
> Patched 0.9.1 with
>  oprofile-0.9.1-anon.patch
>
>
> thank you!!
> cheers,
>
>
> Mark
Mark Meijer | 6 Jun 2006 16:53
Picon

install on gentoo

hi all,

I am not targetting the kernel to debug, but I understand
the kernel is needed to track what my program is doing.

I am installing like this..
su root
./configure --with-kernel-support
make
make install

I don't see any errors in configure/make/make install.
I did need to add /usr/local/bin to my PATH.

When I run with
# opcontrol --no-vmlinux
FATAL: Module oprofile not found.
FATAL: Module oprofile not found.
Kernel doesn't support oprofile

Any ideas?

kernel = 2.6.12-gentoo-r6

Obtained 0.9.1 from
  http://sourceforge.net/projects/oprofile
because the .gz files I grabbed using firefox and wget from
  http://oprofile.sourceforge.net/download/
would not unpack.  (problem?)

Patched 0.9.1 with
  oprofile-0.9.1-anon.patch

thank you!!
cheers,

Mark
Mark Meijer | 7 Jun 2006 14:41
Picon

install on gentoo

hi all,

I am not targetting the kernel to debug, but I understand
the kernel is needed to track what my program is doing.

I am installing like this..
su root
./configure --with-kernel-support
make
make install

I don't see any errors in configure/make/make install.
I did need to add /usr/local/bin to my PATH.

When I run with
# opcontrol --no-vmlinux
FATAL: Module oprofile not found.
FATAL: Module oprofile not found.
Kernel doesn't support oprofile

Any ideas?

kernel = 2.6.12-gentoo-r6

Obtained 0.9.1 from
 http://sourceforge.net/projects/oprofile
because the .gz files I grabbed using firefox and wget from
 http://oprofile.sourceforge.net/download/
would not unpack.  (problem?)

Patched 0.9.1 with
 oprofile-0.9.1-anon.patch

thank you!!
cheers,

Mark
Mark Meijer | 7 Jun 2006 19:16
Picon

install on gentoo

hi all,

I am not targetting the kernel to debug, but I understand
the kernel is needed to track what my program is doing.

I am installing like this..
su root
./configure --with-kernel-support
make
make install

I don't see any errors in configure/make/make install.
I did need to add /usr/local/bin to my PATH.

When I run with
# opcontrol --no-vmlinux
FATAL: Module oprofile not found.
FATAL: Module oprofile not found.
Kernel doesn't support oprofile

Any ideas?

kernel = 2.6.12-gentoo-r6

Obtained 0.9.1 from
 http://sourceforge.net/projects/oprofile
because the .gz files I grabbed using firefox and wget from
 http://oprofile.sourceforge.net/download/
would not unpack.  (problem?)

Patched 0.9.1 with
 oprofile-0.9.1-anon.patch

thank you!!
cheers,

Mark

Gmane