Skip to content

Commit

Permalink
Explain possible reason of an error in scripts that rely on /proc/kal…
Browse files Browse the repository at this point in the history
…lsyms (fixes iovisor#1391)
  • Loading branch information
afiskon committed Oct 23, 2017
1 parent 648554d commit 4a950bf
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 4a950bf

Please sign in to comment.