Fix: Error early if no inodes are found in linux.pagecache.InodePages plugin

This commit is contained in:
TheMythologist
2024-12-17 12:15:46 +08:00
parent 0b04a138ad
commit 0255151ef5
@@ -483,6 +483,9 @@ class InodePages(plugins.PluginInterface):
if inode_in.path == self.config["find"]:
inode = inode_in.inode
break # Only the first match
else:
vollog.error("Unable to find inode with path %s", self.config["find"])
return None
elif self.config["inode"]:
inode = vmlinux.object("inode", self.config["inode"], absolute=True)