Python-bindings: Move declaration bindings out of the _Definition class
[babeltrace.git] / bindings / python / examples / sched_switch.py
index 32d1ef8cd504f5b171f7cc61a5dc01fd8030b505..ce116c14b4f09cc85700763c57575ec0bf6361dd 100644 (file)
@@ -44,7 +44,7 @@ for event in traces.events:
        while True:
                if event.name == "sched_switch":
                        # Getting PID
-                       pid = event.field_with_scope("pid", scope.STREAM_EVENT_CONTEXT)
+                       pid = event.field_with_scope("pid", CTFScope.STREAM_EVENT_CONTEXT)
                        if pid is None:
                                print("ERROR: Missing PID info for sched_switch")
                                break # Next event
This page took 0.024331 seconds and 4 git commands to generate.