diff options
author | attilio <attilio@FreeBSD.org> | 2009-02-18 21:52:13 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2009-02-18 21:52:13 +0000 |
commit | bf75b4612ae760eeef7dbe0b2544c2532419caac (patch) | |
tree | 3833a1874572766eb8ea8306ce0d91860d32f085 /sys/dev/ata/chipsets/ata-acard.c | |
parent | d65edba75b0491010c980ca1f916473970fd0a6c (diff) | |
download | FreeBSD-src-bf75b4612ae760eeef7dbe0b2544c2532419caac.zip FreeBSD-src-bf75b4612ae760eeef7dbe0b2544c2532419caac.tar.gz |
- 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
Diffstat (limited to 'sys/dev/ata/chipsets/ata-acard.c')
0 files changed, 0 insertions, 0 deletions