John Smith | 1 Nov 2005 01:05
Picon
Favicon

Help: no symbols when profiling network card driver.

Hi,
We got a problem when we are using OProfile to sample Linux IPv4 with some 
network card driver. After we stopped OProfile and use opreport to retrieve 
the profiling results, OProfile always reports "No Symbols" for the NIC 
driver module (only the kernel functions are listed there). We did add the 
"-g" flag when we build the NIC driver and we can confirm all those symbol 
information is indeed there by using nm tool to dump the symbol information 
from the NIC driver module file.
We recompiled the kernel and the problem remains. We did test OProfile with 
some small .c programs and OProfile has no problems with this small 
programs. The OProfile version we use is 0.9.1 and the Linux kernel is 
2.6.9-11 on CentOS 4.1.

I really appreciate if somebody can shed some light on this issue.

Thanks a lot,

John

-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
William Cohen | 1 Nov 2005 15:37
Picon
Favicon

Re: Help: no symbols when profiling network card driver.

John Smith wrote:
> Hi,
> We got a problem when we are using OProfile to sample Linux IPv4 with 
> some network card driver. After we stopped OProfile and use opreport to 
> retrieve the profiling results, OProfile always reports "No Symbols" for 
> the NIC driver module (only the kernel functions are listed there). We 
> did add the "-g" flag when we build the NIC driver and we can confirm 
> all those symbol information is indeed there by using nm tool to dump 
> the symbol information from the NIC driver module file.
> We recompiled the kernel and the problem remains. We did test OProfile 
> with some small .c programs and OProfile has no problems with this small 
> programs. The OProfile version we use is 0.9.1 and the Linux kernel is 
> 2.6.9-11 on CentOS 4.1.
> 
> I really appreciate if somebody can shed some light on this issue.
> 
> Thanks a lot,
> 
> John

Hi John,

OProfile might be searching the wrong place for the driver module code. 
Is the location of the driver being listed as /driver.ko (in root 
directory)?

I have some write ups describing how OProfile can be used to analyze 
kernel modules at:

http://people.redhat.com/wcohen/
(Continue reading)

John Smith | 2 Nov 2005 23:04
Picon
Favicon

Re: Help: no symbols when profiling network card driver.

Hi Cohen,

Thanks a lot for your help(the articles on your website are well written). 
The problem is solved now. It is caused by the path and kernel debugging 
settings.
Now I got a new problem:
When I try to use opannotate to do source level analysis, opannotate does 
generate the analysis for the driver module source code, but it also reports 
lots of warning, e.g.:
opannotate (warning): unable to open for reading: include/linux/ext3_fs.h
opannotate (warning): unable to open for reading: fs/ext3/namei.c
opannotate (warning): unable to open for reading: fs/read_write.c
.......

What causes these warning and does it have impact on the oprofile source 
code analysis?
BTW, if a kernel module consists of multiple .c file, it seems opannotate 
does not give the source code analysis to all those .c files? Why?

Thanks again,

John

----- Original Message ----- 
From: "William Cohen" <wcohen <at> redhat.com>
To: "John Smith" <multisyncfe991 <at> hotmail.com>
Cc: <oprofile-list <at> lists.sourceforge.net>
Sent: Tuesday, November 01, 2005 7:37 AM
Subject: Re: Help: no symbols when profiling network card driver.

(Continue reading)

William Cohen | 2 Nov 2005 23:32
Picon
Favicon

Re: Help: no symbols when profiling network card driver.

John Smith wrote:
> Hi Cohen,
> 
> Thanks a lot for your help(the articles on your website are well 
> written). The problem is solved now. It is caused by the path and kernel 
> debugging settings.
> Now I got a new problem:
> When I try to use opannotate to do source level analysis, opannotate 
> does generate the analysis for the driver module source code, but it 
> also reports lots of warning, e.g.:
> opannotate (warning): unable to open for reading: include/linux/ext3_fs.h
> opannotate (warning): unable to open for reading: fs/ext3/namei.c
> opannotate (warning): unable to open for reading: fs/read_write.c
> .......
> 
> What causes these warning and does it have impact on the oprofile source 
> code analysis?
> BTW, if a kernel module consists of multiple .c file, it seems 
> opannotate does not give the source code analysis to all those .c files? 
> Why?
> 
> Thanks again,
> 
> John

Hi John,

There are samples for files that opannotate cannot find. Thus, you will 
be missing annotation for some of the samples. With the kernel there are 
lots of inline functions, so they may be executable code in the header 
(Continue reading)

Yeh, Jason | 3 Nov 2005 17:33
Picon
Favicon

Oprofile and jitted code current status

Hi,

I am interested in finding out the current status of the patch submitted
in this email by Scott Jones from IBM:

http://marc.theaimsgroup.com/?l=oprofile-list&m=111464575025702&w=2

Is this patch available somewhere in the CVS or do I have to contact the
original author for the patch?  Thanks.

Jason

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
John Levon | 3 Nov 2005 17:40
Favicon

