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
548332bb
Commit
548332bb
authored
May 29, 2018
by
yonghong-song
Committed by
GitHub
May 29, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1786 from andihit/zfsdist-py3-fix
zfsdist: fix for python3
parents
4e479815
0d08989d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
tools/zfsdist.py
tools/zfsdist.py
+4
-4
No files found.
tools/zfsdist.py
View file @
548332bb
...
...
@@ -137,10 +137,10 @@ if debug or args.ebpf:
b
=
BPF
(
text
=
bpf_text
)
# common file functions
if
BPF
.
get_kprobe_functions
(
'zpl_iter'
):
if
BPF
.
get_kprobe_functions
(
b
'zpl_iter'
):
b
.
attach_kprobe
(
event
=
"zpl_iter_read"
,
fn_name
=
"trace_entry"
)
b
.
attach_kprobe
(
event
=
"zpl_iter_write"
,
fn_name
=
"trace_entry"
)
elif
BPF
.
get_kprobe_functions
(
'zpl_aio'
):
elif
BPF
.
get_kprobe_functions
(
b
'zpl_aio'
):
b
.
attach_kprobe
(
event
=
"zpl_aio_read"
,
fn_name
=
"trace_entry"
)
b
.
attach_kprobe
(
event
=
"zpl_aio_write"
,
fn_name
=
"trace_entry"
)
else
:
...
...
@@ -148,10 +148,10 @@ else:
b
.
attach_kprobe
(
event
=
"zpl_write"
,
fn_name
=
"trace_entry"
)
b
.
attach_kprobe
(
event
=
"zpl_open"
,
fn_name
=
"trace_entry"
)
b
.
attach_kprobe
(
event
=
"zpl_fsync"
,
fn_name
=
"trace_entry"
)
if
BPF
.
get_kprobe_functions
(
'zpl_iter'
):
if
BPF
.
get_kprobe_functions
(
b
'zpl_iter'
):
b
.
attach_kretprobe
(
event
=
"zpl_iter_read"
,
fn_name
=
"trace_read_return"
)
b
.
attach_kretprobe
(
event
=
"zpl_iter_write"
,
fn_name
=
"trace_write_return"
)
elif
BPF
.
get_kprobe_functions
(
'zpl_aio'
):
elif
BPF
.
get_kprobe_functions
(
b
'zpl_aio'
):
b
.
attach_kretprobe
(
event
=
"zpl_aio_read"
,
fn_name
=
"trace_read_return"
)
b
.
attach_kretprobe
(
event
=
"zpl_aio_write"
,
fn_name
=
"trace_write_return"
)
else
:
...
...
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