[ltt-dev] LTTng kernel patches not patching successfully

Mathieu Desnoyers compudj at krystal.dyndns.org
Sun Jul 19 21:08:55 EDT 2009


* Ajit R (ajitrzid at yahoo.com) wrote:
> 
> --- On Fri, 7/17/09, Mathieu Desnoyers <compudj at krystal.dyndns.org> wrote:
> 
> > From: Mathieu Desnoyers <compudj at krystal.dyndns.org>
> > Subject: Re: [ltt-dev] LTTng kernel patches not patching successfully
> > To: "Ajit R" <ajitrzid at yahoo.com>
> > Cc: ltt-dev at lists.casi.polymtl.ca
> > Date: Friday, July 17, 2009, 7:13 PM
> > * Ajit R (ajitrzid at yahoo.com)
> > wrote:
> > > 
> > > Hello
> > >   I want to try out LTT on my x86 32
> > bit machine before I move to an ARM target. The tried the
> > following steps
> > > 1) Download kernel from kernel.org. Version
> > linux-2.6.23.tar.bz2
> > > 2) Patched with the "mm" patch - 2.6.23-mm1.bz2
> > 
> > I would recommend staying with "stable" kernels rather than
> > experimental
> > -mm kernels when possible.
> > 
> > > 3) Tried patching
> > "patch-2.6.23-mm1-lttng-0.10-pre14.tar.bz2" to the mm1
> > kernel tree. This fails with multiple rejects.
> > > 4) Tried patching
> > "patch-2.6.23-mm1-lttng-0.10-pre7.tar.bz2". This also fails
> > with multiple rejects.
> > > 5) Patched the vanilla 2.6.23 kernel to 2.6.30.
> > > 6) Also tried : "patch-2.6.30-lttng-0.148.tar.bz2" 
> > >     This fails too with multiple
> > rejects.
> > > Downloaded patches from "http://ltt.polymtl.ca/files/lttng/".
> > > 
> > > Is this normal or am I doing something wrong?
> > 
> > Make sure to review the LTTng manual on the lttng.org
> > website,
> > 
> > The 2.6.30 patch should work. Can you paste the whole
> > sequence of:
> > 
> > wget...
> > extract...
> > and the commands you use to apply the patchset, with the
> > error you get?
> > 
> > Thanks,
> > 
> > Mathieu
> > 
> > > TIA
> > > Ajit
> > > 
> > > 
> > >       
> > > 
> > > _______________________________________________
> > > ltt-dev mailing list
> > > ltt-dev at lists.casi.polymtl.ca
> > > http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
> > > 
> > 
> > -- 
> > Mathieu Desnoyers
> > OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F 
> > BA06 3F25 A8FE 3BAE 9A68
> > 
> 
> 
> Hello Mathieu
>   Thanks for the mail. 
>  2.6.23 is required because the aim is to run LTTng on an uclinux enabled ARMv6 platform. Most of the patches on the lttng.org are for the mm1 branch. Once I know more about the hardware I will need to scope this out. Any thoughts ?
>   I thought this patch system was just like the kernel patch system. 
> So I was using:  
>       cd linux_2.6.30_kernel_directory
>       bzcat patch-2.6.30-lttng-0.148.tar.bz2 | patch -p1
> This was failing and was the mistake.
> 
> The correct way is the  manual's way of extracting.
>       bzip2 -cd patch-2.6.X-lttng-0.x.xx.tar.bz2 | tar xvof -
> This creates a patch directory containing the individual patches.
>       grep -v "^#" series | grep -v "^$" > series.filter
> And a script then patches the linux-2.6.30 kernel with the LTTng ones in sequence.
>       make xconfig
> Build all LTT components statically into the kernel.( I can send you the .config if you like)
> Build and install ltt-control-0.68-19062009 and lttv-0.12.17-01072009.
> Reboot into new kernel.
> Use debugfs by mounting
>      mount -t debugfs none  /mnt/debugfs
> One problem here
>   lttv-gui starts the trace but does not log much. Any clues ?
> 

run ltt-armall before starting tracing with either lttctl or lttv-gui.

Mathieu

> Thanks
> Ajit
> 
> 
> 
> 

-- 
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68




More information about the lttng-dev mailing list