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
  • kernel
  • trace
  • ring_buffer.c
Find file BlameHistoryPermalink
  • Lai Jiangshan's avatar
    ring_buffer: fix ring_buffer_read_page() · 667d2412
    Lai Jiangshan authored Feb 09, 2009
    
    
    Impact: change API and init bpage when copy
    
    ring_buffer_read_page()/rb_remove_entries() may be called for
    a partially consumed page.
    
    Add a parameter for rb_remove_entries() and make it update
    cpu_buffer->entries correctly for partially consumed pages.
    
    ring_buffer_read_page() now returns the offset to the next event.
    
    Init the bpage's time_stamp when return value is 0.
    
    Signed-off-by: default avatarLai Jiangshan <laijs@cn.fujitsu.com>
    Signed-off-by: default avatarSteven Rostedt <srostedt@redhat.com>
    667d2412
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7