Re: Oprofile and jitted code current status

On Thu, Nov 03, 2005 at 10:33:30AM -0600, Yeh, Jason wrote:

> I am interested in finding out the current status of the patch submitted
> in this email by Scott Jones from IBM:
> 
> http://marc.theaimsgroup.com/?l=oprofile-list&m=111464575025702&w=2
> 
> Is this patch available somewhere in the CVS or do I have to contact the
> original author for the patch?  Thanks.

The patch doesn't work at all anyway, but ask them for it. IBM have no
funding to finish the work to the required standard and we don't have
the spare time :(

regards
john

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
John Kacur | 3 Nov 2005 18:57
Picon

Re: Oprofile and jitted code current status

On Thu, 2005-11-03 at 16:40 +0000, John Levon wrote:
> On Thu, Nov 03, 2005 at 10:33:30AM -0600, Yeh, Jason wrote:
> 
> > I am interested in finding out the current status of the patch submitted
> > in this email by Scott Jones from IBM:
> > 
> > http://marc.theaimsgroup.com/?l=oprofile-list&m=111464575025702&w=2
> > 
> > Is this patch available somewhere in the CVS or do I have to contact the
> > original author for the patch?  Thanks.
> 
> The patch doesn't work at all anyway, but ask them for it. IBM have no
> funding to finish the work to the required standard and we don't have
> the spare time :(
> 
> regards
> john

Hi, Maynard Johnson - whose name you probably recognize for all the ppc
contributions he's made to OProfile, and myself (I'm a jit developer at
IBM) are planning on taking this up from where Frank Levine's team
(which at the time included Scott Jones, Jimmy DeWitt and Enio Pineda, I
hope I didn't miss anyone) left it.

I don't think that Frank's team has maintained these patches in any form
different from what you will find in the mailing list archives. In fact,
our plan is to scour the mailing lists (I believe they sent two
different implementations), grab those patches and start working from
there.

(Continue reading)

John Levon | 3 Nov 2005 19:05
Favicon

Re: Oprofile and jitted code current status

On Thu, Nov 03, 2005 at 12:57:47PM -0500, John Kacur wrote:

> Hi, Maynard Johnson - whose name you probably recognize for all the ppc
> contributions he's made to OProfile, and myself (I'm a jit developer at
> IBM) are planning on taking this up from where Frank Levine's team

Great news. I think all my previous comments can be found in the list
archives. In the final analysis I still had some major problems with the
design approach (besides just code review comments), so it'd be great if
we can reach a consensus on how this should be done.

regards,
john

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
manyam nirupa | 4 Nov 2005 10:36
Picon
Favicon

Queries - Kindly help me

Dear all
     I'm trying to use oprofiler for finding out % of cpu used per process. Since my PC doesn't have much hardware support my oprofiler is running TIMER mode with 2.6 kernel (So no special events are allowed). The following are the commands I have executed for profiling my application.
 
#gcc -pg manoj.c -o manoj    /* compiling the application process 'manoj' */
#opcontrol --init
#opcontrol --no-vmlinux
#opcontrol --start-daemon
#opcontrol --start
# ./manoj &                          /* running application process in background */
#opcontrol --dump
#opcontrol --shutdown
#opreport
 
I got the output like this:
CPU: CPU with timer interrupt, speed 0 MHz (estimated)
Profiling through timer interrupt
          TIMER:0|
  samples|      %|
------------------
    36943 61.4846 manoj
    22723 37.8181 no-vmlinux
      205  0.3412 libc-2.3.5.so
      162  0.2696 bash
       23  0.0383 ld-2.3.5.so
        9  0.0150 libproc-3.2.5.so
        8  0.0133 oprofiled
        5  0.0083 ps
        2  0.0033 gawk
        2  0.0033 ls
        1  0.0017 grep
        1  0.0017 libpthread-2.3.5.so
        1  0.0017 libtermcap.so.2.0.8.
 
Kindly get back to me for the following QUERIES:
1) Do the second column % indicate percentage of CPU used  or not?
2) if not what does that actually specify?
3) If the second column is the relative percentage of sample, will it indirectly mean % of CPU used.
3) Since there is no such process like "-no-vmlinux", why it is displaying that.
 
 
Thanking u in advance,
 
Regards,
Nirupa
 

Enjoy this Diwali with Y! India Click here
manyam nirupa | 4 Nov 2005 13:27
Picon
Favicon

How to generate the report from the profiled data at regular intervals

Dear all
 
  I'm running oprofiler-0.9.1 for fedora 2.6 kernel using TIMER mode
 
I'm using 'opcontrol ---dump and opreport to get the report out of the samples collected.  I need to generate this report for every 10 milliseconds. I found that opreport --dump and opreport itself is taking time(basically each it takes a latency of about 1 seconds).
 
Kindly suggest me how can I get the report for every 10 ms from the samples collected.
 
Thanks and Regards,
Nirupa
 

Enjoy this Diwali with Y! India Click here

Gmane