Skip to content

Commit

Permalink
Merge pull request iovisor#1408 from afiskon/master
Browse files Browse the repository at this point in the history
Explain possible reason of an error in scripts that rely on /proc/kallsyms (fixes iovisor#1391)
  • Loading branch information
yonghong-song authored Oct 24, 2017
2 parents 648554d + 4a950bf commit ae194a1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions tools/btrfsdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@
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))
Expand Down
1 change: 1 addition & 0 deletions tools/btrfsslower.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@
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:
Expand Down
1 change: 1 addition & 0 deletions tools/ext4dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@
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))
Expand Down
1 change: 1 addition & 0 deletions tools/ext4slower.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@
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:
Expand Down

0 comments on commit ae194a1

Please sign in to comment.