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
Enumerate KVM virtual machine process PID #108
Comments
I don't think I fully understand what you mean. If you have multiple KVM VMs running, you can submit a
Or is there something else you wanted to ask? |
What I mean is to enumerate the number of threads in processes with the same name and traverse to the process PID that you need |
Take process PID parameters without thread count void Memory::open_proc(const char* name)
} |
First point: please file general issues in https://github.com/memflow/memflow. I am transferring this issue there. |
Now, as for your question, you can do the following: int i = 0;
os.process_info_list_callback([&i, filter](ProcessInfo info) {
if (!strstr(info.name, filter)) {
return true;
}
char sys_arch[11];
char proc_arch[11];
fmt_arch(sys_arch, sizeof(sys_arch), info.sys_arch);
fmt_arch(proc_arch, sizeof(proc_arch), info.proc_arch);
printf("%-4d | %-8d | %-10s | %-10s | %s\n", i++, info.pid, sys_arch, proc_arch, info.name);
return true;
}); this will print processes that contain This will give you all processes with the same name. This will not give you all threads of 1 process. Thread != process If you want threads, you'll have to do something different. |
Hi, may I ask when it is possible to increase the number of Linux enumerations, KVM virtual machine processes, PID, and threads
Looking forward to your addition of new function features and calling columns!
The text was updated successfully, but these errors were encountered: