comparison harness: module alignment

This commit is contained in:
Abyss Watcher
2025-04-08 19:48:15 +02:00
parent 842d0e7703
commit 54f64fcab8
@@ -474,10 +474,9 @@ class Modules(interfaces.configuration.VersionableInterface):
Returns:
The struct module alignment
"""
# FIXME: When dwarf2json/ISF supports type alignments. Read it directly from the type metadata
# Additionally, while 'context' and 'vmlinux_module_name' are currently unused, they will be
# essential for retrieving type metadata in the future.
return 64
# Not L1 cache aligned, but compiler should naturally
# align to the referenced type as a minimum.
return context.modules[vmlinux_module_name].get_type("pointer").size
@classmethod
def list_modules(