p*********u 发帖数: 103 | 1 实在没有办法了,本来想在lkml上问的,死活确认不了subscribe,只好来这个版求助了,
小妹先谢过各位.
偶在找linux kernel里那个听说过无数次但就是见不到面的idle loop,
就是那个在没有runnable process情况下运行的idle loop(task),我怎么也找不到
definition在哪里, 看到个觉得是的default_idle,于是加了个printk message 确认下
,可是没有任何信息打印出来.
请见过这个函数的前辈指教下,多谢 | p*****s 发帖数: 344 | | q**d 发帖数: 16 | 3 hw dependent code
arch/i386/kernel/process.c | p*********u 发帖数: 103 | 4 谢谢ls的回复,我很困惑的是,第一个连接给的也是cpu_idle, default_idle,
都是定义在/arch/x86/kernel/process_32.c (我的linux 是 2.6.25.20 )
我在这两个function都加了printk to verify if any of them are really invoked,
however, nothing was print out. | p*****s 发帖数: 344 | 5 if your printk is really in the idle loop, you should see tons of them,
and ur system won't be usable anymore.
what development environment it is, do u have console access?
if u really want to figure out the program flow, start adding printk from
main.c
,
【在 p*********u 的大作中提到】 : 谢谢ls的回复,我很困惑的是,第一个连接给的也是cpu_idle, default_idle, : 都是定义在/arch/x86/kernel/process_32.c (我的linux 是 2.6.25.20 ) : 我在这两个function都加了printk to verify if any of them are really invoked, : however, nothing was print out.
| p*********u 发帖数: 103 | 6 yes, when I did this on native host, there are tons of message and the
system is not usable. But when I did this on my VM, I didn't see any message
, is this because I'm using para-virtualized VM on xen??? shouldn't be.
【在 p*****s 的大作中提到】 : if your printk is really in the idle loop, you should see tons of them, : and ur system won't be usable anymore. : what development environment it is, do u have console access? : if u really want to figure out the program flow, start adding printk from : main.c : : ,
| p*****s 发帖数: 344 | 7 never looked inside Xen, looked on wiki, para-vm requires modified host,
so that may not be suitable in your case.
message
【在 p*********u 的大作中提到】 : yes, when I did this on native host, there are tons of message and the : system is not usable. But when I did this on my VM, I didn't see any message : , is this because I'm using para-virtualized VM on xen??? shouldn't be.
| q**d 发帖数: 16 | 8 checking XEN config, maybe xen_idle is what you are looking for. |
|