public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* sysprof in 2.6.27 kernel
@ 2008-08-13  8:39 Lukas Hejtmanek
  2008-08-13 23:23 ` Soeren Sandmann
  0 siblings, 1 reply; 9+ messages in thread
From: Lukas Hejtmanek @ 2008-08-13  8:39 UTC (permalink / raw)
  To: linux-kernel, mingo

Hello,

is there any port of sysprof gui that cooperates with the current 2.6.27 kernel
sysprof tracer?

-- 
Lukáš Hejtmánek

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: sysprof in 2.6.27 kernel
  2008-08-13  8:39 sysprof in 2.6.27 kernel Lukas Hejtmanek
@ 2008-08-13 23:23 ` Soeren Sandmann
  2008-08-14 11:10   ` Lukas Hejtmanek
  2008-08-14 11:56   ` Lukas Hejtmanek
  0 siblings, 2 replies; 9+ messages in thread
From: Soeren Sandmann @ 2008-08-13 23:23 UTC (permalink / raw)
  To: Lukas Hejtmanek; +Cc: linux-kernel, mingo

Lukas Hejtmanek <xhejtman@ics.muni.cz> writes:

> Hello,
> 
> is there any port of sysprof gui that cooperates with the current 2.6.27 kernel
> sysprof tracer?

Yes, the port is accessible from here:

    svn checkout http://svn.gnome.org/svn/sysprof/branches/ftrace-branch sysprof

It's somewhat rough still. If you try it out, I will be interested in
any feedback you have.


Thanks,
Soren

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: sysprof in 2.6.27 kernel
  2008-08-13 23:23 ` Soeren Sandmann
@ 2008-08-14 11:10   ` Lukas Hejtmanek
  2008-08-16  2:50     ` Soeren Sandmann
  2008-08-14 11:56   ` Lukas Hejtmanek
  1 sibling, 1 reply; 9+ messages in thread
From: Lukas Hejtmanek @ 2008-08-14 11:10 UTC (permalink / raw)
  To: Soeren Sandmann; +Cc: linux-kernel, mingo

On Thu, Aug 14, 2008 at 01:23:16AM +0200, Soeren Sandmann wrote:
> It's somewhat rough still. If you try it out, I will be interested in
> any feedback you have.

another feedback. I got No map at all processes even at those I got debug info
installed.

-- 
Lukáš Hejtmánek

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: sysprof in 2.6.27 kernel
  2008-08-13 23:23 ` Soeren Sandmann
  2008-08-14 11:10   ` Lukas Hejtmanek
@ 2008-08-14 11:56   ` Lukas Hejtmanek
  2008-08-16  2:52     ` Soeren Sandmann
  1 sibling, 1 reply; 9+ messages in thread
From: Lukas Hejtmanek @ 2008-08-14 11:56 UTC (permalink / raw)
  To: Soeren Sandmann; +Cc: linux-kernel, mingo

On Thu, Aug 14, 2008 at 01:23:16AM +0200, Soeren Sandmann wrote:
> It's somewhat rough still. If you try it out, I will be interested in
> any feedback you have.

and another one. sysproc gui reads user addresses from the sysprof pipe with
null pointers. is this ok or is this a bug in sysprof kernel module?

-- 
Lukáš Hejtmánek

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: sysprof in 2.6.27 kernel
  2008-08-14 11:10   ` Lukas Hejtmanek
@ 2008-08-16  2:50     ` Soeren Sandmann
  2008-08-16  3:16       ` Soeren Sandmann
  2008-08-17 12:45       ` Lukas Hejtmanek
  0 siblings, 2 replies; 9+ messages in thread
From: Soeren Sandmann @ 2008-08-16  2:50 UTC (permalink / raw)
  To: Lukas Hejtmanek; +Cc: linux-kernel, mingo

Lukas Hejtmanek <xhejtman@ics.muni.cz> writes:

> On Thu, Aug 14, 2008 at 01:23:16AM +0200, Soeren Sandmann wrote:
> > It's somewhat rough still. If you try it out, I will be interested in
> > any feedback you have.
> 
> another feedback. I got No map at all processes even at those I got debug info
> installed.

This may be because sysprof user space is not running as root, or it
may be because the kernel is generating bogus addresses. 

Generally, "No Map" means sysprof is seeing samples in memory regions
that are not in /proc/<pid>/maps



