drivers/perf/arm_cspmu/ampere_cspmu.c
Source file repositories/reference/linux-study-clean/drivers/perf/arm_cspmu/ampere_cspmu.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/perf/arm_cspmu/ampere_cspmu.c- Extension
.c- Size
- 7964 bytes
- Lines
- 262
- Domain
- Driver Families
- Bucket
- drivers/perf
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- 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/io.hlinux/module.hlinux/topology.harm_cspmu.h
Detected Declarations
struct ampere_cspmu_ctxfunction ampere_cspmu_get_event_attrsfunction ampere_cspmu_get_format_attrsfunction ampere_cspmu_get_namefunction ampere_cspmu_set_cc_filterfunction ampere_cspmu_validate_configsfunction ampere_cspmu_validate_eventfunction ampere_cspmu_init_opsfunction ampere_cspmu_initfunction ampere_cspmu_exitmodule init ampere_cspmu_init
Annotated Snippet
module_init(ampere_cspmu_init);
module_exit(ampere_cspmu_exit);
MODULE_DESCRIPTION("Ampere SoC Performance Monitor Driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/io.h`, `linux/module.h`, `linux/topology.h`, `arm_cspmu.h`.
- Detected declarations: `struct ampere_cspmu_ctx`, `function ampere_cspmu_get_event_attrs`, `function ampere_cspmu_get_format_attrs`, `function ampere_cspmu_get_name`, `function ampere_cspmu_set_cc_filter`, `function ampere_cspmu_validate_configs`, `function ampere_cspmu_validate_event`, `function ampere_cspmu_init_ops`, `function ampere_cspmu_init`, `function ampere_cspmu_exit`.
- Atlas domain: Driver Families / drivers/perf.
- 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.