kernel/trace/ring_buffer_benchmark.c
Source file repositories/reference/linux-study-clean/kernel/trace/ring_buffer_benchmark.c
File Facts
- System
- Linux kernel
- Corpus path
kernel/trace/ring_buffer_benchmark.c- Extension
.c- Size
- 11163 bytes
- Lines
- 500
- Domain
- Core OS
- Bucket
- Scheduler, Processes, Timers, Sync, And Syscalls
- Inferred role
- Core OS: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/ring_buffer.hlinux/completion.hlinux/kthread.huapi/linux/sched/types.hlinux/module.hlinux/ktime.hasm/local.h
Detected Declarations
struct rb_pageenum event_statusfunction break_testfunction read_eventfunction read_pagefunction ring_buffer_consumerfunction for_each_online_cpufunction ring_buffer_producerfunction wait_to_diefunction ring_buffer_consumer_threadfunction ring_buffer_producer_threadfunction ring_buffer_benchmark_initfunction ring_buffer_benchmark_exitmodule init ring_buffer_benchmark_init
Annotated Snippet
module_init(ring_buffer_benchmark_init);
module_exit(ring_buffer_benchmark_exit);
MODULE_AUTHOR("Steven Rostedt");
MODULE_DESCRIPTION("ring_buffer_benchmark");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/ring_buffer.h`, `linux/completion.h`, `linux/kthread.h`, `uapi/linux/sched/types.h`, `linux/module.h`, `linux/ktime.h`, `asm/local.h`.
- Detected declarations: `struct rb_page`, `enum event_status`, `function break_test`, `function read_event`, `function read_page`, `function ring_buffer_consumer`, `function for_each_online_cpu`, `function ring_buffer_producer`, `function wait_to_die`, `function ring_buffer_consumer_thread`.
- Atlas domain: Core OS / Scheduler, Processes, Timers, Sync, And Syscalls.
- Implementation status: integration implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.