summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorRob Clark <robdclark@chromium.org>2025-01-03 18:13:45 +0300
committerRob Clark <robdclark@chromium.org>2025-01-03 18:13:45 +0300
commitc5fb51b71788926feef0d07f30c8af1d5e4af1a6 (patch)
tree4f1b22e7cde61a76c6bd00c246265f3f2f166d79 /scripts/gdb/linux/modules.py
parenta5463629299bc12d7a6308d20e662d5b36e10cb9 (diff)
parentb44b9bc7cab2967c3d6a791b1cd542c89fc07f0e (diff)
downloadlinux-c5fb51b71788926feef0d07f30c8af1d5e4af1a6.tar.xz
Merge remote-tracking branch 'pm/opp/linux-next' into HEAD
Merge pm/opp tree to get dev_pm_opp_get_bw() Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
-rw-r--r--scripts/gdb/linux/modules.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/gdb/linux/modules.py b/scripts/gdb/linux/modules.py
index 298dfcc25eae..fa15f872ddbe 100644
--- a/scripts/gdb/linux/modules.py
+++ b/scripts/gdb/linux/modules.py
@@ -19,6 +19,9 @@ from linux import cpus, utils, lists, constants
module_type = utils.CachedType("struct module")
+def has_modules():
+ return utils.gdb_eval_or_none("modules") is not None
+
def module_list():
global module_type
modules = utils.gdb_eval_or_none("modules")