* Sébastien Barthélémy ([email protected]) wrote: > Hello, > > I'm currently tracking a bug which causes a full system freeze. It > occurs during long running tests (after a few hours). > > The system kernel is too old for being traced with LTTng, but we have a few > UST tracepoints which I used while tracking another bug last year. > > I would welcome any advice regarding a methodology to catch it. > > My best idea yet is to > > 1. add tracepoints where we suspect the bug to reside > 2. setup lttng to record in flight recorder mode
Unfortunately, even though you can set the kernel and UST tracer channels to "--overwrite" mode, lttng-tools does not support flight recorder mode yet. This feature is planned for 2.1 or 2.2. It means that you'd have to manually stop the consumer daemon while you gather data, and only unstop it when you want to dump your buffers, if you want to "simulate" a kind-of-working flight recorder mode. > 3. trig the trace dump when a problem occurs > > Right now, we generate not much traces, so I can just skip steps 2 and 3. > However, I'm thinking about having having LTTng always on in the > future, and > thus I would need to use the flight recorder mode. > > I have not found explanations or examples on how to trig the trace dump > from software. Is there any? We plan to implement a --snapshot command, to take a snapshot of a flight recorder trace. > I had a look at lttng/ust-ctl.h, which seems to be the one header I need. > > I also found an old article where Mathieu was talking about "triggerring > tracepoints", does it exist? Not at this point. > > I also saw some commits about a "filter" feature. This sound interesting > can someone explain in a few words what this is about? Filtering out events based on a filtering expression, directly at the trace source, e.g.: lttng enable-event 'ust_tests_hello:tptest' --filter 'intfield>500 && intfield<503' -u will only record events for which the "intfield" has values within the requested range. One future step, once we get the snapshot command in, will be to implement actions (or triggers), so the evaluation of some filter expression can lead to, e.g., taking a flight recorder buffer snapshot. Hoping this helps, Thanks, Mathieu > > Cheers > > -- Sebastian > > _______________________________________________ > lttng-dev mailing list > [email protected] > http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev -- Mathieu Desnoyers Operating System Efficiency R&D Consultant EfficiOS Inc. http://www.efficios.com _______________________________________________ lttng-dev mailing list [email protected] http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
