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
6a0a7918
Commit
6a0a7918
authored
Jan 11, 2019
by
Teng Qin
Committed by
GitHub
Jan 11, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2135 from nasastry/python3_syscall_fix
syscall.py: Fixes python3 related error
parents
f2e063c2
3aebfadd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/python/bcc/syscall.py
src/python/bcc/syscall.py
+1
-1
No files found.
src/python/bcc/syscall.py
View file @
6a0a7918
...
@@ -378,7 +378,7 @@ try:
...
@@ -378,7 +378,7 @@ try:
# SYSCALL_NUM\tSYSCALL_NAME pairs.
# SYSCALL_NUM\tSYSCALL_NAME pairs.
out
=
subprocess
.
check_output
([
'ausyscall'
,
'--dump'
],
stderr
=
subprocess
.
STDOUT
)
out
=
subprocess
.
check_output
([
'ausyscall'
,
'--dump'
],
stderr
=
subprocess
.
STDOUT
)
# remove the first line of expected output
# remove the first line of expected output
out
=
out
.
split
(
'
\
n
'
,
1
)[
1
]
out
=
out
.
split
(
b
'
\
n
'
,
1
)[
1
]
syscalls
=
dict
(
map
(
_parse_syscall
,
out
.
strip
().
split
(
b'
\
n
'
)))
syscalls
=
dict
(
map
(
_parse_syscall
,
out
.
strip
().
split
(
b'
\
n
'
)))
except
Exception
as
e
:
except
Exception
as
e
:
if
platform
.
machine
()
==
"x86_64"
:
if
platform
.
machine
()
==
"x86_64"
:
...
...
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