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
  • trace
  • ring_buffer.c
Find file BlameHistoryPermalink
  • Steven Rostedt (Google)'s avatar
    ring-buffer: Have 32 bit time stamps use all 64 bits · f03f2abc
    Steven Rostedt (Google) authored Apr 27, 2022
    When the new logic was made to handle deltas of events from interrupts
    that interrupted other events, it required 64 bit local atomics.
    Unfortunately, 64 bit local atomics are expensive on 32 bit architectures.
    Thus, commit 10464b4a ("ring-buffer: Add rb_time_t 64 bit operations
    for speeding up 32 bit") created a type of seq lock timer for 32 bits.
    It used two 32 bit local atomics, but required 2 bits from them each for
    synchronization, making it only 60 bits.
    
    Add a new "msb" field to hold the extra 4 bits that are cut off.
    
    Link: https://lore.kernel.org/all/20220426175338.3807ca4f@gandalf.local.home/
    Link: https://lkml.kernel.org/r/20220427170812.53cc7139@gandalf.local.home
    
    
    
    Signed-off-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
    f03f2abc
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7