Tests: Multi-trace stream intersection test
[babeltrace.git] / bindings / python / examples / babeltrace_and_lttng.py
index d837a53270e1e24a51c976c81d4a5292233d9f6d..651fa2da982a81ec06fc0c0aaeb92f074a884935 100644 (file)
 #
 # The above copyright notice and this permission notice shall be included in
 # all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+# SOFTWARE.
 
 
 # This script uses both lttng-tools and babeltrace
@@ -37,7 +45,7 @@ out_file = "babeltrace-lttng-trace-text-output.txt"
 
 import time
 try:
-    import babeltrace
+    import babeltrace.reader
     import lttng
 except ImportError:
     raise ImportError( "both babeltrace and lttng-tools "
@@ -101,7 +109,7 @@ if ret < 0:
 # BABELTRACE
 
 # Create TraceCollecion and add trace:
-traces = babeltrace.TraceCollection()
+traces = babeltrace.reader.TraceCollection()
 ret = traces.add_trace(trace_path + "/kernel", "ctf")
 if ret is None:
     raise BabeltraceError("Error adding trace")
This page took 0.024694 seconds and 4 git commands to generate.