git: KERN_PROC - Change behavior and bump version to 600302

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Nov 17 14:34:27 PST 2022


commit ec1c3f3acbcc9eec2e3e83bf248a95cca926a503
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Nov 17 14:31:05 2022 -0800

    KERN_PROC - Change behavior and bump version to 600302
    
    * Change default behavior to not include pure LWPs.  That is, to not
      include pure kernel threads without a process (pid returned as -1).
    
    * Add a flag KERN_PROC_FLAG_LWKT to re-include the LWPs for programs
      that don't get confused by them.
    
    * Adjust /bin/ps and /usr/bin/top to use the flag.  Also conditionalized
      on the existance of the flag so buildworld on older systems doesn't
      fail.
    
    * Clean-up the sysctl kernel interface for KERN_PROC a bit, since adding
      the flag creates a lot more combinations that need to be handled as
      discrete sysctls.

Summary of changes:
 bin/ps/ps.c               |  4 ++
 sys/kern/kern_proc.c      | 97 +++++++++++++++++++++++++----------------------
 sys/sys/param.h           |  3 +-
 sys/sys/sysctl.h          |  3 +-
 usr.bin/top/m_dragonfly.c | 13 +++++--
 5 files changed, 70 insertions(+), 50 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ec1c3f3acbcc9eec2e3e83bf248a95cca926a503


-- 
DragonFly BSD source repository


More information about the Commits mailing list