projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove the unnecessary underscore prefix
[babeltrace.git]
/
bindings
/
python
/
examples
/
sched_switch.py
diff --git
a/bindings/python/examples/sched_switch.py
b/bindings/python/examples/sched_switch.py
index 83c191f813f7cd7c8b99e5cfd8751727548ba232..6196e486dc728334292740ebb1e92fd0924cee86 100644
(file)
--- a/
bindings/python/examples/sched_switch.py
+++ b/
bindings/python/examples/sched_switch.py
@@
-57,7
+57,7
@@
while event is not None:
break # Next event
# Getting PID
break # Next event
# Getting PID
- pid_field = event.get_field_with_scope(sco, "
_
pid")
+ pid_field = event.get_field_with_scope(sco, "pid")
pid = pid_field.get_int64()
if ctf.field_error():
pid = pid_field.get_int64()
if ctf.field_error():
@@
-70,43
+70,43
@@
while event is not None:
sco = event.get_top_level_scope(ctf.scope.EVENT_FIELDS)
# prev_comm
sco = event.get_top_level_scope(ctf.scope.EVENT_FIELDS)
# prev_comm
- field = event.get_field_with_scope(sco, "
_
prev_comm")
+ field = event.get_field_with_scope(sco, "prev_comm")
prev_comm = field.get_char_array()
if ctf.field_error():
print("ERROR: Missing prev_comm context info")
# prev_tid
prev_comm = field.get_char_array()
if ctf.field_error():
print("ERROR: Missing prev_comm context info")
# prev_tid
- field = event.get_field_with_scope(sco, "
_
prev_tid")
+ field = event.get_field_with_scope(sco, "prev_tid")
prev_tid = field.get_int64()
if ctf.field_error():
print("ERROR: Missing prev_tid context info")
# prev_prio
prev_tid = field.get_int64()
if ctf.field_error():
print("ERROR: Missing prev_tid context info")
# prev_prio
- field = event.get_field_with_scope(sco, "
_
prev_prio")
+ field = event.get_field_with_scope(sco, "prev_prio")
prev_prio = field.get_int64()
if ctf.field_error():
print("ERROR: Missing prev_prio context info")
# prev_state
prev_prio = field.get_int64()
if ctf.field_error():
print("ERROR: Missing prev_prio context info")
# prev_state
- field = event.get_field_with_scope(sco, "
_
prev_state")
+ field = event.get_field_with_scope(sco, "prev_state")
prev_state = field.get_int64()
if ctf.field_error():
print("ERROR: Missing prev_state context info")
# next_comm
prev_state = field.get_int64()
if ctf.field_error():
print("ERROR: Missing prev_state context info")
# next_comm
- field = event.get_field_with_scope(sco, "
_
next_comm")
+ field = event.get_field_with_scope(sco, "next_comm")
next_comm = field.get_char_array()
if ctf.field_error():
print("ERROR: Missing next_comm context info")
# next_tid
next_comm = field.get_char_array()
if ctf.field_error():
print("ERROR: Missing next_comm context info")
# next_tid
- field = event.get_field_with_scope(sco, "
_
next_tid")
+ field = event.get_field_with_scope(sco, "next_tid")
next_tid = field.get_int64()
if ctf.field_error():
print("ERROR: Missing next_tid context info")
# next_prio
next_tid = field.get_int64()
if ctf.field_error():
print("ERROR: Missing next_tid context info")
# next_prio
- field = event.get_field_with_scope(sco, "
_
next_prio")
+ field = event.get_field_with_scope(sco, "next_prio")
next_prio = field.get_int64()
if ctf.field_error():
print("ERROR: Missing next_prio context info")
next_prio = field.get_int64()
if ctf.field_error():
print("ERROR: Missing next_prio context info")
This page took
0.026077 seconds
and
4
git commands to generate.