<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libkvm/kvm_pcpu.c, branch stable/8</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>Merge r204494, r204511 from head to stable/8:</title>
<updated>2011-01-15T19:23:14+00:00</updated>
<author>
<name>Robert Watson</name>
<email>rwatson@FreeBSD.org</email>
</author>
<published>2011-01-15T19:23:14+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=7a056c93fadc123cfe05767030a9e920fac5eac1'/>
<id>7a056c93fadc123cfe05767030a9e920fac5eac1</id>
<content type='text'>
  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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
  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
</pre>
</div>
</content>
</entry>
<entry>
<title>Add two new routines to libkvm for working with per-CPU data:</title>
<updated>2008-08-19T19:55:33+00:00</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2008-08-19T19:55:33+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=794a9a6c96abe0413fbaf3a7f116e0a0e84e0e85'/>
<id>794a9a6c96abe0413fbaf3a7f116e0a0e84e0e85</id>
<content type='text'>
kvm_getmaxcpu() and kvm_getpcpu().

MFC after:	1 week
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
kvm_getmaxcpu() and kvm_getpcpu().

MFC after:	1 week
</pre>
</div>
</content>
</entry>
</feed>
