Rename filt to filter_func (because we value clarity over brevity) and another small fix.

This commit is contained in:
Mike Auty
2018-12-19 22:46:33 +00:00
parent 70e8204113
commit 189c8786f1
8 changed files with 21 additions and 19 deletions
+2 -2
View File
@@ -43,11 +43,11 @@ class Elfs(plugins.PluginInterface):
yield (0, (task.pid, name, format_hints.Hex(vma.vm_start), format_hints.Hex(vma.vm_end), path))
def run(self):
filt = pslist.PsList.create_filter([self.config.get('pid', None)])
filter_func = pslist.PsList.create_filter([self.config.get('pid', None)])
plugin = pslist.PsList.list_tasks
return renderers.TreeGrid(
[("PID", int), ("Process", str), ("Start", format_hints.Hex), ("End", format_hints.Hex),
("File Path", str)],
self._generator(plugin(self.context, self.config['primary'], self.config['vmlinux'], filter = filt)))
self._generator(plugin(self.context, self.config['primary'], self.config['vmlinux'], filter = filter_func)))