Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bcc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
bcc
Commits
2febc297
Commit
2febc297
authored
Feb 13, 2017
by
Sasha Goldshtein
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trace: Exit with nonzero return code on error
parent
f7ab4431
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
tools/trace.py
tools/trace.py
+5
-2
No files found.
tools/trace.py
View file @
2febc297
...
...
@@ -691,10 +691,13 @@ trace 'p::SyS_nanosleep(struct timespec *ts) "sleep for %lld ns", ts->tv_nsec'
self
.
_attach_probes
()
self
.
_main_loop
()
except
:
exc_info
=
sys
.
exc_info
()
sys_exit
=
exc_info
[
0
]
is
SystemExit
if
self
.
args
.
verbose
:
traceback
.
print_exc
()
elif
sys
.
exc_info
()[
0
]
is
not
SystemExit
:
print
(
sys
.
exc_info
()[
1
])
elif
not
sys_exit
:
print
(
exc_info
[
1
])
exit
(
0
if
sys_exit
else
1
)
if
__name__
==
"__main__"
:
Tool
().
run
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment