summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>2023-06-05 11:10:23 +0100
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>2023-06-05 11:10:23 +0100
commit9ff17e6bdaa50892dd9bdb1b116cb71b73dd711a (patch)
treecbffbccb83865b418a0aabb4487b6e8fe70c590d /scripts/gdb/linux/modules.py
parentd922b80b1010cd6164fa7d3c197b4fbf94b47beb (diff)
parent2e1492835e439fceba57a5b0f9b17da8e78ffa3d (diff)
Merge drm/drm-next into drm-intel-gt-next
For conflict avoidance we need the following commit: c9a9f18d3ad8 drm/i915/huc: use const struct bus_type pointers Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
-rw-r--r--scripts/gdb/linux/modules.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/gdb/linux/modules.py b/scripts/gdb/linux/modules.py
index 441b23239896..261f28640f4c 100644
--- a/scripts/gdb/linux/modules.py
+++ b/scripts/gdb/linux/modules.py
@@ -13,7 +13,7 @@
import gdb
-from linux import cpus, utils, lists
+from linux import cpus, utils, lists, constants
module_type = utils.CachedType("struct module")
@@ -73,7 +73,7 @@ class LxLsmod(gdb.Command):
" " if utils.get_long_type().sizeof == 8 else ""))
for module in module_list():
- layout = module['core_layout']
+ layout = module['mem'][constants.LX_MOD_TEXT]
gdb.write("{address} {name:<19} {size:>8} {ref}".format(
address=str(layout['base']).split()[0],
name=module['name'].string(),