public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* A question on PPC32
@ 2009-06-29  8:24 chen HJ
  2009-06-29  9:57 ` Ananth N Mavinakayanahalli
  2009-07-02 13:21 ` question about cache miss tgh
  0 siblings, 2 replies; 10+ messages in thread
From: chen HJ @ 2009-06-29  8:24 UTC (permalink / raw)
  To: systemtap

Hi all,

A simple question, can systemTap support PPC32 now? I have tried to
compile systemTap on MPC5121, but it needs a header file for PPC64.

Best Regards,
H.J

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

* Re: A question on PPC32
  2009-06-29  8:24 A question on PPC32 chen HJ
@ 2009-06-29  9:57 ` Ananth N Mavinakayanahalli
       [not found]   ` <79E6823080C67C4780654AFA9678580203B6E175@BLR-SJP-MBX01.wipro.com>
  2009-07-02 13:21 ` question about cache miss tgh
  1 sibling, 1 reply; 10+ messages in thread
From: Ananth N Mavinakayanahalli @ 2009-06-29  9:57 UTC (permalink / raw)
  To: chen HJ; +Cc: systemtap

On Mon, Jun 29, 2009 at 04:24:03PM +0800, chen HJ wrote:
> Hi all,
> 
> A simple question, can systemTap support PPC32 now? I have tried to
> compile systemTap on MPC5121, but it needs a header file for PPC64.

The kernel side support (kprobes, tracepoints, et al) are already
available. Its quite possible that the SystemTap runtime needs a few
tweaks to get it working for ppc32

Look at __powerpc64__/__arm__ in runtime code and see if a new stub
needs to be written at those places for __powerpc__

Ananth

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

* Re: A question on PPC32
       [not found]   ` <79E6823080C67C4780654AFA9678580203B6E175@BLR-SJP-MBX01.wipro.com>
@ 2009-06-29 10:18     ` Ananth N Mavinakayanahalli
  2009-06-30  0:11       ` chen HJ
  0 siblings, 1 reply; 10+ messages in thread
From: Ananth N Mavinakayanahalli @ 2009-06-29 10:18 UTC (permalink / raw)
  To: ashok.shanmugam; +Cc: chenhj98, systemtap

On Mon, Jun 29, 2009 at 03:30:22PM +0530, ashok.shanmugam@wipro.com wrote:
> >On Mon, Jun 29, 2009 at 04:24:03PM +0800, chen HJ wrote:
> >> Hi all,
> >>
> >> A simple question, can systemTap support PPC32 now? I have tried to
> >> compile systemTap on MPC5121, but it needs a header file for PPC64.
> 
> >The kernel side support (kprobes, tracepoints, et al) are already
> >available. Its quite possible that the SystemTap runtime needs a few
> >tweaks to get it working for ppc32
> 
> >Look at __powerpc64__/__arm__ in runtime code and see if a new stub
> >needs to be written at those places for __powerpc__
> 
> >Ananth
> 
> 
> 
> Hi Ananth,
> 
> Can you tell me from which kernel version the PPC32 is supported for kprobes ?

Kumar Gala added the patch (git commit 8209003) in Feb 2007. AFAICS, kprobes
for ppc32 has been available since 2.6.21.

Ananth

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

* Re: A question on PPC32
  2009-06-29 10:18     ` Ananth N Mavinakayanahalli
@ 2009-06-30  0:11       ` chen HJ
  2009-06-30  9:13         ` Ananth N Mavinakayanahalli
  0 siblings, 1 reply; 10+ messages in thread
From: chen HJ @ 2009-06-30  0:11 UTC (permalink / raw)
  To: ananth; +Cc: ashok.shanmugam, systemtap

Hi all,

Thanks for your response, can you provide any more detailed steps
about how to make systemTap work on PPC32?

Best Regards,
H.J


On Mon, Jun 29, 2009 at 6:18 PM, Ananth N
Mavinakayanahalli<ananth@in.ibm.com> wrote:
> On Mon, Jun 29, 2009 at 03:30:22PM +0530, ashok.shanmugam@wipro.com wrote:
>> >On Mon, Jun 29, 2009 at 04:24:03PM +0800, chen HJ wrote:
>> >> Hi all,
>> >>
>> >> A simple question, can systemTap support PPC32 now? I have tried to
>> >> compile systemTap on MPC5121, but it needs a header file for PPC64.
>>
>> >The kernel side support (kprobes, tracepoints, et al) are already
>> >available. Its quite possible that the SystemTap runtime needs a few
>> >tweaks to get it working for ppc32
>>
>> >Look at __powerpc64__/__arm__ in runtime code and see if a new stub
>> >needs to be written at those places for __powerpc__
>>
>> >Ananth
>>
>>
>>
>> Hi Ananth,
>>
>> Can you tell me from which kernel version the PPC32 is supported for kprobes ?
>
> Kumar Gala added the patch (git commit 8209003) in Feb 2007. AFAICS, kprobes
> for ppc32 has been available since 2.6.21.
>
> Ananth
>

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

* Re: A question on PPC32
  2009-06-30  0:11       ` chen HJ
