[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] Linux Trace Toolkit and microblaze



Hi Alejandro,

Alejandro Lucero wrote:
During the rtlinux port to microblaze, I have used an ad-hoc kernel trace
system. I want to use this experience and effort to obtain a compatible
LTT trace toolkit, so we can use the current graph tools from LTT and
LTTng projects.

Any idea or commentary will be appreciated.

Sounds like it would be very useful.  Why not use LTTng as it is, rather
than re-implementing a compatible trace toolkit?

I have just done a preliminary study, but I think the key point is to use the same event/trace format used in LTT or LTTng (is it not the same?). Then we can use the visual tools from these projects.

How these event/trace points are implemented? I don't know how this is done usually, but I have the interrupts, system calls and context switches trace code in assembler (entry.S). Perhaps, I can use the usual implementations for other points as process creation/destruction, signals and dynamic memory requests.

From my quick glance at the LTTng patchsets, it hooks in at arch/.../kernel/entry.S, traps.c, all the usual places. There's some generic arch0independnt code that lives in drivers/LTT (or something like that), but I wouldn't expect any issues or need to "port" that.

A quick glance at the latest patch sets shows some arch-specific work
will be required, but given your time spent deep in the guts working on
RTLinux I'm sure you're up to the task!

The latest patch for 2.4 or 2.6?

I was refering to the latest patchsets for LTTng - which targets 2.6

I must say I'm a bit misinformed about which is the current state of 2.6 port, who is the maintainer, ...

Well, we're developing and maintaining a patchset against 2.6.19, shortly to be brought forward to 2.6.20/21, and will be making the push to kernel.org when the time is right.

If you want to, there's another commercial vendor whom you can pay some money, and they'll give you a 2.6.legacy kernel. Finally, there's some patches at sourceforge.net/projects/microblaze, also against 2.6.legacy The choice is yours.

Cheers,

John

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/