cvs commit: src/sys/kern kern_proc.c

Matthew Dillon dillon at crater.dragonflybsd.org
Fri May 28 19:48:49 PDT 2004


dillon      2004/05/28 19:47:50 PDT

DragonFly src repository

  Modified files:
    sys/kern             kern_proc.c 
  Log:
  Make sysctl_kern_proc() iterate through available cpus to retrieve the
  list of threads installed on each one rather then just retrieve the threads
  on the cpu it happens to have been called from.
  
  To accomplish this, sysctl_kern_proc() now uses the new LWKT API to
  migrate itself to each target cpu in order to safely access the thread
  list on that cpu, ending up on the same cpu it started from.  The overhead
  is nasty to be sure, but who cares when only 'top' and 'ps' and related
  non-critical utilities use the feature?
  
  Revision  Changes    Path
  1.14      +23 -1     src/sys/kern/kern_proc.c


http://www.dragonflybsd.org/cvsweb/src/sys/kern/kern_proc.c.diff?r1=1.13&r2=1.14&f=h





More information about the Commits mailing list