Attilio Rao
f8d9048018
- Add a function (fill_kinfo_aggregate()) which aggregates relevant
...
members for a kinfo entry on a process-wide system.
- Use the newly introduced function in order to fix cases like
KERN_PROC_PROC where aggregating stats are broken because they just
consider the first thread in the pool for each process.
(Note, additively, that KERN_PROC_PROC is rather inaccurate on
thread-wide informations like the 'state' of the process. Such
informations should maybe be invalidated and being forceably discarded
by the consumers?).
- Simplify the logic of sysctl_out_proc() and adjust the
fill_kinfo_thread() accordingly.
- Remove checks on the FIRST_THREAD_IN_PROC() being NULL but add
assertives.
This patch should fix aggregate statistics for KERN_PROC_PROC.
This is one of the reasons why top doesn't use this option and now it
can be use it safely.
ps, when launched in order to display just processes, now should report
correct cpu utilization percentages and times (as opposed by the old
code).
Reviewed by: jhb, emaste
Sponsored by: Sandvine Incorporated
2009-02-18 21:52:13 +00:00
..
2008-11-18 21:01:54 +00:00
2008-01-18 17:02:14 +00:00
2008-11-22 12:36:15 +00:00
2009-01-25 12:07:43 +00:00
2008-01-13 14:44:15 +00:00
2008-08-28 15:23:18 +00:00
2008-10-28 11:33:06 +00:00
2008-11-09 10:48:06 +00:00
2008-08-21 15:02:17 +00:00
2008-07-02 20:44:33 +00:00
2009-01-17 07:17:57 +00:00
2008-09-25 13:42:19 +00:00
2008-11-27 16:47:25 +00:00
2008-11-01 08:35:28 +00:00
2008-12-16 01:24:05 +00:00
2008-11-29 14:32:14 +00:00
2008-05-23 03:04:27 +00:00
2009-02-14 21:55:09 +00:00
2008-06-16 04:44:29 +00:00
2008-07-21 15:05:25 +00:00
2008-10-23 20:26:15 +00:00
2008-12-05 20:50:24 +00:00
2008-12-05 20:50:24 +00:00
2008-12-05 20:50:24 +00:00
2008-03-16 10:58:09 +00:00
2008-09-23 14:25:56 +00:00
2009-02-05 14:15:18 +00:00
2008-08-03 21:07:19 +00:00
2008-12-03 15:54:35 +00:00
2009-02-10 15:50:19 +00:00
2009-02-06 20:06:48 +00:00
2008-11-27 04:40:37 +00:00
2009-01-25 09:11:24 +00:00
2009-01-01 20:03:01 +00:00
2009-01-28 19:58:05 +00:00
2008-12-05 16:47:30 +00:00
2008-10-23 20:26:15 +00:00
2008-09-10 19:13:30 +00:00
2008-03-16 10:58:09 +00:00
2008-11-17 20:49:29 +00:00
2008-09-22 10:37:02 +00:00
2008-12-11 16:09:31 +00:00
2008-09-17 15:49:44 +00:00
2009-02-18 21:52:13 +00:00
2008-12-12 12:06:28 +00:00
2008-10-24 01:09:24 +00:00
2008-09-10 19:13:30 +00:00
2008-12-08 21:46:55 +00:00
2008-05-18 19:32:36 +00:00
2008-11-23 21:05:22 +00:00
2008-11-05 03:01:23 +00:00
2008-08-28 19:34:58 +00:00
2008-05-12 06:42:06 +00:00
2008-09-10 19:13:30 +00:00
2009-01-17 07:17:57 +00:00
2008-09-18 20:10:11 +00:00
2009-02-06 14:51:32 +00:00
2008-03-16 10:58:09 +00:00
2008-11-22 12:36:15 +00:00
2008-11-17 20:49:29 +00:00
2008-10-20 02:37:53 +00:00
2009-01-24 10:22:49 +00:00
2008-06-24 07:32:12 +00:00
2008-12-02 21:37:28 +00:00
2008-12-10 23:12:39 +00:00
2008-12-29 19:24:00 +00:00
2009-02-10 15:50:19 +00:00
2009-02-10 15:50:19 +00:00
2008-05-23 04:06:49 +00:00
2008-12-01 14:34:42 +00:00
2007-12-14 21:30:51 +00:00
2008-09-25 20:07:42 +00:00
2008-03-12 10:12:01 +00:00
2009-01-25 07:35:10 +00:00
2009-01-25 07:35:10 +00:00
2008-06-26 07:52:45 +00:00
2008-10-28 21:58:48 +00:00
2009-02-03 07:52:07 +00:00
2008-10-23 15:53:51 +00:00
2008-11-22 05:55:56 +00:00
2009-02-11 04:54:02 +00:00
2009-02-09 11:27:56 +00:00
2008-04-22 19:38:30 +00:00
2009-02-03 07:54:42 +00:00
2009-02-13 11:36:32 +00:00
2008-03-16 10:58:09 +00:00
2009-02-03 07:51:11 +00:00
2008-05-04 23:29:38 +00:00
2009-02-03 07:54:42 +00:00
2008-07-27 21:45:20 +00:00
2008-03-16 10:58:09 +00:00
2008-03-25 09:39:02 +00:00
2008-12-30 23:49:54 +00:00
2009-01-17 07:17:57 +00:00
2009-02-03 07:51:11 +00:00
2009-02-03 07:52:36 +00:00
2009-02-03 07:53:08 +00:00
2009-02-03 07:50:01 +00:00
2008-08-09 10:26:21 +00:00
2008-12-01 01:54:55 +00:00
2009-01-26 15:32:39 +00:00
2008-10-30 21:48:28 +00:00
2009-02-13 18:51:39 +00:00
2008-12-13 13:07:12 +00:00
2008-09-15 22:45:14 +00:00
2007-07-04 06:56:58 +00:00
2009-02-03 07:50:41 +00:00
2009-02-02 03:34:40 +00:00
2008-11-11 14:55:59 +00:00
2008-11-05 03:01:23 +00:00
2008-10-07 07:10:28 +00:00
2008-11-09 10:48:06 +00:00
2008-11-09 10:45:13 +00:00
2008-11-09 10:48:06 +00:00
2007-10-24 19:04:04 +00:00
2009-01-15 12:15:46 +00:00
2008-02-12 20:55:03 +00:00
2008-09-04 16:30:53 +00:00
2009-01-29 09:32:56 +00:00
2009-02-03 19:58:28 +00:00
2009-02-03 19:58:28 +00:00
2008-12-21 21:16:57 +00:00
2009-01-25 08:27:11 +00:00
2008-06-03 12:38:00 +00:00
2008-11-12 09:04:44 +00:00
2009-02-11 16:28:49 +00:00
2008-10-23 15:53:51 +00:00
2009-01-03 13:24:08 +00:00
2009-02-09 18:19:58 +00:00
2009-01-04 19:22:53 +00:00
2007-10-24 19:04:04 +00:00
2009-01-18 20:19:55 +00:00
2008-11-28 14:53:18 +00:00
2008-06-27 05:39:04 +00:00
2008-12-01 22:33:50 +00:00
2008-10-07 09:51:39 +00:00
2009-02-05 14:15:18 +00:00
2008-10-23 15:53:51 +00:00
2009-01-01 20:03:22 +00:00
2008-03-31 12:01:21 +00:00
2009-01-23 13:23:17 +00:00
2009-02-06 20:06:48 +00:00
2009-01-28 19:05:18 +00:00
2008-03-22 09:15:16 +00:00
2008-12-12 00:57:38 +00:00
2008-12-28 14:32:27 +00:00
2009-01-08 12:47:30 +00:00
2008-03-16 10:58:09 +00:00
2009-02-06 14:51:32 +00:00
2008-12-18 11:58:12 +00:00
2009-02-05 15:03:35 +00:00
2009-02-06 20:06:48 +00:00
2009-02-13 18:18:14 +00:00
2009-01-21 14:51:38 +00:00
2009-01-21 14:42:00 +00:00