Commit b0c6a8e6 authored by ussrhero's avatar ussrhero
Browse files

updated module filter

parent 5dd8b0ee
......@@ -89,7 +89,7 @@ def getUniqueModuleList(dumpDescList, moduleFilter):
for dump in dumpDescList:
for module in dump.modules:
if moduleFilter == '' or eval(moduleFilter, globals(), { 'manufactor' : module.manufactor, 'isDriver' : module.isDriver, 'name' : module.name } ):
if module.isDriver and (moduleFilter == '' or eval(moduleFilter, globals(), { 'manufactor' : module.manufactor, 'isDriver' : module.isDriver, 'name' : module.name } ) ):
moduleId = module.getUniqueId()
if not moduleId in uniqueModules:
uniqueModules[moduleId] = module
......@@ -190,7 +190,7 @@ def main():
parser.add_argument('-f', '--files', metavar='FILE', nargs='+', help='list of dump files')
parser.add_argument('-d', '--dir', metavar='DIRECTORY', help='directory with dump files')
parser.add_argument('-m', '--module', metavar='FILTER', dest = 'moduleFilter', help='module filter', default='not manufactor in ("Microsoft") and isDriver' )
parser.add_argument('-m', '--module', metavar='FILTER', dest = 'moduleFilter', help='module filter', default='not manufactor in ("Microsoft")' )
parser.add_argument('-v', '--verbose', help='verbose output', action='store_true', default=False)
parser.add_argument('-r', '--rate', help='filter dump by rate', type=int, default=0)
parser.add_argument('-p', '--processes', help='load dump on multi core', dest='processNumber', type=int, default=-1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment