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
  • debugobjects.c
Find file BlameHistoryPermalink
  • wuchi's avatar
    lib/debugobjects: fix stat count and optimize debug_objects_mem_init · eabb7f1a
    wuchi authored Jun 11, 2022
    1. Var debug_objects_allocated tracks valid kmem_cache_alloc calls, so
       track it in debug_objects_replace_static_objects.  Do similar things in
       object_cpu_offline.
    
    2. In debug_objects_mem_init, there is no need to call function
       cpuhp_setup_state_nocalls when debug_objects_enabled = 0 (out of
       memory).
    
    Link: https://lkml.kernel.org/r/20220611130634.99741-1-wuchi.zero@gmail.com
    Fixes: 634d61f4 ("debugobjects: Percpu pool lookahead freeing/allocation")
    Fixes: c4b73aab
    
     ("debugobjects: Track number of kmem_cache_alloc/kmem_cache_free done")
    Signed-off-by: default avatarwuchi <wuchi.zero@gmail.com>
    Reviewed-by: default avatarWaiman Long <longman@redhat.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Christoph Hellwig <hch@lst.de>
    Cc: Kees Cook <keescook@chromium.org>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    eabb7f1a
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7