Add alias for bcc tools to run in docker container#1278
Add alias for bcc tools to run in docker container#1278pothos merged 2 commits intoflatcar-archive:mainfrom aniruddha2000:aniruddha/add-alias-sysstat-bcc-tools
Conversation
|
Still getting error for the alias cannot attach kprobe, probe entry may not exist
Traceback (most recent call last):
File "/usr/share/bcc/tools/ext4dist", line 205, in <module>
b.attach_kprobe(event="ext4_file_write_iter", fn_name="trace_entry")
File "/usr/lib/python2.7/dist-packages/bcc/__init__.py", line 834, in attach_kprobe
(fn_name, event))
Exception: Failed to attach BPF program trace_entry to kprobe ext4_file_write_iterfor alias cannot attach kprobe, probe entry may not exist
Traceback (most recent call last):
File "/usr/share/bcc/tools/ext4slower", line 318, in <module>
b.attach_kprobe(event="ext4_file_write_iter", fn_name="trace_write_entry")
File "/usr/lib/python2.7/dist-packages/bcc/__init__.py", line 834, in attach_kprobe
(fn_name, event))
Exception: Failed to attach BPF program trace_write_entry to kprobe ext4_file_write_iter |
|
@pothos would you like to build an image and test it :) |
|
Thanks! |
|
@pothos then after your build if those commands are also not working then would you like me to remove those aliases? |
|
In general setting up the alias works well, but not for the root user which has no Yes, please remove the two aliases that don't work. |
|
In general do we have any specific implementation of the root |
|
Thanks, there is nothing set up for the root bashrc but I see no problem in adding it (edit: I mean, using the same as for the regular user) |
Add alias for bcc tools to run in docker container
Added alias for bcc tool packages
tcpretrans tcpconnect tcpaccept biolatency ext4slower ext4distto run necessary debug toolsTesting done
emerge-amd64-usr app-shells/bash