@ 2009-06-30  9:13         ` Ananth N Mavinakayanahalli
  2009-06-30 22:10           ` Jim Keniston
  2009-07-01  0:00           ` Chen Hongjun-R66092
  0 siblings, 2 replies; 10+ messages in thread
From: Ananth N Mavinakayanahalli @ 2009-06-30  9:13 UTC (permalink / raw)
  To: chen HJ; +Cc: ashok.shanmugam, systemtap

On Tue, Jun 30, 2009 at 08:11:29AM +0800, chen HJ wrote:
> Hi all,
> 
> Thanks for your response, can you provide any more detailed steps
> about how to make systemTap work on PPC32?

On first glance, additions/modifications would be required to
runtime/regs.c runtime/regs.h runtime/string.h runtime/copy.c

Look for all instances of arch specific code in the above files and
you'll need to add or modify existing stubs for it to work on powerpc.

Further, you'll need to build and run SystemTap to determine if any
other changes would be needed for ppc32 enablement.

Ananth

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

* Re: A question on PPC32
  2009-06-30  9:13         ` Ananth N Mavinakayanahalli
@ 2009-06-30 22:10           ` Jim Keniston
  2009-07-01  0:00           ` Chen Hongjun-R66092
  1 sibling, 0 replies; 10+ messages in thread
From: Jim Keniston @ 2009-06-30 22:10 UTC (permalink / raw)
  To: ananth; +Cc: chen HJ, ashok.shanmugam, systemtap

On Tue, 2009-06-30 at 14:41 +0530, Ananth N Mavinakayanahalli wrote:
> On Tue, Jun 30, 2009 at 08:11:29AM +0800, chen HJ wrote:
> > Hi all,
> > 
> > Thanks for your response, can you provide any more detailed steps
> > about how to make systemTap work on PPC32?
> 
> On first glance, additions/modifications would be required to
> runtime/regs.c runtime/regs.h runtime/string.h runtime/copy.c
> 
> Look for all instances of arch specific code in the above files and
> you'll need to add or modify existing stubs for it to work on powerpc.
> 
> Further, you'll need to build and run SystemTap to determine if any
> other changes would be needed for ppc32 enablement.
> 
> Ananth

You'll probably need to add a "ppc" subdirectory* to the tapset
directory, with registers.stp and syscalls.stp.  (*I don't have a ppc32
box handy.  I think that the subdirectory name is supposed to match
whatever "uname -m" reports.)

If you want to probe functions in user-space programs -- e.g.,
    probe process("myprog").function("myfunc") { ... }
you'll need to port uprobes.  This probably means cloning and/or editing
runtime/uprobes/uprobes_ppc64.{c,h}, and making the obvious changes to
uprobes_arch.{c,h} in runtime/uprobes and runtime/uprobes2.  In case
it's not clear what the functions and macros in uprobes_ppc64.{c,h} are
supposed to do, I can mail you the uprobes porting guide.

Jim Keniston

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

* RE: A question on PPC32
  2009-06-30  9:13         ` Ananth N Mavinakayanahalli
  2009-06-30 22:10           ` Jim Keniston
