drgn.helpers.linux.mm: comment that vmap_nodes workaround also applies to !SMP

Signed-off-by: Omar Sandoval <osandov@osandov.com>
This commit is contained in:
Omar Sandoval 2024-06-20 10:35:24 -07:00
parent 680b2d53f9
commit d4da5d8173

View File

@ -1129,9 +1129,9 @@ def _vmap_nodes(prog: Program) -> Object:
try: try:
return vmap_nodes.read_() return vmap_nodes.read_()
except ObjectAbsentError: except ObjectAbsentError:
# On 32-bit kernels, vmap_nodes is initialized to &single and never # On !SMP and 32-bit kernels, vmap_nodes is initialized to &single and
# reassigned. GCC as of version 12.2 doesn't generate a location for # never reassigned. GCC as of version 12.2 doesn't generate a location
# vmap_nodes description in that case. # for vmap_nodes description in that case.
return prog.variable("single", "mm/vmalloc.c").address_of_() return prog.variable("single", "mm/vmalloc.c").address_of_()