-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
proc_image&kvm_watcher:添加采集容器进程的系统调用信息 #854
Conversation
@nanshuaibo @zhangzihengya review 一下 |
@@ -1233,7 +1263,8 @@ int main(int argc, char **argv) { | |||
return err; | |||
/*设置libbpf的错误和调试信息回调*/ | |||
libbpf_set_print(libbpf_print_fn); | |||
|
|||
//获取hostname | |||
get_hostname(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个可以挪到参数解析函数里面,指定对应选项后,获取hostname
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里要提交之后,我们再合并到仓库哈
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个可以挪到参数解析函数里面,指定对应选项后,获取hostname
好的师兄,我改一下。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
后续可以支持进程过滤。
好,后期我添加一下这个功能。 |
师兄,我改好了,麻烦查看一下可以合并进去吗。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
1.proc_image:在controller中加入-o参数,即可只采集容器进程的系统调用情况。#513
2.kvm_watcher:通过-a参数功能,可以采集到系统中容器的系统调用信息。(相比之前:使得系统可以自动获取主机名,可在任何机器上过滤出容器进程)#552