Re: [PATCH -tip tracing/kprobes] PPC: Powerpc port of the kprobe-based event tracer

2009-12-22 Thread Michael Neuling
In message <4b317324.3000...@redhat.com> you wrote: > Michael Neuling wrote: > > In message <4b2b934c.1060...@redhat.com> you wrote: > >> > >> > >> Mahesh Jagannath Salgaonkar wrote: > >>> Michael Neuling wrote: > In message <4b29ee5f.9020...@linux.vnet.ibm.com> you wrote: > > Hi Michael

Re: [PATCH -tip tracing/kprobes] PPC: Powerpc port of the kprobe-based event tracer

2009-12-22 Thread Masami Hiramatsu
Michael Neuling wrote: > In message <4b2b934c.1060...@redhat.com> you wrote: >> >> >> Mahesh Jagannath Salgaonkar wrote: >>> Michael Neuling wrote: In message <4b29ee5f.9020...@linux.vnet.ibm.com> you wrote: > Hi Michael, > > Michael Neuling wrote: >>> + * regs_get_argument_nth

Re: [PATCH -tip tracing/kprobes] PPC: Powerpc port of the kprobe-based event tracer

2009-12-20 Thread Michael Neuling
In message <4b2b0ebf.5040...@linux.vnet.ibm.com> you wrote: > Michael Neuling wrote: > > In message <4b29ee5f.9020...@linux.vnet.ibm.com> you wrote: > >> Hi Michael, > >> > >> Michael Neuling wrote: > + * regs_get_argument_nth() - get Nth argument at function call > + * @regs: pt_re

Re: [PATCH -tip tracing/kprobes] PPC: Powerpc port of the kprobe-based event tracer

2009-12-20 Thread Michael Neuling
In message <4b2b934c.1060...@redhat.com> you wrote: > > > Mahesh Jagannath Salgaonkar wrote: > > Michael Neuling wrote: > >> In message <4b29ee5f.9020...@linux.vnet.ibm.com> you wrote: > >>> Hi Michael, > >>> > >>> Michael Neuling wrote: > > + * regs_get_argument_nth() - get Nth argument at

Re: [PATCH -tip tracing/kprobes] PPC: Powerpc port of the kprobe-based event tracer

2009-12-18 Thread Masami Hiramatsu
Mahesh Jagannath Salgaonkar wrote: > Michael Neuling wrote: >> In message <4b29ee5f.9020...@linux.vnet.ibm.com> you wrote: >>> Hi Michael, >>> >>> Michael Neuling wrote: > + * regs_get_argument_nth() - get Nth argument at function call > + * @regs:pt_regs which contains registers at f

Re: [PATCH -tip tracing/kprobes] PPC: Powerpc port of the kprobe-based event tracer

2009-12-17 Thread Mahesh Jagannath Salgaonkar
Michael Neuling wrote: In message <4b29ee5f.9020...@linux.vnet.ibm.com> you wrote: Hi Michael, Michael Neuling wrote: + * regs_get_argument_nth() - get Nth argument at function call + * @regs: pt_regs which contains registers at function entry. + * @n: argument number. + * + * reg

Re: [PATCH -tip tracing/kprobes] PPC: Powerpc port of the kprobe-based event tracer

2009-12-17 Thread Michael Neuling
In message <4b29ee5f.9020...@linux.vnet.ibm.com> you wrote: > Hi Michael, > > Michael Neuling wrote: > >> Index: linux-2.6-tip/arch/powerpc/include/asm/ptrace.h > >> === > >> --- linux-2.6-tip.orig/arch/powerpc/include/asm/ptrace.h >

Re: [PATCH -tip tracing/kprobes] PPC: Powerpc port of the kprobe-based event tracer

2009-12-17 Thread Michael Neuling
In message <4b29c3e3.3060...@redhat.com> you wrote: > Hi Michael, > > Michael Neuling wrote: > >> + > >> +static const struct pt_regs_offset regoffset_table[] = { > >> + REG_OFFSET_NAME(gpr[0]), > >> + REG_OFFSET_NAME(gpr[1]), > >> + REG_OFFSET_NAME(gpr[2]), > >> + REG_OFFSET_NAME(gpr[3]), > >

Re: [PATCH -tip tracing/kprobes] PPC: Powerpc port of the kprobe-based event tracer

2009-12-17 Thread Mahesh Jagannath Salgaonkar
Hi Michael, Michael Neuling wrote: Index: linux-2.6-tip/arch/powerpc/include/asm/ptrace.h === --- linux-2.6-tip.orig/arch/powerpc/include/asm/ptrace.h +++ linux-2.6-tip/arch/powerpc/include/asm/ptrace.h @@ -83,6 +83,7 @@ struct pt_r

Re: [PATCH -tip tracing/kprobes] PPC: Powerpc port of the kprobe-based event tracer

2009-12-16 Thread Benjamin Herrenschmidt
On Thu, 2009-12-17 at 13:22 +1100, Michael Neuling wrote: > > + * The @offset is the offset of the register in struct pt_regs. > > + * If @offset is bigger than MAX_REG_OFFSET, this returns 0. > > + */ > > +static inline unsigned long regs_get_register(struct pt_regs *regs, > > +

Re: [PATCH -tip tracing/kprobes] PPC: Powerpc port of the kprobe-based event tracer

2009-12-16 Thread Masami Hiramatsu
Hi Michael, Michael Neuling wrote: >> + >> +static const struct pt_regs_offset regoffset_table[] = { >> +REG_OFFSET_NAME(gpr[0]), >> +REG_OFFSET_NAME(gpr[1]), >> +REG_OFFSET_NAME(gpr[2]), >> +REG_OFFSET_NAME(gpr[3]), >> +REG_OFFSET_NAME(gpr[4]), >> +REG_OFFSET_NAME(gpr[5]),

Re: [PATCH -tip tracing/kprobes] PPC: Powerpc port of the kprobe-based event tracer

2009-12-16 Thread Michael Neuling
In message <20091216043933.ga9...@in.ibm.com> you wrote: > This patch ports the kprobe-based event tracer to powerpc. This patch > is based in x86 port. This brings powerpc on par with x86. > > Port the following API's to ppc for accessing registers and stack entries > from pt_regs. > > - regs_qu

[PATCH -tip tracing/kprobes] PPC: Powerpc port of the kprobe-based event tracer

2009-12-15 Thread Mahesh Salgaonkar
This patch ports the kprobe-based event tracer to powerpc. This patch is based in x86 port. This brings powerpc on par with x86. Port the following API's to ppc for accessing registers and stack entries from pt_regs. - regs_query_register_offset(const char *name) Query the offset of "name" reg