freebsd-nq/lib/libkvm
Ulrich Spörlein de788839e2 libkvm: fix process runtime calculation on crashdumps
Fix a long standing bug, where the procs ticks where assumed to be in
us. Instead, read cpu_tick_frequency from the kernel and use the same
logic to convert runtime. This is still too optimistic in that it
assumes cpu_tick_frequency is available and fixed. Since this function
is only called on crashdumps, I think we can live with that. Testing has
shown the values to be correct for different kern.hz inside Virtualbox.

Bump WARNS. Alignment issues on some archs mean this is still at 3.

Reviewed by:	bde
2011-01-23 11:08:36 +00:00
..
kvm_amd64.c libkvm code janitoring 2011-01-23 11:08:28 +00:00
kvm_arm.c libkvm code janitoring 2011-01-23 11:08:28 +00:00
kvm_cptime.c libkvm code janitoring 2011-01-23 11:08:28 +00:00
kvm_file.c libkvm code janitoring 2011-01-23 11:08:28 +00:00
kvm_getcptime.3 Add a new routine kvm_getcptime(3) for fetching the equivalent of 2008-08-19 21:30:36 +00:00
kvm_geterr.3 Remove the advertising clause. UCB did this some time ago, but these 2007-01-08 17:35:36 +00:00
kvm_getfiles.3 Remove the advertising clause. UCB did this some time ago, but these 2007-01-08 17:35:36 +00:00
kvm_getloadavg.3 Revert most of r210764, now that mdocml does the right 2010-12-28 10:08:50 +00:00
kvm_getloadavg.c libkvm code janitoring 2011-01-23 11:08:28 +00:00
kvm_getpcpu.3 Fix several typos in macros or macro misusage. 2010-03-12 10:01:06 +00:00
kvm_getprocs.3 Remove the advertising clause. UCB did this some time ago, but these 2007-01-08 17:35:36 +00:00
kvm_getswapinfo.3
kvm_getswapinfo.c libkvm code janitoring 2011-01-23 11:08:28 +00:00
kvm_i386.c libkvm code janitoring 2011-01-23 11:08:28 +00:00
kvm_ia64.c libkvm code janitoring 2011-01-23 11:08:28 +00:00
kvm_minidump_amd64.c libkvm code janitoring 2011-01-23 11:08:28 +00:00
kvm_minidump_arm.c libkvm code janitoring 2011-01-23 11:08:28 +00:00
kvm_minidump_i386.c libkvm code janitoring 2011-01-23 11:08:28 +00:00
kvm_minidump_mips.c libkvm code janitoring 2011-01-23 11:08:28 +00:00
kvm_mips.c libkvm code janitoring 2011-01-23 11:08:28 +00:00
kvm_nlist.3 Remove the advertising clause. UCB did this some time ago, but these 2007-01-08 17:35:36 +00:00
kvm_open.3 Remove the advertising clause. UCB did this some time ago, but these 2007-01-08 17:35:36 +00:00
kvm_pcpu.c libkvm code janitoring 2011-01-23 11:08:28 +00:00
kvm_powerpc64.c 64-bit PowerPC KVM support. 2010-07-10 15:15:00 +00:00
kvm_powerpc.c libkvm code janitoring 2011-01-23 11:08:28 +00:00
kvm_private.h Add minidump support for MIPS 2010-11-07 03:26:22 +00:00
kvm_proc.c libkvm: fix process runtime calculation on crashdumps 2011-01-23 11:08:36 +00:00
kvm_read.3 Remove the advertising clause. UCB did this some time ago, but these 2007-01-08 17:35:36 +00:00
kvm_sparc64.c libkvm code janitoring 2011-01-23 11:08:28 +00:00
kvm_sparc.c Remove the advertising clause. UCB did this some time ago, but these 2007-01-08 17:35:36 +00:00
kvm_vnet.c libkvm code janitoring 2011-01-23 11:08:28 +00:00
kvm.3 kvm(3): Mention that some of the functions use sysctl(3) instead of kmem. 2010-04-25 12:50:30 +00:00
kvm.c libkvm code janitoring 2011-01-23 11:08:28 +00:00
kvm.h libkvm code janitoring 2011-01-23 11:08:28 +00:00
Makefile libkvm: fix process runtime calculation on crashdumps 2011-01-23 11:08:36 +00:00