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
You need to sign in or sign up before continuing.
  • linux
  • lib
  • dynamic_debug.c
Find file BlameHistoryPermalink
  • Thomas Weißschuh's avatar
    dyndbg: add source filename to prefix · 31ed379b
    Thomas Weißschuh authored Jul 09, 2023
    
    
    Printing the line number without the file is of limited usefulness.
    
    Knowing the filename also makes it also easier to relate the logged
    information to the controlfile.
    
    Example:
    
        # modprobe test_dynamic_debug
        # echo 'file test_dynamic_debug.c =pfsl' > /proc/dynamic_debug/control
        # echo 1 > /sys/module/test_dynamic_debug/parameters/do_prints
        # dmesg | tail -2
        [   71.802212] do_cats:lib/test_dynamic_debug.c:103: test_dd: doing categories
        [   71.802227] do_levels:lib/test_dynamic_debug.c:123: test_dd: doing levels
    
    Signed-off-by: default avatarThomas Weißschuh <linux@weissschuh.net>
    Acked-by: default avatarJim Cromie <jim.cromie@gmail.com>
    Acked-by: default avatarJason Baron <jbaron@akamai.com>
    Reviewed-by: default avatarLuis Chamberlain <mcgrof@kernel.org>
    Link: https://lore.kernel.org/r/20230709-dyndbg-filename-v2-3-fd83beef0925@weissschuh.net
    
    
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    31ed379b
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7