tools/testing/selftests/net/bench/page_pool/bench_page_pool_simple.c
Source file repositories/reference/linux-study-clean/tools/testing/selftests/net/bench/page_pool/bench_page_pool_simple.c
File Facts
- System
- Linux kernel
- Corpus path
tools/testing/selftests/net/bench/page_pool/bench_page_pool_simple.c- Extension
.c- Size
- 6987 bytes
- Lines
- 268
- Domain
- Support Tooling And Documentation
- Bucket
- tools
- Inferred role
- Support Tooling And Documentation: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
- Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/interrupt.hlinux/limits.hlinux/module.hlinux/mutex.hnet/page_pool/helpers.htime_bench.h
Detected Declarations
enum benchmark_bitenum test_typefunction time_bench_for_loopfunction time_bench_atomic_incfunction time_bench_lockfunction pp_fill_ptr_ringfunction time_bench_page_poolfunction time_bench_page_pool01_fast_pathfunction time_bench_page_pool02_ptr_ringfunction time_bench_page_pool03_slowfunction run_benchmark_testsfunction bench_page_pool_simple_module_initfunction bench_page_pool_simple_module_exitmodule init bench_page_pool_simple_module_init
Annotated Snippet
module_init(bench_page_pool_simple_module_init);
static void __exit bench_page_pool_simple_module_exit(void)
{
if (verbose)
pr_info("Unloaded\n");
}
module_exit(bench_page_pool_simple_module_exit);
MODULE_DESCRIPTION("Benchmark of page_pool simple cases");
MODULE_AUTHOR("Jesper Dangaard Brouer <netoptimizer@brouer.com>");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/interrupt.h`, `linux/limits.h`, `linux/module.h`, `linux/mutex.h`, `net/page_pool/helpers.h`, `time_bench.h`.
- Detected declarations: `enum benchmark_bit`, `enum test_type`, `function time_bench_for_loop`, `function time_bench_atomic_inc`, `function time_bench_lock`, `function pp_fill_ptr_ring`, `function time_bench_page_pool`, `function time_bench_page_pool01_fast_path`, `function time_bench_page_pool02_ptr_ring`, `function time_bench_page_pool03_slow`.
- Atlas domain: Support Tooling And Documentation / tools.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.