On Tue, 18 Sep 2007 00:23:39 +0200 Guillaume Chazarain <guichaz@yahoo.fr> wrote:This patch conflicts somewhat with add-scaled-time-to-taskstats-based-process-accounting.patch I fixed it up like this: void bacct_add_tsk(struct taskstats *stats, struct task_struct *task) { if (task->flags & PF_SUPERPRIV) stats->ac_flag |= ASU; if (task->flags & PF_DUMPCORE) stats->ac_flag |= ACORE; if (task->flags & PF_SIGNALED) stats->ac_flag |= AXSIG; if (thread_group_leader(task) && (task->flags & PF_FORKNOEXEC)) /* * Threads are created by do_fork() and don't exec but not in * the AFORK sense, as the latter involves fork(2). */ stats->ac_flag |= AFORK; stats->ac_utimescaled += cputime_to_msecs(task->utimescaled) * USEC_PER_MSEC; stats->ac_stimescaled += cputime_to_msecs(task->stimescaled) * USEC_PER_MSEC; stats->ac_utime += cputime_to_msecs(task->utime) * USEC_PER_MSEC; stats->ac_stime += cputime_to_msecs(task->stime) * USEC_PER_MSEC; stats->ac_minflt += task->min_flt; stats->ac_majflt += task->maj_flt; } (note the s/=/+=/ in there) but it all needs reviewing and checking and testing please. -
| Amit K. Arora | [RFC] Heads up on sys_fallocate() |
| Linus Torvalds | Linux 2.6.23-rc9 and a heads-up for the 2.6.24 series.. |
| Paul Jackson | Re: cpuset-remove-sched-domain-hooks-from-cpusets |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
git: | |
| Linus Torvalds | Re: [GIT]: Networking |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | Re: [klibc] [patch] import socket defines |
