mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] scripts/gdb: fix mount flags for lx-symbols
@ 2025-06-19 11:04 Daniel Gomez
  2025-06-27 10:17 ` Brendan Jackman
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Gomez @ 2025-06-19 11:04 UTC (permalink / raw)
  To: Jan Kiszka, Kieran Bingham, Stephen Brennan, Christian Brauner
  Cc: linux-kernel, Daniel Gomez, Daniel Gomez

From: Daniel Gomez <da.gomez@samsung.com>

mount flags have been converted to enum making lx-symbols not able to
find them when debugging. Use the appropriate LX_GDBPARSED macro for the
new enum.

Error:
Reading symbols from vmlinux...
Python Exception <class 'NameError'>: name 'MNT_NOSUID' is not defined

Fixes: 101f2bbab541 ("fs: convert mount flags to enum")

Signed-off-by: Daniel Gomez <da.gomez@samsung.com>
---
 scripts/gdb/linux/constants.py.in | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/scripts/gdb/linux/constants.py.in b/scripts/gdb/linux/constants.py.in
index fd6bd69c5096ac540efb93979d5eb03cb410deb5..d5e3069f42a7c0e07c4a79eeee5ca1842e6ebf86 100644
--- a/scripts/gdb/linux/constants.py.in
+++ b/scripts/gdb/linux/constants.py.in
@@ -73,12 +73,12 @@ if IS_BUILTIN(CONFIG_MODULES):
     LX_GDBPARSED(MOD_RO_AFTER_INIT)
 
 /* linux/mount.h */
-LX_VALUE(MNT_NOSUID)
-LX_VALUE(MNT_NODEV)
-LX_VALUE(MNT_NOEXEC)
-LX_VALUE(MNT_NOATIME)
-LX_VALUE(MNT_NODIRATIME)
-LX_VALUE(MNT_RELATIME)
+LX_GDBPARSED(MNT_NOSUID)
+LX_GDBPARSED(MNT_NODEV)
+LX_GDBPARSED(MNT_NOEXEC)
+LX_GDBPARSED(MNT_NOATIME)
+LX_GDBPARSED(MNT_NODIRATIME)
+LX_GDBPARSED(MNT_RELATIME)
 
 /* linux/threads.h */
 LX_VALUE(NR_CPUS)

---
base-commit: 6e5ab6fee68df8c40b338baeae6e269fa25a7e25
change-id: 20250617-fix-gdb-lx-mnt-d6d5dfe76828

Best regards,
-- 
Daniel Gomez <da.gomez@samsung.com>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-06-27 11:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-19 11:04 [PATCH] scripts/gdb: fix mount flags for lx-symbols Daniel Gomez
2025-06-27 10:17 ` Brendan Jackman
2025-06-27 11:20   ` Daniel Gomez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®