如何在 Linux/HPUX 上获取内核的内存映射 (pmap)

发布于 2024-08-25 04:24:41 字数 107 浏览 4 评论 0原文

在Solaris 上,我可以在核心文件上运行pmap 命令来获取崩溃进程的内存映射。不幸的是,HPUX 和 Linux 上可用的 pmap 命令不提供此选项。有什么指示我如何在这些平台上获取此信息吗?

On solaris i can run the pmap command on a core file to get the memory map of a crashed process. Unfortunately the pmap command available on HPUX and Linux doesn't provide this option. Any pointers how i can get this information on these platforms?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小糖芽 2024-09-01 04:24:41

objdump -p core

这将提供 pmap 前三列的信息,但格式不同。 pmap 中的前三列对应于 objdump< 中的 vaddrmemszflags 值/code> 分别输出。

pmap 的第四列(映射文件的路径)似乎无法从 core 文件中获取。

objdump -p core

That will give the information from the first three columns of pmap, but in a different format. The first three columns in pmap correspond to the vaddr, memsz and flags values in the objdump output resepectively.

The fourth column from pmap, the path of the mapped file, appears to be unavailable from the core file.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文