def getProcList(self, fields=('<STR_LIT>', '<STR_LIT:user>', '<STR_LIT>',), threads=False,<EOL>**kwargs):
field_list = list(fields)<EOL>for key in kwargs:<EOL><INDENT>col = re.sub('<STR_LIT>', '<STR_LIT>', key)<EOL>if not col in field_list:<EOL><INDENT>field_list.append(col)<EOL><DEDENT><DEDENT>pinfo = self.parseProcCmd(field_list, threads)<EOL>if pinfo:<EOL><INDENT>if len(kwargs) > <NUM_LIT:0>:<EOL><INDENT>pfilter = util.TableFilter()<EOL>pfilter.registerFilters(**kwargs)<EOL>stats = pfilter.applyFilters(pinfo['<STR_LIT>'], pinfo['<STR_LIT>'])<EOL>return {'<STR_LIT>': pinfo['<STR_LIT>'], '<STR_LIT>': stats}<EOL><DEDENT>else:<EOL><INDENT>return pinfo<EOL><DEDENT><DEDENT>else:<EOL><INDENT>return None<EOL><DEDENT>
Execute ps command with custom output format with columns columns 
        from fields, select lines using the filters defined by kwargs and return 
        result as a nested list.

        The Standard Format Specifiers from ps man page must be used for the
        fields parameter.

        @param fields:   Fields included in the output.
                         Default: pid, user, cmd
        @param threads:  If True, include threads in output.
        @param **kwargs: Keyword variables are used for filtering the results
                         depending on the values of the columns. Each keyword 
                         must correspond to a field name with an optional 
                         suffix:
                         field:          Field equal to value or in list of 
                                         values.
                         field_ic:       Field equal to value or in list of 
                                         values, using case insensitive 
                                         comparison.
                         field_regex:    Field matches regex value or matches
                                         with any regex in list of values.
                         field_ic_regex: Field matches regex value or matches
                                         with any regex in list of values 
                                         using case insensitive match.                                  
        @return:         List of headers and list of rows and columns.