Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jan 2011 11:08:36 +0000 (UTC)
From:      Ulrich Spoerlein <uqs@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/lib/libkvm Makefile kvm_proc.c
Message-ID:  <201101231108.p0NB8rRi065516@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help

uqs         2011-01-23 11:08:36 UTC

  FreeBSD src repository

  Modified files:
    lib/libkvm           Makefile kvm_proc.c 
  Log:
  SVN rev 217745 on 2011-01-23 11:08:36Z by uqs
  
  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
  
  Revision  Changes    Path
  1.27      +1 -1      src/lib/libkvm/Makefile
  1.105     +28 -12    src/lib/libkvm/kvm_proc.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101231108.p0NB8rRi065516>