Skip to content

vmlinux-gdb.py GDB helper fails to load with Unknown page level on kernel v6.8.12 #319

@cirosantilli

Description

@cirosantilli
Owner

Same repro as #318

I now have debug symbols and source shows, but it is a shame that the vmlinux helper doesn't work.

Trace is:

warning: Source file is more recent than executable.
883     {
loading vmlinux
Traceback (most recent call last):
  File "/root/lkmc/out.docker/linux/v6.8/x86_64/vmlinux-gdb.py", line 44, in <module>
    import linux.pgtable
  File "/root/lkmc/out.docker/linux/v6.8/x86_64/scripts/gdb/linux/pgtable.py", line 29
    raise Exception(f'Unknown page level: {level}')
                                                 ^
SyntaxError: invalid syntax

Maybe this is an issue with the Python version which does not support f strings? Doing:

python3 --version

is at 3.8.10. But f-strings are in 3.6: https://docs.python.org/3/reference/lexical_analysis.html#f-strings

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @cirosantilli

        Issue actions

          vmlinux-gdb.py GDB helper fails to load with Unknown page level on kernel v6.8.12 · Issue #319 · cirosantilli/linux-kernel-module-cheat