Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Mar 2010 00:27:55 +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:  <201003010028.o210SNOL035135@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
rwatson     2010-03-01 00:27:55 UTC

  FreeBSD src repository

  Modified files:
    lib/libkvm           Makefile kvm.c kvm.h kvm_getpcpu.3 
                         kvm_pcpu.c kvm_private.h 
  Log:
  SVN rev 204494 on 2010-03-01 00:27:55Z by rwatson
  
  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.
  
  MFC after:      1 week
  Sponsored by:   Juniper Networks, Inc.
  
  Revision  Changes    Path
  1.23      +1 -0      src/lib/libkvm/Makefile
  1.35      +20 -3     src/lib/libkvm/kvm.c
  1.20      +1 -0      src/lib/libkvm/kvm.h
  1.3       +33 -4     src/lib/libkvm/kvm_getpcpu.3
  1.2       +140 -0    src/lib/libkvm/kvm_pcpu.c
  1.15      +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?201003010028.o210SNOL035135>