Adapt the KINFO library to aggregate per-cpu cputime statistics.
authorHiten Pandya <hmp@dragonflybsd.org>
Wed, 27 Apr 2005 15:13:35 +0000 (15:13 +0000)
committerHiten Pandya <hmp@dragonflybsd.org>
Wed, 27 Apr 2005 15:13:35 +0000 (15:13 +0000)
commit7827df93d1fc18f9214d8a056dbe4fd4e20c3e71
tree6df7428152bfb3573c66c936ff9deca5bdc3e277
parent9eea7f0c4433f10d91f2ba34ebd4b9dba854c90f
Adapt the KINFO library to aggregate per-cpu cputime statistics.

(a) add a framework for aggregating per-cpu structures, of variant
    field types; this interface will undergo change once it is
    formalised upon, kinfo_pcpu.[ch].

(b) minor style(9) cleanups while I am around these ends.

(c) adjust libkcore, this might not be fully correct but it fetches
    the right symbol at the least, it is not so easy to collect
    per-cpu statistics from core files without doing magic with the
    CPU privatespace like how we do in GDB debug scripts.

(d) kinfo_get_sched_cputime(3) is fetching aggregate statistics to
    retain behavior, most programs do not care about per-cpu stats
    without getting really mucky anyway; (discussed with joerg)
lib/libkcore/kcore_sched.c
lib/libkinfo/Makefile
lib/libkinfo/kinfo.h
lib/libkinfo/kinfo_pcpu.c [copied from lib/libkinfo/kinfo.h with 68% similarity]
lib/libkinfo/kinfo_pcpu.h [new file with mode: 0644]
lib/libkinfo/kinfo_sched.c