[Linux]Linux kernel log裏的時間單位

Linux kernel log時間單位ios

具體單位是秒 <6>[ 0.588079] io scheduler noop registered函數

<6>[ 0.588151] io scheduler deadline registeredoop

<6>[ 0.588291] io scheduler row registeredrem

<6>[ 0.588549] io scheduler cfq registered (default)io

<6>[ 0.588623] io scheduler test-iosched registeredtest

由於kernel log是經過printk打出來的,只要分析該函數就能夠知道單位cpu

printk() vprintk() { ... t = cpu_clock(printk_cpu); nanosec_rem = do_div(t, 1000000000); tlen = sprintf(tbuf, "[%5lu.%06lu]%c", (unsigned long) t, nanosec_rem / 1000, state); ... }di

可見"."以前是秒,以後是微秒,按小數點統一來看也就是秒爲單位時間

相關文章
相關標籤/搜索