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
  • Tzvetomir Stoyanov (VMware)'s avatar
    ring-buffer: Add interface for configuring trace sub buffer size · 2808e31e
    Tzvetomir Stoyanov (VMware) authored Dec 19, 2023
    The trace ring buffer sub page size can be configured, per trace
    instance. A new ftrace file "buffer_subbuf_order" is added to get and
    set the size of the ring buffer sub page for current trace instance.
    The size must be an order of system page size, that's why the new
    interface works with system page order, instead of absolute page size:
    0 means the ring buffer sub page is equal to 1 system page and so
    forth:
    0 - 1 system page
    1 - 2 system pages
    2 - 4 system pages
    ...
    The ring buffer sub page size is limited between 1 and 128 system
    pages. The default value is 1 system page.
    New ring buffer APIs are introduced:
     ring_buffer_subbuf_order_set()
     ring_buffer_subbuf_order_get()
     ring_buffer_subbuf_size_get()
    
    Link: https://lore.kernel.org/linux-trace-devel/20211213094825.61876-4-tz.stoyanov@gmail.com
    Link: https://lore.kernel.org/linux-trace-kernel/20231219185628.298324722@goodmis.org
    
    
    
    Cc: Masami Hiramatsu <mhiramat@kernel.org>
    Cc: Mark Rutland <mark.rutland@arm.com>
    Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Cc: Vincent Donnefort <vdonnefort@google.com>
    Cc: Kent Overstreet <kent.overstreet@gmail.com>
    Signed-off-by: default avatarTzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>
    Signed-off-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
    2808e31e
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7