From: Danny Serres Date: Thu, 9 Aug 2012 15:24:02 +0000 (-0400) Subject: Add lttng-ctl SWIG python bindings X-Git-Tag: v2.1.0-rc3~9 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=36907cb5a542b8eb01d95e1990894abd45e98bc0;hp=36907cb5a542b8eb01d95e1990894abd45e98bc0;p=lttng-tools.git Add lttng-ctl SWIG python bindings The lttng-tools Python module can be used to directly control the lttng-tools API inside Python, using 'import lttng'. Therefore, it becomes possible to create a trace, add events, start/stop tracing, destroy a session and so on from within Python. SWIG >= 2.0 is used to create the wrapper and its 'warning md variable unused' bug is patched in Makefile.am. In the interface file, struct and enum are directly copied from lttng.h (all changes must be made in both files). To install with python bingings, configure using --enable-python-bindings Please note that this extra feature is added in extras/ hence not supported and not yet shipped by default with the tarball or packages. Signed-off-by: Danny Serres Signed-off-by: Yannick Brosseau Signed-off-by: David Goulet ---