Skip to content
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

Merged
merged 7 commits into from
Jul 10, 2024

Conversation

Monkey857
Copy link
Contributor

1.proc_image:在controller中加入-o参数,即可只采集容器进程的系统调用情况。#513
image
2.kvm_watcher:通过-a参数功能,可以采集到系统中容器的系统调用信息。(相比之前:使得系统可以自动获取主机名,可在任何机器上过滤出容器进程)#552
image

@helight
Copy link
Member

helight commented Jul 5, 2024

@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();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个可以挪到参数解析函数里面,指定对应选项后,获取hostname

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里要提交之后,我们再合并到仓库哈

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个可以挪到参数解析函数里面,指定对应选项后,获取hostname
好的师兄,我改一下。

chenamy2017
chenamy2017 previously approved these changes Jul 8, 2024
Copy link
Contributor

@chenamy2017 chenamy2017 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

后续可以支持进程过滤。

@Monkey857
Copy link
Contributor Author

后续可以支持进程过滤。

好,后期我添加一下这个功能。

@Monkey857
Copy link
Contributor Author

师兄,我改好了,麻烦查看一下可以合并进去吗。

Copy link
Member

@helight helight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@helight helight merged commit 26f90f8 into linuxkerneltravel:develop Jul 10, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants