arch/arm/probes/kprobes/test-core.c
Source file repositories/reference/linux-study-clean/arch/arm/probes/kprobes/test-core.c
File Facts
- System
- Linux kernel
- Corpus path
arch/arm/probes/kprobes/test-core.c- Extension
.c- Size
- 41989 bytes
- Lines
- 1673
- Domain
- Architecture Layer
- Bucket
- arch/arm
- Inferred role
- Architecture Layer: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- 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/kernel.hlinux/module.hlinux/slab.hlinux/sched/clock.hlinux/kprobes.hlinux/errno.hlinux/stddef.hlinux/bug.hasm/opcodes.hcore.htest-core.h../decode-arm.h../decode-thumb.h
Detected Declarations
struct benchmarksstruct table_test_argsstruct coverage_entrystruct coverage_tablestruct test_probefunction __arm_kprobes_test_funcfunction __thumb_kprobes_test_funcsfunction call_test_funcfunction pre_handlerfunction post_handlerfunction test_kprobefunction kretprobe_handlerfunction test_kretprobefunction run_api_testsfunction benchmark_nopfunction benchmark_pushpop1function benchmark_pushpop2function benchmark_pushpop3function benchmark_pushpop4function benchmark_pushpop_thumbfunction benchmark_pre_handlerfunction benchmarkfunction kprobe_benchmarkfunction run_benchmarksfunction table_iterfunction table_test_failfunction table_test_fnfunction table_testfunction coverage_start_registersfunction coverage_start_fnfunction coverage_startfunction coverage_add_registersfunction coverage_addfunction coverage_endfunction __kprobes_test_case_startfunction __kprobes_test_case_end_32function __kprobes_test_case_end_16function __kprobes_test_case_end_32function test_check_ccfunction test_context_cpsrfunction setup_test_contextfunction unregister_test_probefunction register_test_probefunction test_before_pre_handlerfunction test_before_post_handlerfunction test_case_pre_handlerfunction test_after_pre_handlerfunction test_case_cleanup
Annotated Snippet
module_init(run_all_tests)
module_exit(kprobe_test_exit)
MODULE_LICENSE("GPL");
#else /* !MODULE */
late_initcall(run_all_tests);
#endif
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/slab.h`, `linux/sched/clock.h`, `linux/kprobes.h`, `linux/errno.h`, `linux/stddef.h`, `linux/bug.h`.
- Detected declarations: `struct benchmarks`, `struct table_test_args`, `struct coverage_entry`, `struct coverage_table`, `struct test_probe`, `function __arm_kprobes_test_func`, `function __thumb_kprobes_test_funcs`, `function call_test_func`, `function pre_handler`, `function post_handler`.
- Atlas domain: Architecture Layer / arch/arm.
- 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.