Soren

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: sysprof in 2.6.27 kernel
  2008-08-14 11:56   ` Lukas Hejtmanek
@ 2008-08-16  2:52     ` Soeren Sandmann
  2008-08-17 12:44       ` Lukas Hejtmanek
  0 siblings, 1 reply; 9+ messages in thread
From: Soeren Sandmann @ 2008-08-16  2:52 UTC (permalink / raw)
  To: Lukas Hejtmanek; +Cc: linux-kernel, mingo

Lukas Hejtmanek <xhejtman@ics.muni.cz> writes:

> On Thu, Aug 14, 2008 at 01:23:16AM +0200, Soeren Sandmann wrote:
> > It's somewhat rough still. If you try it out, I will be interested in
> > any feedback you have.
> 
> and another one. sysproc gui reads user addresses from the sysprof pipe with
> null pointers. is this ok or is this a bug in sysprof kernel module?

That is not ok, but it could happen if the process in question was not
compiled with framepointers. Or it could be a bug in the kernel code.


Soren

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: sysprof in 2.6.27 kernel
  2008-08-16  2:50     ` Soeren Sandmann
@ 2008-08-16  3:16       ` Soeren Sandmann
  2008-08-17 12:45       ` Lukas Hejtmanek
  1 sibling, 0 replies; 9+ messages in thread
From: Soeren Sandmann @ 2008-08-16  3:16 UTC (permalink / raw)
  To: Lukas Hejtmanek; +Cc: linux-kernel, mingo

Soeren Sandmann <sandmann@daimi.au.dk> writes:

> Lukas Hejtmanek <xhejtman@ics.muni.cz> writes:
> 
> > On Thu, Aug 14, 2008 at 01:23:16AM +0200, Soeren Sandmann wrote:
> > > It's somewhat rough still. If you try it out, I will be interested in
> > > any feedback you have.
> > 
> > another feedback. I got No map at all processes even at those I got debug info
> > installed.
> 
> This may be because sysprof user space is not running as root, or it
> may be because the kernel is generating bogus addresses. 
> 
> Generally, "No Map" means sysprof is seeing samples in memory regions
> that are not in /proc/<pid>/maps

Actually, I seem to remember one cause of this: the vdso code creates
an unusual stackframe where the pointer to the previous frame is
stored in an unusual place. I think the sysprof kernel code needs to
take this into account, or alternatively send sufficient information
to userspace that it can figure it out itself.


Soren

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: sysprof in 2.6.27 kernel
  2008-08-16  2:52     ` Soeren Sandmann
@ 2008-08-17 12:44       ` Lukas Hejtmanek
  0 siblings, 0 replies; 9+ messages in thread
From: Lukas Hejtmanek @ 2008-08-17 12:44 UTC (permalink / raw)
  To: Soeren Sandmann; +Cc: linux-kernel, mingo

On Sat, Aug 16, 2008 at 04:52:54AM +0200, Soeren Sandmann wrote:
> > and another one. sysproc gui reads user addresses from the sysprof pipe with
> > null pointers. is this ok or is this a bug in sysprof kernel module?
> 
> That is not ok, but it could happen if the process in question was not
> compiled with framepointers. Or it could be a bug in the kernel code.

I tried to put printf in case that sysprof gui receives non null address from
the kernel. None print was displayed, so it seems ti receives only null
addresses.

-- 
Lukáš Hejtmánek

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: sysprof in 2.6.27 kernel
  2008-08-16  2:50     ` Soeren Sandmann
  2008-08-16  3:16       ` Soeren Sandmann
@ 2008-08-17 12:45       ` Lukas Hejtmanek
  1 sibling, 0 replies; 9+ messages in thread
From: Lukas Hejtmanek @ 2008-08-17 12:45 UTC (permalink / raw)
  To: Soeren Sandmann; +Cc: linux-kernel, mingo

On Sat, Aug 16, 2008 at 04:50:30AM +0200, Soeren Sandmann wrote:
> This may be because sysprof user space is not running as root, or it
> may be because the kernel is generating bogus addresses. 

if I do not run it as root, the collecor does not start at all.
 
> Generally, "No Map" means sysprof is seeing samples in memory regions
> that are not in /proc/<pid>/maps

yes, that could be because only null addresses are received.

-- 
Lukáš Hejtmánek

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2008-08-17 12:45 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-13  8:39 sysprof in 2.6.27 kernel Lukas Hejtmanek
2008-08-13 23:23 ` Soeren Sandmann
2008-08-14 11:10   ` Lukas Hejtmanek
2008-08-16  2:50     ` Soeren Sandmann
2008-08-16  3:16       ` Soeren Sandmann
2008-08-17 12:45       ` Lukas Hejtmanek
2008-08-14 11:56   ` Lukas Hejtmanek
2008-08-16  2:52     ` Soeren Sandmann
2008-08-17 12:44       ` Lukas Hejtmanek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox