kernel/events/callchain.c
Source file repositories/reference/linux-study-clean/kernel/events/callchain.c
File Facts
- System
- Linux kernel
- Corpus path
kernel/events/callchain.c- Extension
.c- Size
- 8271 bytes
- Lines
- 331
- 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.
- 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/perf_event.hlinux/slab.hlinux/sched/task_stack.hlinux/uprobes.hinternal.h
Detected Declarations
struct callchain_cpus_entriesfunction perf_callchain_entry__sizeoffunction perf_callchain_kernelfunction release_callchain_buffersfunction alloc_callchain_buffersfunction for_each_possible_cpufunction get_callchain_buffersfunction put_callchain_buffersfunction put_callchain_entryfunction fixup_uretprobe_trampoline_entriesfunction get_perf_callchainfunction perf_event_max_stack_handlerfunction init_callchain_sysctlsmodule init init_callchain_sysctls
Annotated Snippet
core_initcall(init_callchain_sysctls);
Annotation
- Immediate include surface: `linux/perf_event.h`, `linux/slab.h`, `linux/sched/task_stack.h`, `linux/uprobes.h`, `internal.h`.
- Detected declarations: `struct callchain_cpus_entries`, `function perf_callchain_entry__sizeof`, `function perf_callchain_kernel`, `function release_callchain_buffers`, `function alloc_callchain_buffers`, `function for_each_possible_cpu`, `function get_callchain_buffers`, `function put_callchain_buffers`, `function put_callchain_entry`, `function fixup_uretprobe_trampoline_entries`.
- Atlas domain: Core OS / Scheduler, Processes, Timers, Sync, And Syscalls.
- 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.