aboutsummaryrefslogtreecommitdiff
path: root/lib/libkvm/Makefile
diff options
context:
space:
mode:
authorUlrich Spörlein <uqs@FreeBSD.org>2011-01-23 11:08:36 +0000
committerUlrich Spörlein <uqs@FreeBSD.org>2011-01-23 11:08:36 +0000
commitde788839e206a12d284edce3ff9fbb67843dab34 (patch)
tree307c5ea0956ff1bd5c56f7b578f595867a101d62 /lib/libkvm/Makefile
parentc10970dd7d7cd88f4e14743bd56f6bf010c49274 (diff)
downloadsrc-de788839e206a12d284edce3ff9fbb67843dab34.tar.gz
src-de788839e206a12d284edce3ff9fbb67843dab34.zip
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
Notes
Notes: svn path=/head/; revision=217745
Diffstat (limited to 'lib/libkvm/Makefile')
-rw-r--r--lib/libkvm/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libkvm/Makefile b/lib/libkvm/Makefile
index 24a6e326ce6e..cda977135213 100644
--- a/lib/libkvm/Makefile
+++ b/lib/libkvm/Makefile
@@ -15,7 +15,7 @@ KVM_ARCH=${MACHINE_ARCH}
KVM_ARCH=${MACHINE_CPUARCH}
.endif
-WARNS?= 0
+WARNS?= 3
SRCS= kvm.c kvm_${KVM_ARCH}.c kvm_cptime.c kvm_file.c kvm_getloadavg.c \
kvm_getswapinfo.c kvm_pcpu.c kvm_proc.c kvm_vnet.c