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
79758cc1
Commit
79758cc1
authored
Jun 22, 2018
by
Jürgen Hötzel
Committed by
yonghong-song
Jun 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Decode C strings into Python strings (#1844)
Leftover from #986.
parent
ee9f0e0a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
tools/zfsslower.py
tools/zfsslower.py
+4
-4
No files found.
tools/zfsslower.py
View file @
79758cc1
...
...
@@ -265,12 +265,12 @@ def print_event(cpu, data, size):
if
(
csv
):
print
(
"%d,%s,%d,%s,%d,%d,%d,%s"
%
(
event
.
ts_us
,
event
.
task
,
event
.
pid
,
type
,
event
.
size
,
event
.
offset
,
event
.
delta_us
,
event
.
file
))
event
.
ts_us
,
event
.
task
.
decode
()
,
event
.
pid
,
type
,
event
.
size
,
event
.
offset
,
event
.
delta_us
,
event
.
file
.
decode
()
))
return
print
(
"%-8s %-14.14s %-6s %1s %-7s %-8d %7.2f %s"
%
(
strftime
(
"%H:%M:%S"
),
event
.
task
,
event
.
pid
,
type
,
event
.
size
,
event
.
offset
/
1024
,
float
(
event
.
delta_us
)
/
1000
,
event
.
file
))
event
.
task
.
decode
()
,
event
.
pid
,
type
,
event
.
size
,
event
.
offset
/
1024
,
float
(
event
.
delta_us
)
/
1000
,
event
.
file
.
decode
()
))
# initialize BPF
b
=
BPF
(
text
=
bpf_text
)
...
...
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