mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-19 00:17:51 +02:00
Improve accepted formats in proc_pid_smaps
This commit is contained in:
@ -109,7 +109,8 @@ Examples:
|
|||||||
"mw",
|
"mw",
|
||||||
"me",
|
"me",
|
||||||
"dw",
|
"dw",
|
||||||
"sd"
|
"sd",
|
||||||
|
"mp"
|
||||||
],
|
],
|
||||||
"VmFlags_pretty": [
|
"VmFlags_pretty": [
|
||||||
"readable",
|
"readable",
|
||||||
@ -211,6 +212,7 @@ def _process(proc_data: List[Dict]) -> List[Dict]:
|
|||||||
'mw': 'may write',
|
'mw': 'may write',
|
||||||
'me': 'may execute',
|
'me': 'may execute',
|
||||||
'ms': 'may share',
|
'ms': 'may share',
|
||||||
|
'mp': 'MPX-specific VMA',
|
||||||
'gd': 'stack segment growns down',
|
'gd': 'stack segment growns down',
|
||||||
'pf': 'pure PFN range',
|
'pf': 'pure PFN range',
|
||||||
'dw': 'disabled write to the mapped file',
|
'dw': 'disabled write to the mapped file',
|
||||||
@ -274,10 +276,10 @@ def parse(
|
|||||||
|
|
||||||
if jc.utils.has_data(data):
|
if jc.utils.has_data(data):
|
||||||
map_line = re.compile(r'''
|
map_line = re.compile(r'''
|
||||||
^(?P<start>[0-9a-f]{12,16})-
|
^(?P<start>[0-9a-f]{8,16})-
|
||||||
(?P<end>[0-9a-f]{12,16})\s
|
(?P<end>[0-9a-f]{8,16})\s
|
||||||
(?P<perms>[rwxsp\-]{4})\s
|
(?P<perms>[rwxsp\-]{4})\s
|
||||||
(?P<offset>[0-9a-f]{8})\s
|
(?P<offset>[0-9a-f]{8,9})\s
|
||||||
(?P<maj>[0-9a-f]{2}):
|
(?P<maj>[0-9a-f]{2}):
|
||||||
(?P<min>[0-9a-f]{2})\s
|
(?P<min>[0-9a-f]{2})\s
|
||||||
(?P<inode>\d+)\s+
|
(?P<inode>\d+)\s+
|
||||||
|
Reference in New Issue
Block a user