[so] /proc/pid/stat
mitel
so@cursuri.cs.pub.ro
Sat, 20 Nov 2004 15:54:32 +0200 (EET)
14 e atunci :)
cel cu utime
>
> Citez de la KERNEL_SOURCE_PATH/fs/proc/array.c:369 (2.6.9 vanilla):
> ----
> res = sprintf(buffer,"%d (%s) %c %d %d %d %d %d %lu %lu \
> %lu %lu %lu %lu %lu %ld %ld %ld %ld %d %ld %llu %lu %ld %lu %lu %lu %lu
> %lu \
> %lu %lu %lu %lu %lu %lu %lu %lu %d %d %lu %lu\n",
> task->pid,
> tcomm,
> state,
> ppid,
> pgid,
> sid,
> tty_nr,
> tty_pgrp,
> task->flags,
> task->min_flt,
> cmin_flt,
> task->maj_flt,
> cmaj_flt,
> jiffies_to_clock_t(task->utime),
> jiffies_to_clock_t(task->stime),
> jiffies_to_clock_t(cutime),
> jiffies_to_clock_t(cstime),
> ...
> ----
> Deci, ce trebuie afisat la CPUTime, task->utime sau task->stime?
>
----------------------------------------------
webhosting starting at 1.99 / month.
http://www.etp.ro/