Re: Dynamic-ftrace not working in PlayStation3

2009-02-04 Thread Benjamin Herrenschmidt
> OK, I've been able to reproduce it. It looks like the assumptions of the > trampoline that I've made is not correct if the size of the module is over > some limit. I had to make usb-core into a module, and I see the same > bug. > > I'll take a deeper look into it. Thanks ! I've been a bit

Re: Dynamic-ftrace not working in PlayStation3

2009-02-04 Thread Steven Rostedt
On Sat, 31 Jan 2009, Arnd Bergmann wrote: > On Saturday 31 January 2009, Geoff Levand wrote: > > > > > > So I take it that the above showed that the code worked for some? > > > > In my trials it blows up on the first load_module() call, and for my > > config that was usbcore: > > I looked into

Re: Dynamic-ftrace not working in PlayStation3

2009-02-02 Thread Geert Uytterhoeven
On Sun, 1 Feb 2009, Remis wrote: > Complementing what Arnd said, we got the dynamic ftrace to work. Just > changed 4 things in the *menuconfig*. > Before these were built as modules (this is the default I guess): > CONFIG_USB=m > CONFIG_SOUND=m > CONFIG_SND=m > CONFIG_SND_USB_AUDIO=m > > Then got

Re: Dynamic-ftrace not working in PlayStation3

2009-02-01 Thread Remis
Complementing what Arnd said, we got the dynamic ftrace to work. Just changed 4 things in the *menuconfig*. Before these were built as modules (this is the default I guess): CONFIG_USB=m CONFIG_SOUND=m CONFIG_SND=m CONFIG_SND_USB_AUDIO=m Then got them built into the kernel: CONFIG_USB=y CONFIG_SOU

Re: Dynamic-ftrace not working in PlayStation3

2009-01-31 Thread Arnd Bergmann
On Saturday 31 January 2009, Geoff Levand wrote: > > > > So I take it that the above showed that the code worked for some? > > In my trials it blows up on the first load_module() call, and for my > config that was usbcore: I looked into it some more with Remis yesterday, and we got ftrace workin

Re: Dynamic-ftrace not working in PlayStation3

2009-01-30 Thread Steven Rostedt
[ added Ben and Paul to Cc, since they helped me write the code ] On Fri, 30 Jan 2009, Geoff Levand wrote: > Hi, > > I did a bit of work on this today. > > Steven Rostedt wrote: > >> > ip:d0045aec jumps to d0046340 r2: d0050c00 > >> > 3d82 398c5740 5740 toc: d00

Re: Dynamic-ftrace not working in PlayStation3

2009-01-30 Thread Geoff Levand
Hi, I did a bit of work on this today. Steven Rostedt wrote: >> > ip:d0045aec jumps to d0046340 r2: d0050c00 >> > 3d82 398c5740 5740 toc: d0046360 c000 7cac >> > ip:d00458d0 jumps to d0046340 r2: d0050c00 >> > 3d82 398c57

Re: Dynamic-ftrace not working in PlayStation3

2009-01-29 Thread Michael Ellerman
On Thu, 2009-01-29 at 22:38 -0500, Steven Rostedt wrote: > On Thu, 29 Jan 2009, Geoff Levand wrote: > > > > > > > //* > > > ip:d0045aec jumps to d004

Re: Dynamic-ftrace not working in PlayStation3

2009-01-29 Thread Steven Rostedt
On Thu, 29 Jan 2009, Geoff Levand wrote: > > > > //* > > ip:d0045aec jumps to d0046340 r2: d0050c00 > > 3d82 398c5740 5740 toc: d000

Re: Dynamic-ftrace not working in PlayStation3

2009-01-29 Thread Geoff Levand
Hi, Remis Lima Baima wrote: > Hi to all. I was tracing a bug in the snd_usb_audio driver > (PlayStation 3, Kernel 2.6.29-rc2, > git://git.kernel.org/pub/scm/linux/kernel/git/geoff/ps3-linux.git) and > for that I tried to use the "dynamic ftrace" to get less debug output. > But it did not work at a