Linux jiffies/HZ mini trace
處理器:arm
平台:IXP425
變數名稱:jiffies
用途:記錄開機到當前經過的時間
定義於:arch/arm/kernel/time.c
u64 jiffies_64 = INITIAL_JIFFIES; 型態:64bit unsigned long int
初值:include/linux/jiffies.h
#define INITIAL_JIFFIES ((unsigned long)(unsigned int) (-300*HZ))
更新變數的函示:
HW TIMER interrupt==>
ixp4xx_timer_interrupt (arch/arm/mach-ixp4xx/common.c)
timer_tick (arch/arm/kernel/time.c)
do_timer (kernel/timer.c)
變數名稱:HZ
用途:jiffies與秒換算的比率
定義於: linux/include/asm-arm/param.h
值:100
# define HZ 100
平台:IXP425
變數名稱:jiffies
用途:記錄開機到當前經過的時間
定義於:arch/arm/kernel/time.c
u64 jiffies_64 = INITIAL_JIFFIES; 型態:64bit unsigned long int
初值:include/linux/jiffies.h
#define INITIAL_JIFFIES ((unsigned long)(unsigned int) (-300*HZ))
更新變數的函示:
HW TIMER interrupt==>
ixp4xx_timer_interrupt (arch/arm/mach-ixp4xx/common.c)
timer_tick (arch/arm/kernel/time.c)
do_timer (kernel/timer.c)
變數名稱:HZ
用途:jiffies與秒換算的比率
定義於: linux/include/asm-arm/param.h
值:100
# define HZ 100
留言