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
  • kernel
  • debug
  • kdb
  • kdb_debugger.c
Find file BlameHistoryPermalink
  • Sumit Garg's avatar
    kdb: Get rid of custom debug heap allocator · 95f7f154
    Sumit Garg authored Jul 14, 2021
    
    
    Currently the only user for debug heap is kdbnearsym() which can be
    modified to rather use statically allocated buffer for symbol name as
    per it's current usage. So do that and hence remove custom debug heap
    allocator.
    
    Note that this change puts a restriction on kdbnearsym() callers to
    carefully use shared namebuf such that a caller should consume the symbol
    returned immediately prior to another call to fetch a different symbol.
    
    Also, this change uses standard KSYM_NAME_LEN macro for namebuf
    allocation instead of local variable: knt1_size which should avoid any
    conflicts caused by changes to KSYM_NAME_LEN macro value.
    
    This change has been tested using kgdbtest on arm64 which doesn't show
    any regressions.
    
    Suggested-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
    Signed-off-by: default avatarSumit Garg <sumit.garg@linaro.org>
    Reviewed-by: default avatarDouglas Anderson <dianders@chromium.org>
    Link: https://lore.kernel.org/r/20210714055620.369915-1-sumit.garg@linaro.org
    
    
    Signed-off-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
    95f7f154
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7