QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2430|回复: 2

对于/dev/kmem,它能干什么

[复制链接]
发表于 2003-5-30 12:03:15 | 显示全部楼层 |阅读模式
/dev/kmem是核心内存设备文件,这个文件可以被怎样控制呢???
有人了解么,可以用它来干些什么???
代码里哪部分是描述这个的???
发表于 2003-5-30 21:24:42 | 显示全部楼层
man kmem
/usr/src/linux/char/mem.c
回复

使用道具 举报

发表于 2003-5-30 21:33:07 | 显示全部楼层
some profiling tools can read it and analysis it.
for example
http://www.gnu.org/directory/All_Packages_in_Directory/atkins.html

atkins - Examine variables, tables, and linked lists in the kernel
'atkins' examines variables, tables, and linked lists in the running kernel. Subcommands can be entered to show formatted kernel administration of processes, open files, incore inodes, page cache buffers, sockets, etc. Memory dumps can be shown using virtual or physical addresses, or using addresses within user space of a particular process. Furthermore stack backtraces can be printed e.g. to determine the reason why a particular process is currently in a wait-state. Note that atkins requires a certain level of knowledge about the Linux kernel.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-6-29 13:20 , Processed in 0.141587 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表