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
a5e2ce53
Commit
a5e2ce53
authored
Jun 27, 2016
by
ygrek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools: fix getting {ext4,btrfs}_file_operations address (ref #583)
parent
5c998acb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
0 deletions
+3
-0
tools/btrfsdist.py
tools/btrfsdist.py
+1
-0
tools/btrfsslower.py
tools/btrfsslower.py
+1
-0
tools/ext4dist.py
tools/ext4dist.py
+1
-0
No files found.
tools/btrfsdist.py
View file @
a5e2ce53
...
@@ -169,6 +169,7 @@ with open(kallsyms) as syms:
...
@@ -169,6 +169,7 @@ with open(kallsyms) as syms:
for
line
in
syms
:
for
line
in
syms
:
a
=
line
.
rstrip
().
split
()
a
=
line
.
rstrip
().
split
()
(
addr
,
name
)
=
(
a
[
0
],
a
[
2
])
(
addr
,
name
)
=
(
a
[
0
],
a
[
2
])
name
=
name
.
split
(
"
\
t
"
)[
0
]
if
name
==
"btrfs_file_operations"
:
if
name
==
"btrfs_file_operations"
:
ops
=
"0x"
+
addr
ops
=
"0x"
+
addr
break
break
...
...
tools/btrfsslower.py
View file @
a5e2ce53
...
@@ -251,6 +251,7 @@ with open(kallsyms) as syms:
...
@@ -251,6 +251,7 @@ with open(kallsyms) as syms:
for
line
in
syms
:
for
line
in
syms
:
a
=
line
.
rstrip
().
split
()
a
=
line
.
rstrip
().
split
()
(
addr
,
name
)
=
(
a
[
0
],
a
[
2
])
(
addr
,
name
)
=
(
a
[
0
],
a
[
2
])
name
=
name
.
split
(
"
\
t
"
)[
0
]
if
name
==
"btrfs_file_operations"
:
if
name
==
"btrfs_file_operations"
:
ops
=
"0x"
+
addr
ops
=
"0x"
+
addr
break
break
...
...
tools/ext4dist.py
View file @
a5e2ce53
...
@@ -149,6 +149,7 @@ with open(kallsyms) as syms:
...
@@ -149,6 +149,7 @@ with open(kallsyms) as syms:
ops
=
''
ops
=
''
for
line
in
syms
:
for
line
in
syms
:
(
addr
,
size
,
name
)
=
line
.
rstrip
().
split
(
" "
,
2
)
(
addr
,
size
,
name
)
=
line
.
rstrip
().
split
(
" "
,
2
)
name
=
name
.
split
(
"
\
t
"
)[
0
]
if
name
==
"ext4_file_operations"
:
if
name
==
"ext4_file_operations"
:
ops
=
"0x"
+
addr
ops
=
"0x"
+
addr
break
break
...
...
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