Community
Participate
Working Groups
The current eclipse LTTng implementation only support "the latest" trace format. However, this mean that older trace format become imcompatible as soon as a new trace format is released. To fix this, the JNI implementation should be able to differenciate the trace format and to load the correct one.
Created attachment 159238 [details] First implementation to support multiple trace version This is the first imlementation to support multiple version of Lttng traces. The code kindly abuse of the java abstract classes to avoid code duplication so it should be easy to support multiple traces with almost no change to the code but by allowing changes to be made if needed for a certain version. Currently, this code will not do much more than what we do right now (i.e. will not support any but the latest trace version) because of some missing call and functions in the C library. Note : For the patched code to work, the new package "org.eclipse.linuxtools.lttng.jni" will need to be checkouted in the workspace.
Created attachment 159337 [details] Make the multiple version support is transparent Add missing part to make the new "multiple version of trace" changes transparent. In other word, the architecture is ready but will not do anything for now, as the C library need to be modified prior to it. This patch make sure the JNI keep working transparently for the users; it should be removed as soon the C library is done.
Created attachment 161905 [details] Activate the support for multiple trace version Finally activate the support for the multiple trace versions. The user will need to recompile the latest C library, details will be updated in the Help files as well.
Created attachment 161906 [details] Update the help files to reflect the change about multiple trace support Update the help files, so the user know he needs to compile the latest C library. Also add some "bug" informations in the help so the user canunderstand why fails if he does not have the correct version installed.
Created attachment 161907 [details] UPDATED : Activate the support for multiple trace version (previous patch included unrelated changes)
Fixed and committed. Drawback : user now MUST use LTTv library version from http://git.dorsal.polymtl.ca/?p=liblttngtrace.git;a=summary as the changes are not mainline yet. Also, a version of LTTv must be compiled for each trace version that need to be supported.
Released in a previous delivery.