Files
kernel_xiaomi_sm8250/include/linux
KaiGai Kohei 77787bfb44 [PATCH] pacct: none-delayed process accounting accumulation
In current 2.6.17 implementation, signal_struct refered from task_struct is
used for per-process data structure.  The pacct facility also uses it as a
per-process data structure to store stime, utime, minflt, majflt.  But those
members are saved in __exit_signal().  It's too late.

For example, if some threads exits at same time, pacct facility has a
possibility to drop accountings for a part of those threads.  (see, the
following 'The results of original 2.6.17 kernel') I think accounting
information should be completely collected into the per-process data structure
before writing out an accounting record.

This patch fixes this matter.  Accumulation of stime, utime, minflt and majflt
are done before generating accounting record.

[mingo@elte.hu: fix acct_collect() siglock bug found by lockdep]
Signed-off-by: KaiGai Kohei <kaigai@ak.jp.nec.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-06-25 10:01:25 -07:00
..
2006-03-24 07:33:20 -08:00
2006-03-28 09:16:05 -08:00
2006-03-23 07:38:09 -08:00
2006-03-27 08:44:59 -08:00
2006-03-27 08:44:59 -08:00
2006-05-08 16:32:05 -07:00
2006-06-08 15:14:23 -07:00
2006-06-23 02:07:36 -07:00
2006-03-31 12:18:54 -08:00
2006-06-25 10:01:19 -07:00
2006-03-26 08:56:56 -08:00
2006-03-27 08:44:51 -08:00
2006-06-25 10:01:06 -07:00
2006-06-20 20:24:58 -07:00
2006-06-21 12:40:49 -07:00
2006-06-23 07:43:08 -07:00
2006-06-25 10:01:23 -07:00
2006-06-05 12:29:17 -07:00
2006-03-22 07:53:57 -08:00
2006-06-25 10:01:13 -07:00
2006-03-23 07:38:14 -08:00
2006-03-23 07:38:14 -08:00
2006-06-23 02:07:36 -07:00
2006-06-23 07:42:46 -07:00
2006-06-25 10:01:09 -07:00
2006-06-22 22:11:56 -04:00
2006-06-22 15:05:56 -07:00
2006-03-27 08:44:48 -08:00
2006-05-04 06:55:12 +02:00
2006-06-23 07:42:49 -07:00
2006-06-25 10:01:06 -07:00
2006-06-25 10:01:06 -07:00
2006-06-25 10:01:14 -07:00
2006-06-17 21:29:55 -07:00
2006-03-23 07:38:12 -08:00
2006-04-02 00:08:05 -05:00
2006-06-23 02:07:42 -07:00
2006-03-28 09:16:05 -08:00
2006-06-23 07:43:06 -07:00
2006-06-25 10:01:15 -07:00
2006-03-26 08:57:03 -08:00
2006-03-31 12:18:56 -08:00
2006-03-23 07:38:14 -08:00
2006-03-23 07:12:57 -05:00