drivers/perf/arm-cmn.c
Source file repositories/reference/linux-study-clean/drivers/perf/arm-cmn.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/perf/arm-cmn.c- Extension
.c- Size
- 83609 bytes
- Lines
- 2713
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- 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/acpi.hlinux/bitfield.hlinux/bitops.hlinux/debugfs.hlinux/interrupt.hlinux/io.hlinux/io-64-nonatomic-lo-hi.hlinux/kernel.hlinux/list.hlinux/module.hlinux/of.hlinux/perf_event.hlinux/platform_device.hlinux/slab.hlinux/sort.h
Detected Declarations
struct arm_cmn_nodestruct arm_cmn_dtmstruct arm_cmn_dtcstruct arm_cmnstruct arm_cmn_nodeidstruct arm_cmn_hw_eventstruct arm_cmn_event_attrstruct arm_cmn_format_attrstruct arm_cmn_valenum cmn_modelenum cmn_partenum cmn_revisionenum cmn_node_typeenum cmn_filter_selectfunction arm_cmn_xyidbitsfunction arm_cmn_nidfunction arm_cmn_modelfunction arm_cmn_pmu_offsetfunction arm_cmn_device_connect_infofunction arm_cmn_show_logidfunction arm_cmn_map_showfunction arm_cmn_debugfs_initfunction arm_cmn_debugfs_initfunction arm_cmn_set_indexfunction arm_cmn_get_indexfunction arm_cmn_set_wp_idxfunction arm_cmn_get_wp_idxfunction arm_cmn_event_showfunction arm_cmn_event_attr_is_visiblefunction arm_cmn_format_showfunction arm_cmn_cpumask_showfunction arm_cmn_identifier_showfunction arm_cmn_find_free_wp_idxfunction arm_cmn_get_assigned_wp_idxfunction arm_cmn_claim_wp_idxfunction arm_cmn_wp_configfunction arm_cmn_set_statefunction arm_cmn_clear_statefunction arm_cmn_pmu_enablefunction arm_cmn_pmu_disablefunction arm_cmn_read_dtmfunction arm_cmn_read_ccfunction arm_cmn_read_counterfunction arm_cmn_init_counterfunction for_each_hw_dtc_idxfunction arm_cmn_event_readfunction arm_cmn_set_event_sel_hifunction arm_cmn_set_event_sel_lo
Annotated Snippet
module_init(arm_cmn_init);
module_exit(arm_cmn_exit);
MODULE_AUTHOR("Robin Murphy <robin.murphy@arm.com>");
MODULE_DESCRIPTION("Arm CMN/CI interconnect PMU driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/bitfield.h`, `linux/bitops.h`, `linux/debugfs.h`, `linux/interrupt.h`, `linux/io.h`, `linux/io-64-nonatomic-lo-hi.h`, `linux/kernel.h`.
- Detected declarations: `struct arm_cmn_node`, `struct arm_cmn_dtm`, `struct arm_cmn_dtc`, `struct arm_cmn`, `struct arm_cmn_nodeid`, `struct arm_cmn_hw_event`, `struct arm_cmn_event_attr`, `struct arm_cmn_format_attr`, `struct arm_cmn_val`, `enum cmn_model`.
- Atlas domain: Driver Families / drivers/perf.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.