Lttng on 2.6.12 arm
karthikeyan.s <[email protected]> Thu, 6 Sep 2007 21:18:15 +0530
| Newsgroups | gmane.linux.kernel.tracing |
|---|---|
| Message-ID | <[email protected]> |
I have been working on getting lttng to work on 2.6.12 kernel and arm
machine.
Has anyone got lttng to work on 2.6.12? if so, can they please show the way.
I am currently debugging the app (after all the headbanging with the patches
to get the kernel compile).
When i try to run
lttctl -n trace -d -l /mnt/relayfs/ltt -t /tmp/trace
I get Create Trace error:Failed to send netlinkk message : illegal seek
('sendto' gives it as connection refused (used perror)).
I am able to mount relayfs (i get ltt folder inside /mnt/relayfs)
I am summarising whatever i have done here:
Note:
I have been hunting and trying to find a proper patch. For example. When I
apply patch : http://ltt.polymtl.ca/lttng/patch-2.6.12-rc4-mm2-lttng-0.4.bz2.
I get #include<ltt-events.h>
in arch/arm/kernel/process.c irq.c etc. And this header file is not there
in the patch. Hence i started to gather patches that match well.
I hunted for patches that match well with each other. I got arm related
patch for 2.6.13* from
http://www.rpsys.net/openzaurus/patches/archive/ltt-arm-r0.patch (This patch
also solved the ltt-events.h problem)
1) i apply relayfs.patch.
2) Then i apply two patches that fix the backing_dev inode.c problem
and oversized events problem in relay.c (relay_switch_subbuf)
http://www.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.12-rc2/2.6.12-rc2-mm1/broken-out/relayfs-backing_dev-fix.patch
.
http://www.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.12-rc2/2.6.12-rc2-mm1/broken-out/relayfs-properly-handle-oversized-events.patch
3) Then i apply the
http://ltt.polymtl.ca/lttng/patch-2.6.12-rc4-mm2-lttng-0.4.bz2 patch.
4) Then the arm patch
http://www.rpsys.net/openzaurus/patches/archive/ltt-arm-r0.patch.
There is no cmpxchg after this, so I used the recent kernels to get the
atomic_cmpxchg() function. I read in teh mailing list that atomic_cmpxchg()
is enough (other than cmpxchg) for arm.
It would be great if i can get a quick reply.
Thanks
karthik
_______________________________________________
Ltt-dev mailing list
[email protected]
http://listserv.shafik.org/mailman/listinfo/ltt-dev