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

Add cgroup parsing to retrieve container ID from /proc/[pid]/cgroup #123

Merged
merged 18 commits into from
Jan 9, 2025

Conversation

irit80
Copy link
Contributor

@irit80 irit80 commented Dec 29, 2024

No description provided.

ProcessInfo.cpp Fixed Show fixed Hide fixed
ProcessInfo.cpp Fixed Show fixed Hide fixed
ProcessInfo.cpp Fixed Show fixed Hide fixed
ProcessInfo.cpp Fixed Show fixed Hide fixed
ProcessInfo.cpp Outdated Show resolved Hide resolved
ProcessInfo.cpp Outdated
@@ -369,6 +369,73 @@ int ProcessInfo::read_and_parse_status(int pid) {
return 0;
}

int ProcessInfo::read_and_parse_cgroup(int pid) {
Copy link
Contributor

@bmanikm bmanikm Jan 6, 2025

Choose a reason for hiding this comment

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

ProcessInfo::read_and_parse_cgroup(int pid) {

Please add unit tests for the 3 scenarios in this function #Closed

Copy link
Contributor

@bmanikm bmanikm left a comment

Choose a reason for hiding this comment

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

:shipit:

@irit80 irit80 merged commit be5086b into master Jan 9, 2025
4 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.

2 participants