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

kvm_watcher:添加对容器的系统调用相关信息采集 #840

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

Monkey857
Copy link
Contributor

image
image
通过命名空间的隔离机制,来过滤出容器中的进程,以此就可以只监测容器的系统调用信息。

@helight
Copy link
Member

helight commented Jun 24, 2024

@nanshuaibo review 一下

@@ -1,4 +1,4 @@
// Copyright 2023 The LMP Authors.
// Copyright 2023 The LMP Authors.#define TASK_COMM_
Copy link
Contributor

Choose a reason for hiding this comment

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

这里加了个什么


// 打印主机名
//bpf_printk("Hostname: %s\n", data.nodename);
const char target_nodename[] = "yys-virtual-machine";
Copy link
Contributor

@nanshuaibo nanshuaibo Jun 24, 2024

Choose a reason for hiding this comment

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

建议target_nodename通过命令行参数传递

Copy link
Contributor Author

Choose a reason for hiding this comment

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

好,我准备后期把这个完善好

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.

None yet

3 participants