git: gcore - Fix /proc map reading, add verbose option, add limit option

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Feb 2 10:01:33 PST 2019


commit f45b9d7175062c678b2484efb3133db0bc20b789
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Feb 2 09:57:54 2019 -0800

    gcore - Fix /proc map reading, add verbose option, add limit option
    
    * Our /proc/*/map code allows incremental reads so the old
      code that detects an insufficient buffer size no longer works.
      Fix the code so processes with long maps are properly processed.
    
    * Add -v to verbosely print the segments being dumped.
    
    * Add -l <limit>{,k,m,g,t} to ignore segments larger than the
      specified limitm.

Summary of changes:
 usr.bin/gcore/elfcore.c | 32 ++++++++++++++++++++++++++++----
 usr.bin/gcore/gcore.1   | 10 +++++++++-
 usr.bin/gcore/gcore.c   | 36 ++++++++++++++++++++++++++++++++++--
 3 files changed, 71 insertions(+), 7 deletions(-)

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


-- 
DragonFly BSD source repository



More information about the Commits mailing list