LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 652|回复: 4

需要帮助!!!

[复制链接]
发表于 2003-10-14 11:11:54 | 显示全部楼层 |阅读模式
I want to write a module to detect the state change (from sleeping to running state) for all the processes in my Linux system. Anyone know how to do that? A process state will change from sleeping to running state after a system call (wake_up_process()), is there a way so that my module can catch this system call , so that i can get the pid of the process?

Due to the remove of sys_call__table[], so i need other way to do it...... pls help
发表于 2003-10-14 12:51:44 | 显示全部楼层
man 7 signal看看
有没有对应的
发表于 2003-10-14 12:53:12 | 显示全部楼层

原来是要修改内核啊

如果是想得到所有的PID的状态改变
修改内核是唯一的办法了

你是不是想修改内核呢
 楼主| 发表于 2003-10-14 16:23:02 | 显示全部楼层
是啊。。。有什么好的方法呢?
发表于 2003-10-14 17:19:52 | 显示全部楼层
那就看内核源码吧
linuxforum上讨论的比较多

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

本版积分规则

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