[lttng-dev] Extract lttng trace from kernel coredump

David Goulet dgoulet at efficios.com
Tue Jan 14 15:44:00 EST 2014


On 14 Jan (14:39:43), Corey Minyard wrote:
> On 01/14/2014 12:42 PM, David Goulet wrote:
> > On 13 Jan (16:39:47), Corey Minyard wrote:
> >> I'm working on a feature to allow an lttng trace to be extracted from a
> >> kernel coredump, and I'm wondering the best way to proceed.  I've looked
> >> at extracting from the existing data structures, but that would require
> >> something to always have a trace file open and it looks more than a
> >> little complicated.  I was thinking instead of having a different trace
> >> channel for configuring this coredump and some globals to point to the
> >> various data structures.  Would that be the best way to pursue this?  Is
> >> there a better way, perhaps?
> > Oh yes we do actually already have a way to do that :)
> >
> > Please see:
> > https://git.lttng.org/?p=lttng-tools.git;a=tree;f=extras/core-handler;h=29ded89a71fd36e159d671ca1f405cea394f8683;hb=HEAD
> >
> > With the snapshot feature, it's quite easy to do that. Hope that helps
> > you with what you are trying to achieve.
> 
> I did see that, but it seems to be for an application coredump.  I was
> looking for something that would work for a kernel coredump.  So that if
> the kernel crashes, you can use kdump to extract the kernel core and
> then extract the LTT buffers from that.  The idea is that if the kernel
> crashes, you can get some idea of what was happening before the crash.

Oh I misunderstood, my appology. For that I have no idea how to proceed.
Mathieu Desnoyers might be able to answer that since I'm pretty sure it
has been at some point in time discussed.

CCing him.

Cheers!
David

> 
> 
> Thanks,
> 
> -corey
> 
> > Cheers!
> > David
> >
> >> Thanks,
> >>
> >> -corey
> >>
> >> _______________________________________________
> >> lttng-dev mailing list
> >> lttng-dev at lists.lttng.org
> >> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 603 bytes
Desc: Digital signature
URL: <http://lists.lttng.org/pipermail/lttng-dev/attachments/20140114/b3e650aa/attachment.pgp>


More information about the lttng-dev mailing list