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
4e04c945
Commit
4e04c945
authored
Dec 21, 2017
by
yonghong-song
Committed by
GitHub
Dec 21, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1489 from r4f4/fix-ucalls-py3
ucalls: convert bytes to str
parents
1eee853c
99d14683
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
tools/lib/ucalls.py
tools/lib/ucalls.py
+4
-2
No files found.
tools/lib/ucalls.py
View file @
4e04c945
...
...
@@ -255,11 +255,13 @@ if args.syscalls:
def
get_data
():
# Will be empty when no language was specified for tracing
if
args
.
latency
:
data
=
list
(
map
(
lambda
kv
:
(
kv
[
0
].
clazz
+
"."
+
kv
[
0
].
method
,
data
=
list
(
map
(
lambda
kv
:
(
kv
[
0
].
clazz
.
decode
()
+
"."
+
\
kv
[
0
].
method
.
decode
(),
(
kv
[
1
].
num_calls
,
kv
[
1
].
total_ns
)),
bpf
[
"times"
].
items
()))
else
:
data
=
list
(
map
(
lambda
kv
:
(
kv
[
0
].
clazz
+
"."
+
kv
[
0
].
method
,
data
=
list
(
map
(
lambda
kv
:
(
kv
[
0
].
clazz
.
decode
()
+
"."
+
\
kv
[
0
].
method
.
decode
(),
(
kv
[
1
].
value
,
0
)),
bpf
[
"counts"
].
items
()))
...
...
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