Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有什么方法可以获取 linux 内核线程的代码段的地址和大小(比如task_struct->mm->mmap->vm_start活动vm_end任务 task_struct->mm != 0)?
task_struct->mm->mmap->vm_start
vm_end
task_struct->mm != 0
我建议你通过 Linux 内核中的 taskstats 接口,它可以提供所有 Linux 线程的信息,包括 VM 统计信息。
查看doc以及界面的标题。
没有简单的方法可以侵入内核来枚举所有task_struct可用的。
task_struct