Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • linux
  • Repository
  • linux
  • scripts
  • gdb
  • linux
  • dmesg.py
Find file BlameHistoryPermalink
  • Joel Colledge's avatar
    scripts/gdb: fix lx-dmesg when CONFIG_PRINTK_CALLER is set · ca210ba3
    Joel Colledge authored Oct 18, 2019
    When CONFIG_PRINTK_CALLER is set, struct printk_log contains an
    additional member caller_id.  This affects the offset of the log text.
    Account for this by using the type information from gdb to determine all
    the offsets instead of using hardcoded values.
    
    This fixes following error:
    
      (gdb) lx-dmesg
      Python Exception <class 'ValueError'> embedded null character:
      Error occurred in Python command: embedded null character
    
    The read_u* utility functions now take an offset argument to make them
    easier to use.
    
    Link: http://lkml.kernel.org/r/20191011142500.2339-1-joel.colledge@linbit.com
    
    
    Signed-off-by: default avatarJoel Colledge <joel.colledge@linbit.com>
    Reviewed-by: default avatarJan Kiszka <jan.kiszka@siemens.com>
    Cc: Kieran Bingham <kbingham@kernel.org>
    Cc: Leonard Crestez <leonard.crestez@nxp.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    ca210ba3
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7