Code Review: Get rid of 'kvo' in favor of kernel.offset

This commit is contained in:
David McDonald
2025-03-05 17:59:49 -06:00
parent a192546eb0
commit 76cceb93cb
2 changed files with 2 additions and 10 deletions
@@ -322,11 +322,7 @@ class Modules(interfaces.plugins.PluginInterface):
"""
kernel = context.modules[kernel_module_name]
kvo = context.layers[kernel.layer_name].config.get(
"kernel_virtual_offset", None
)
if not kvo:
if not kernel.offset:
raise ValueError(
"Intel layer does not have an associated kernel virtual offset, failing"
)
@@ -228,11 +228,7 @@ class PsList(interfaces.plugins.PluginInterface, timeliner.TimeLinerInterface):
kernel = context.modules[kernel_module_name]
# We only use the object factory to demonstrate how to use one
kvo = context.layers[kernel.layer_name].config.get(
"kernel_virtual_offset", None
)
if not kvo:
if not kernel.offset:
raise ValueError(
"Intel layer does not have an associated kernel virtual offset, failing"
)