@ 2009-07-01  0:00           ` Chen Hongjun-R66092
  1 sibling, 0 replies; 10+ messages in thread
From: Chen Hongjun-R66092 @ 2009-07-01  0:00 UTC (permalink / raw)
  To: ananth; +Cc: ashok.shanmugam, systemtap

Hi Ananth,

Thanks a lot! 

Best Regards,
H.J


> -----Original Message-----
> From: Ananth N Mavinakayanahalli [mailto:ananth@in.ibm.com] 
> Sent: Tuesday, June 30, 2009 5:12 PM
> To: chen HJ
> Cc: ashok.shanmugam@wipro.com; systemtap@sourceware.org
> Subject: Re: A question on PPC32
> 
> On Tue, Jun 30, 2009 at 08:11:29AM +0800, chen HJ wrote:
> > Hi all,
> > 
> > Thanks for your response, can you provide any more detailed steps 
> > about how to make systemTap work on PPC32?
> 
> On first glance, additions/modifications would be required to 
> runtime/regs.c runtime/regs.h runtime/string.h runtime/copy.c
> 
> Look for all instances of arch specific code in the above 
> files and you'll need to add or modify existing stubs for it 
> to work on powerpc.
> 
> Further, you'll need to build and run SystemTap to determine 
> if any other changes would be needed for ppc32 enablement.
> 
> Ananth
> 

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

* question about cache miss
  2009-06-29  8:24 A question on PPC32 chen HJ
  2009-06-29  9:57 ` Ananth N Mavinakayanahalli
@ 2009-07-02 13:21 ` tgh
  1 sibling, 0 replies; 10+ messages in thread
From: tgh @ 2009-07-02 13:21 UTC (permalink / raw)
  To: systemtap

Hi
	I want to know whether we can get cache miss information from
systemtap, or how to get it, could you give me some examples 

Thank you
 

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

* Re: question about cache miss
  2009-07-02 13:21             ` question about cache miss tgh
@ 2009-07-06 19:16               ` William Cohen
  0 siblings, 0 replies; 10+ messages in thread
From: William Cohen @ 2009-07-06 19:16 UTC (permalink / raw)
  To: tgh; +Cc: systemtap

tgh wrote:
> Hi
> 	Does systemtap support cache miss instrumentation ? how to get it
> 
> thanks
> 

You mean the processor's L1/L2/L3 cache? SystemTap doesn't have access to the
performance monitoring hardware on the processors. You might look at the
Performance Counters for Linux (PCL) which has been pulled into the 2.6.31 kernel:

http://lwn.net/Articles/324775/
http://www.h-online.com/open/Kernel-Log-Main-development-phase-of-Linux-2-6-31-completed--/news/113614

The current PCL implementation doesn't have a interface available for the kernel
calls. This makes it a bit difficult for SystemTap to use it.

If you are talking about software caches in the kernel, you might be able to
find the appropriate functions to probe to allow systemtap to observe those
events. Something similar to the the vm.pagefault probe.

-Will

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

* question about cache miss
  2009-06-29 11:34           ` question about resource usage for each process tgh
@ 2009-07-02 13:21             ` tgh
  2009-07-06 19:16               ` William Cohen
  0 siblings, 1 reply; 10+ messages in thread
From: tgh @ 2009-07-02 13:21 UTC (permalink / raw)
  To: systemtap

Hi
	Does systemtap support cache miss instrumentation ? how to get it

thanks

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

end of thread, other threads:[~2009-07-06 19:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-29  8:24 A question on PPC32 chen HJ
2009-06-29  9:57 ` Ananth N Mavinakayanahalli
     [not found]   ` <79E6823080C67C4780654AFA9678580203B6E175@BLR-SJP-MBX01.wipro.com>
2009-06-29 10:18     ` Ananth N Mavinakayanahalli
2009-06-30  0:11       ` chen HJ
2009-06-30  9:13         ` Ananth N Mavinakayanahalli
2009-06-30 22:10           ` Jim Keniston
2009-07-01  0:00           ` Chen Hongjun-R66092
2009-07-02 13:21 ` question about cache miss tgh
  -- strict thread matches above, loose matches on Subject: below --
2009-06-26 21:12 monitoring files opened/closed by a process Bruno G. Sousa
2009-06-26 22:23 ` Malte Nuhn
2009-06-27  3:20   ` Bruno G. Sousa
2009-06-27 21:29     ` Mark Wielaard
     [not found]       ` <068101c9f85f$534d3480$f9e79d80$@ac.cn>
2009-06-29  6:04         ` 答复: " Mark Wielaard
2009-06-29 11:34           ` question about resource usage for each process tgh
2009-07-02 13:21             ` question about cache miss tgh
2009-07-06 19:16               ` William Cohen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).