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
b3347027
Commit
b3347027
authored
Oct 12, 2017
by
Brendan Gregg
Committed by
GitHub
Oct 12, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1388 from sandip4n/fix-tools-syscount
Fix 'tools/syscount' from using incorrect fallback values
parents
5054de51
a068a034
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
tools/syscount.py
tools/syscount.py
+5
-1
No files found.
tools/syscount.py
View file @
b3347027
...
...
@@ -15,6 +15,7 @@ import argparse
import
itertools
import
subprocess
import
sys
import
platform
if
sys
.
version_info
.
major
<
3
:
izip_longest
=
itertools
.
izip_longest
...
...
@@ -362,7 +363,10 @@ try:
out
=
subprocess
.
check_output
(
'ausyscall --dump | tail -n +2'
,
shell
=
True
)
syscalls
=
dict
(
map
(
parse_syscall
,
out
.
strip
().
split
(
'
\
n
'
)))
except
Exception
as
e
:
pass
if
platform
.
machine
()
==
"x86_64"
:
pass
else
:
raise
Exception
(
"ausyscall: command not found"
)
parser
=
argparse
.
ArgumentParser
(
description
=
"Summarize syscall counts and latencies."
)
...
...
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