* 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; 8+ 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] 8+ 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; 8+ 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] 8+ messages in thread
[parent not found: <79E6823080C67C4780654AFA9678580203B6E175@BLR-SJP-MBX01.wipro.com>]
* 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; 8+ 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] 8+ 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; 8+ 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] 8+ 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; 8+ 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] 8+ 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; 8+ 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] 8+ 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; 8+ 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] 8+ 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; 8+ 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] 8+ messages in thread
end of thread, other threads:[~2009-07-02 13:21 UTC | newest] Thread overview: 8+ 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
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).