Ross Burton | 2 Feb 2005 12:23
Gravatar

Callgraph and 2.6.10

Hi,

I'd like to try callgraph with some apps I am running on kernel 2.6.10.
As I understand it I still need to apply the callgraph patch to my
kernel, but the patch on the web site [1] doesn't apply cleanly.  Is
this still a required patch, or is there a newer patch available?

Thanks,
Ross

[1] http://oprofile.sourceforge.net/patches/callgraph-0.3.diff

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
Ross Burton | 2 Feb 2005 13:19
Gravatar

Re: Callgraph and 2.6.10

Ross Burton <ross <at> burtonini.com> writes:
> I'd like to try callgraph with some apps I am running on kernel 2.6.10.
> As I understand it I still need to apply the callgraph patch to my
> kernel, but the patch on the web site [1] doesn't apply cleanly.  Is
> this still a required patch, or is there a newer patch available?

I just found the 2.6.9 patch in the list archives, but that also doesn't apply.
 I've hacked it a bit and am currently compiling a kernel to see if it works, if
it does I'll post it here.

Ross

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
Ross Burton | 2 Feb 2005 16:56
Gravatar

Re: Callgraph and 2.6.10

> I just found the 2.6.9 patch in the list archives, but that also doesn't apply.
> I've hacked it a bit and am currently compiling a kernel to see if it works, if
> it does I'll post it here.

I think I've got a working callgraph now (updated arch/i386/timer_int.c)
but now I'm seeing strange results:

  self     %        cum.     %        child    %        symbol name
  0              0  0              0  2519     145.2710 main
  ...

I'm not sure now main() managed to take 145% of the execution time...  is this
a bug or am I just totally misunderstanding the report?

Ross

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
Ross Burton | 2 Feb 2005 17:34
Gravatar

Re: Callgraph and 2.6.10

Hi,

Last post for a while, I promise.   The patch I used is at
http://www.burtonini.com/computing/callgraph-0.4-2.6.10.diff

Ross

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
Michael Iatrou | 3 Feb 2005 00:23
Picon

SUID for oprofile

Hi there,
Is it possible to use oprofile for user applications profiling without being 
root? I tried suid for oprof_start and opcontrol but the latest keep 
complaining "Normal users are limited to '--dump'."

Thanks,

--

-- 
 Michael Iatrou

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
John Levon | 3 Feb 2005 14:33
Favicon

Re: SUID for oprofile

On Thu, Feb 03, 2005 at 01:23:01AM +0200, Michael Iatrou wrote:

> Is it possible to use oprofile for user applications profiling without being 
> root?

No - OProfile interacts with system hardware, giving this facility
to normal users is a security hole.

> I tried suid for oprof_start and opcontrol but the latest keep 
> complaining "Normal users are limited to '--dump'."

opcontrol is a shell script, and Linux doesn't support setuid shell
scripts.

You can probably use sudo, but I would be very careful.

john

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
Ross Burton | 4 Feb 2005 16:21
Gravatar

callgraph visualisation tools

Hi,

Quick question: does anyone know of any visualisation tools for the
callgraph output?

Thanks,
Ross
--

-- 
Ross Burton                                 mail: ross <at> burtonini.com
                                          jabber: ross <at> burtonini.com
                                     www: http://www.burtonini.com./
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
John Levon | 4 Feb 2005 16:23
Favicon

Re: callgraph visualisation tools

On Fri, Feb 04, 2005 at 03:21:19PM +0000, Ross Burton wrote:

> Quick question: does anyone know of any visualisation tools for the
> callgraph output?

I don't believe there are any

john

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
Ralf Wildenhues | 4 Feb 2005 16:33
Picon
Picon

Re: callgraph visualisation tools

* John Levon wrote on Fri, Feb 04, 2005 at 04:23:43PM CET:
> On Fri, Feb 04, 2005 at 03:21:19PM +0000, Ross Burton wrote:
> 
> > Quick question: does anyone know of any visualisation tools for the
> > callgraph output?
> 
> I don't believe there are any

http://kcachegrind.sourceforge.net/cgi-bin/show.cgi/KcacheGrindDownload

sounds like it could to it.  Untested.

Regards,
Ralf

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
Phillip.Ezolt | 4 Feb 2005 16:39
Picon
Favicon

Re: callgraph visualisation tools

Didn't the kcachegrind people add the ability to read oprofile
callgraphs?

(after a little web search...)

It looks like they did:
http://docs.kde.org/en/3.3/kdesdk/kcachegrind/using-kcachegrind.html

--Phil

    Hewlett-Packard: High Performance Technical Computing/Visualization
---------------------------------------------------------------------------
Phillip.Ezolt <at> hp.com                                Performance/Development

On Fri, 4 Feb 2005, John Levon wrote:

> On Fri, Feb 04, 2005 at 03:21:19PM +0000, Ross Burton wrote:
>
> > Quick question: does anyone know of any visualisation tools for the
> > callgraph output?
>
> I don't believe there are any
>
> john
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
> Tool for open source databases. Create drag-&-drop reports. Save time
> by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
(Continue reading)


Gmane