Skip to content

Commit ed8af0a

Browse files
committed
lru_cache get_modules_memory_boundaries()
1 parent 6df8ac2 commit ed8af0a

File tree

1 file changed

+3
-1
lines changed
  • volatility3/framework/symbols/linux/utilities

1 file changed

+3
-1
lines changed

volatility3/framework/symbols/linux/utilities/modules.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import logging
22
import warnings
3+
import functools
34
from typing import (
45
Iterable,
56
Iterator,
@@ -72,7 +73,7 @@ def gather_modules(
7273
class Modules(interfaces.configuration.VersionableInterface):
7374
"""Kernel modules related utilities."""
7475

75-
_version = (3, 0, 1)
76+
_version = (3, 0, 2)
7677
_required_framework_version = (2, 0, 0)
7778

7879
framework.require_interface_version(*_required_framework_version)
@@ -313,6 +314,7 @@ def run_modules_scanners(
313314
return run_results
314315

315316
@staticmethod
317+
@functools.lru_cache
316318
def get_modules_memory_boundaries(
317319
context: interfaces.context.ContextInterface,
318320
vmlinux_module_name: str,

0 commit comments

Comments
 (0)