[lttng-dev] introduction & usage of LTTNG in machinekit

Michael Haberler mail17 at mah.priv.at
Sat Mar 28 04:33:17 EDT 2015


> Am 27.03.2015 um 19:35 schrieb Michel Dagenais <michel.dagenais at polymtl.ca>:
>> I've started integrating the build support and am running into my first
>> problems. So, that's the context of my following questions - thanks in
>> advance for guiding me through any blunders.
> This is an excellent application for LTTng. My group has been looking for good use cases of real-time applications. We have a significant expertise with Linux for real-time and PREEMPT-RT. We could easily help you with the machinekit tracing: kernel and user-space instrumentation, specific views and analysis for this application... 

wrote the first UST tracepoints, got them to work just fine - no surprises (congratulations on the manual and general usability!). I'm building them into a shared library for now.

this I'm unsure how to deal with:

- is there a complete example out-of-tree kernel module instrumented for LTTng? I worked through Steve Rostedt's sillymod (http://lwn.net/Articles/379903 ff) but am fuzzy on "Adding the LTTng adaptation layer" - is the example from the manual available in toto somewhere?

- much of the machinekit RT code (HAL library and components) can be compiled as userland shared objects (Posix, RT-PREEMPP, Xenomai threads) or kernel modules (RTAI, and the deprecated Xenomai kernel API), sitting ontop of an abstracted realtime API ("RTAPI"). Ideally the tracepoints would work unchanged except for the different context. The manual naturally assumes an either-or context. Am I out on a limb here ;-? How would I bring in the tracepoint definitions in a kernel context - as a separate module maybe or linked into each using module?

- we cannot assume that lttng is available when building machinekit packages at least for now, meaning we likely need shim macro definitions and possibly fake header files to adjust for the lacking lttng files. Any examples I can follow?


- Michael

More information about the lttng-dev mailing list