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
/
example-api-test.py
diff --git
a/bindings/python/examples/example-api-test.py
b/bindings/python/examples/example-api-test.py
index 5846facd574603efff3e84a185f04719d89ca2c8..66754ba6912cc999b57e7783136223358a8b10fd 100644
(file)
--- a/
bindings/python/examples/example-api-test.py
+++ b/
bindings/python/examples/example-api-test.py
@@
-50,7
+50,7
@@
while(event is not None):
event.get_cycles(), event.get_name()))
if event.get_name() == "sched_switch":
event.get_cycles(), event.get_name()))
if event.get_name() == "sched_switch":
- prev_field = event.get_field("
_
prev_comm")
+ prev_field = event.get_field("prev_comm")
if prev_field is None:
print("ERROR: Missing prev_comm context info")
else:
if prev_field is None:
print("ERROR: Missing prev_comm context info")
else:
@@
-58,7
+58,7
@@
while(event is not None):
print("sched_switch prev_comm: {}".format(prev_comm))
if event.get_name() == "exit_syscall":
print("sched_switch prev_comm: {}".format(prev_comm))
if event.get_name() == "exit_syscall":
- ret_field = event.get_field("
_
ret")
+ ret_field = event.get_field("ret")
if ret_field is None:
print("ERROR: Unable to extract ret")
else:
if ret_field is None:
print("ERROR: Unable to extract ret")
else:
This page took
0.024189 seconds
and
4
git commands to generate.