Convert all remaining plugins to use the new classmethod pslist.

This commit is contained in:
Mike Auty
2018-06-16 13:38:48 +01:00
parent 6ca34e6607
commit ac8401991c
13 changed files with 89 additions and 55 deletions
+3 -3
View File
@@ -54,8 +54,6 @@ class Maps(plugins.PluginInterface):
))
def run(self):
plugin = pslist.PsList(self.context, self.config_path)
return renderers.TreeGrid(
[("PID", int),
("Process", str),
@@ -67,4 +65,6 @@ class Maps(plugins.PluginInterface):
("Minor", int),
("Inode", int),
("File Path", str)],
self._generator(plugin.list_tasks()))
self._generator(pslist.PsList.list_tasks(self.context,
self.config['primary'],
self.config['vmlinux'])))