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
  • tools
  • testing
  • memblock
  • tests
  • alloc_api.c
Find file BlameHistoryPermalink
  • Rebecca Mckeever's avatar
    memblock tests: update alloc_api to test memblock_alloc_raw · deee033e
    Rebecca Mckeever authored Aug 27, 2022
    
    
    Update memblock_alloc() tests so that they test either memblock_alloc()
    or memblock_alloc_raw() depending on the value of alloc_test_flags. Run
    through all the existing tests in memblock_alloc_api twice: once for
    memblock_alloc() and once for memblock_alloc_raw().
    
    When the tests run memblock_alloc(), they test that the entire memory
    region is zero. When the tests run memblock_alloc_raw(), they test that
    the entire memory region is nonzero. The content of the memory region is
    initialized to nonzero, and we expect it to remain unchanged if running
    memblock_alloc_raw().
    
    Reviewed-by: default avatarShaoqin Huang <shaoqin.huang@intel.com>
    Signed-off-by: default avatarRebecca Mckeever <remckee0@gmail.com>
    Signed-off-by: default avatarMike Rapoport <rppt@linux.ibm.com>
    Link: https://lore.kernel.org/r/5a7cfb2f807ee2cb53ee77f9f5c910107b253d6e.1661578349.git.remckee0@gmail.com
    deee033e
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7