Quoting Muli Ben-Yehuda <mulix@mulix.org>: > On Sun, Dec 28, 2003 at 02:12:24PM +0200, yuvalt@actcom.net.il wrote: > > > Any suggestions? > > Post the patch, and we'll tell you. Ok here it is - it's a silly little patch, but it works :-) -- begin here -- --- linux-2.6.0/fs/proc/array.c.orig Sun Dec 28 14:40:17 2003 +++ linux-2.6.0/fs/proc/array.c Thu Dec 25 18:50:27 2003 @@ -302,6 +302,7 @@ pid_t ppid; int num_threads = 0; struct mm_struct *mm; + unsigned long long start_time = 0; state = *get_task_state(task); vsize = eip = esp = 0; @@ -343,6 +344,8 @@ read_lock(&tasklist_lock); ppid = task->pid ? task->real_parent->pid : 0; read_unlock(&tasklist_lock); + start_time = jiffies_64_to_clock_t(task->start_time - INITIAL_JIFFIES); + 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", @@ -367,8 +370,7 @@ nice, num_threads, jiffies_to_clock_t(task->it_real_value), - (unsigned long long) - jiffies_64_to_clock_t(task->start_time - INITIAL_JIFFIES), + start_time, vsize, mm ? mm->rss : 0, /* you might want to shift this left 3 */ task->rlim[RLIMIT_RSS].rlim_cur, -- end here -- Thanks, Yuval. -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/