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
4a950bfe
Commit
4a950bfe
authored
Oct 23, 2017
by
Aleksander Alekseev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Explain possible reason of an error in scripts that rely on /proc/kallsyms (fixes #1391)
parent
648554df
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
0 deletions
+4
-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
tools/ext4slower.py
tools/ext4slower.py
+1
-0
No files found.
tools/btrfsdist.py
View file @
4a950bfe
...
...
@@ -175,6 +175,7 @@ with open(kallsyms) as syms:
break
if
ops
==
''
:
print
(
"ERROR: no btrfs_file_operations in /proc/kallsyms. Exiting."
)
print
(
"HINT: the kernel should be built with CONFIG_KALLSYMS_ALL."
)
exit
()
bpf_text
=
bpf_text
.
replace
(
'BTRFS_FILE_OPERATIONS'
,
ops
)
bpf_text
=
bpf_text
.
replace
(
'FACTOR'
,
str
(
factor
))
...
...
tools/btrfsslower.py
View file @
4a950bfe
...
...
@@ -268,6 +268,7 @@ with open(kallsyms) as syms:
break
if
ops
==
''
:
print
(
"ERROR: no btrfs_file_operations in /proc/kallsyms. Exiting."
)
print
(
"HINT: the kernel should be built with CONFIG_KALLSYMS_ALL."
)
exit
()
bpf_text
=
bpf_text
.
replace
(
'BTRFS_FILE_OPERATIONS'
,
ops
)
if
min_ms
==
0
:
...
...
tools/ext4dist.py
View file @
4a950bfe
...
...
@@ -155,6 +155,7 @@ with open(kallsyms) as syms:
break
if
ops
==
''
:
print
(
"ERROR: no ext4_file_operations in /proc/kallsyms. Exiting."
)
print
(
"HINT: the kernel should be built with CONFIG_KALLSYMS_ALL."
)
exit
()
bpf_text
=
bpf_text
.
replace
(
'EXT4_FILE_OPERATIONS'
,
ops
)
bpf_text
=
bpf_text
.
replace
(
'FACTOR'
,
str
(
factor
))
...
...
tools/ext4slower.py
View file @
4a950bfe
...
...
@@ -262,6 +262,7 @@ with open(kallsyms) as syms:
break
if
ops
==
''
:
print
(
"ERROR: no ext4_file_operations in /proc/kallsyms. Exiting."
)
print
(
"HINT: the kernel should be built with CONFIG_KALLSYMS_ALL."
)
exit
()
bpf_text
=
bpf_text
.
replace
(
'EXT4_FILE_OPERATIONS'
,
ops
)
if
min_ms
==
0
:
...
...
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