arch/s390/kernel/perf_pai.c
Source file repositories/reference/linux-study-clean/arch/s390/kernel/perf_pai.c
File Facts
- System
- Linux kernel
- Corpus path
arch/s390/kernel/perf_pai.c- Extension
.c- Size
- 35210 bytes
- Lines
- 1241
- Domain
- Architecture Layer
- Bucket
- arch/s390
- 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.
- 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/kernel.hlinux/kernel_stat.hlinux/percpu.hlinux/notifier.hlinux/init.hlinux/io.hlinux/perf_event.hasm/ctlreg.hasm/pai.hasm/debug.h
Detected Declarations
struct pai_userdatastruct paiext_cbstruct pai_mapstruct pai_mapptrstruct pai_pmufunction pai_root_freefunction pai_root_allocfunction pai_freefunction pai_event_destroy_cpufunction pai_event_destroyfunction paicrypt_event_destroyfunction pai_getctrfunction pai_setctrfunction pai_getdatafunction paicrypt_getallfunction pai_alloc_cpufunction pai_allocfunction for_each_online_cpufunction pai_event_validfunction pai_event_initfunction paicrypt_event_initfunction pai_readfunction paicrypt_readfunction pai_startfunction paicrypt_startfunction pai_addfunction paicrypt_addfunction pai_stopfunction paicrypt_stopfunction pai_delfunction paicrypt_delfunction pai_copyfunction paicrypt_delfunction pai_have_samplefunction pai_have_samplesfunction paicrypt_sched_taskfunction paiext_event_destroyfunction paiext_event_initfunction paiext_getallfunction paiext_readfunction paiext_startfunction paiext_addfunction paiext_stopfunction paiext_delfunction paiext_sched_taskfunction attr_event_freefunction attr_event_init_onefunction attr_event_init
Annotated Snippet
device_initcall(pai_init);
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/kernel_stat.h`, `linux/percpu.h`, `linux/notifier.h`, `linux/init.h`, `linux/io.h`, `linux/perf_event.h`, `asm/ctlreg.h`.
- Detected declarations: `struct pai_userdata`, `struct paiext_cb`, `struct pai_map`, `struct pai_mapptr`, `struct pai_pmu`, `function pai_root_free`, `function pai_root_alloc`, `function pai_free`, `function pai_event_destroy_cpu`, `function pai_event_destroy`.
- Atlas domain: Architecture Layer / arch/s390.
- 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.