Process names can contains - signs also

Valid process names can consist of \w ([a-zA-Z0-9_]), minus and spaces.
This commit is contained in:
Carsten Grohmann 2020-11-19 14:50:01 +01:00
parent dcfbdf43eb
commit cceb2fa21e

View File

@ -318,7 +318,7 @@ class OOMAnalyser(object):
"""Analyse an OOM object and calculate additional values""" """Analyse an OOM object and calculate additional values"""
REC_INVOKED_OOMKILLER = re.compile( REC_INVOKED_OOMKILLER = re.compile(
r'^(?P<trigger_proc_name>[\w ]+) invoked oom-killer: ' r'^(?P<trigger_proc_name>[\w\- ]+) invoked oom-killer: '
r'gfp_mask=(?P<trigger_proc_gfp_mask>0x[a-z0-9]+)(\((?P<trigger_proc_gfp_flags>[A-Z_|]+)\))?, ' r'gfp_mask=(?P<trigger_proc_gfp_mask>0x[a-z0-9]+)(\((?P<trigger_proc_gfp_flags>[A-Z_|]+)\))?, '
r'(nodemask=(?P<trigger_proc_nodemask>([\d,-]+|\(null\))), )?' r'(nodemask=(?P<trigger_proc_nodemask>([\d,-]+|\(null\))), )?'
r'order=(?P<trigger_proc_order>\d+), ' r'order=(?P<trigger_proc_order>\d+), '