Add new structures for exporting the cputime statistics via 64 bit counters
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Wed, 22 Dec 2004 11:01:49 +0000 (11:01 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Wed, 22 Dec 2004 11:01:49 +0000 (11:01 +0000)
commitf5d2161031cdd6c6cb2f4b63c90a3ca8f8cd90b2
tree1798af99a0618e5fdab7f0a6bbe713c73f2110c2
parentb653c845831f7edfad2dc06c36c17ac1c87e6987
Add new structures for exporting the cputime statistics via 64 bit counters
and redo the timer frequence export.
Provide the interface glue for libkinfo and libkcore.
Additionally provide interfaces to query ccpu, the number of cpus, tk_nin
and tk_nout.
Remove those fields from devstat.h's struct statinfo.
Remove kvm dependency of rpc.rstatd by using the newly added libkinfo
functions and the sysctl interface for vmmeter.
Use the new interface in systat, the iostat part is now kvm-free.
Use kinfo_get_sched_stathz in time.
Use the kinfo interface for everything beside getting the actual process list
in top. This also removes the Last PID, which could be added back easily.
Since the feature is not that useful and breaks e.g. the jail isolation,
I haven't added a sysctl to read nextpid.
Use the kinfo interface in vmstat.
Use the kinfo interface in iostat. iostat is now kvm-free and not
setgid kmem anymore. This also means that iostat can't be applied to
coredump anymore. If this functionality is important, the kcore kinfo wrapper
can be added easily.
40 files changed:
lib/libdevstat/devstat.3
lib/libdevstat/devstat.c
lib/libdevstat/devstat.h
lib/libkcore/Makefile
lib/libkcore/kcore.c
lib/libkcore/kcore.h
lib/libkcore/kcore_file.c
lib/libkcore/kcore_private.h
lib/libkcore/kcore_sched.c [copied from lib/libkcore/kcore_vfs.c with 57% similarity]
lib/libkcore/kcore_tty.c [copied from lib/libkcore/kcore_vfs.c with 79% similarity]
lib/libkcore/kcore_vfs.c
lib/libkinfo/Makefile
lib/libkinfo/kinfo.h
lib/libkinfo/kinfo_sched.c [copied from lib/libkcore/kcore.c with 57% similarity]
lib/libkinfo/kinfo_tty.c [copied from lib/libkcore/kcore_private.h with 80% similarity]
libexec/rpc.rstatd/Makefile
libexec/rpc.rstatd/rstat_proc.c
sys/bus/pci/i386/pci_cfgreg.c
sys/dev/raid/vinum/vinumhdr.h
sys/emulation/linux/i386/linprocfs/linprocfs_misc.c
sys/i386/i386/symbols.raw
sys/kern/kern_clock.c
sys/kern/tty.c
sys/platform/pc32/i386/symbols.raw
sys/sys/dkstat.h
sys/sys/kinfo.h
sys/sys/time.h
usr.bin/systat/Makefile
usr.bin/systat/devs.c
usr.bin/systat/iostat.c
usr.bin/systat/pigs.c
usr.bin/systat/vmstat.c
usr.bin/time/Makefile
usr.bin/time/time.c
usr.bin/top/machine.c
usr.bin/vmstat/Makefile
usr.bin/vmstat/vmstat.c
usr.sbin/iostat/Makefile
usr.sbin/iostat/iostat.8
usr.sbin/iostat/iostat.c