Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Jan 2011 19:23:14 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/lib/libkvm Makefile kvm.c kvm.h kvm_getpcpu.3 kvm_pcpu.c kvm_private.h
Message-ID:  <201101151923.p0FJNSsr028600@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
rwatson     2011-01-15 19:23:14 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_8)
    lib/libkvm           Makefile kvm.c kvm.h kvm_getpcpu.3 
                         kvm_pcpu.c kvm_private.h 
  Log:
  SVN rev 217454 on 2011-01-15 19:23:14Z by rwatson
  
  Merge r204494, r204511 from head to stable/8:
  
    A first cut at teaching libkvm how to deal with dynamic per-CPU storage
    (DPCPU):
  
    A new API, kvm_dpcpu_setcpu(3), selects the active CPU for the purposes
    of DPCPU.  Calls to kvm_nlist(3) will automatically translate DPCPU
    symbols and return a pointer to the current CPU's version of the data.
    Consumers needing to read the same symbol on several CPUs will invoke a
    series of setcpu/nlist calls, one per CPU of interest.
  
    This addition makes it possible for tools like netstat(1) to query the
    values of DPCPU variables during crashdump analysis, and is based on
    similar code handling virtualized global variables.
  
    Sponsored by:   Juniper Networks, Inc.
  
    Not all programs including kvm.h include the necessary headers to use
    u_int, so prefer unsigned int.
  
    Pointed out by: bz, kib, Mr Tinderbox
  
  Revision  Changes    Path
  1.21.2.2  +1 -0      src/lib/libkvm/Makefile
  1.34.2.2  +20 -3     src/lib/libkvm/kvm.c
  1.19.2.2  +1 -0      src/lib/libkvm/kvm.h
  1.2.4.2   +33 -4     src/lib/libkvm/kvm_getpcpu.3
  1.1.4.2   +140 -0    src/lib/libkvm/kvm_pcpu.c
  1.14.2.2  +15 -0     src/lib/libkvm/kvm_private.h



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