drivers/perf/arm-ccn.c
Source file repositories/reference/linux-study-clean/drivers/perf/arm-ccn.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/perf/arm-ccn.c- Extension
.c- Size
- 46350 bytes
- Lines
- 1565
- 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/ctype.hlinux/hrtimer.hlinux/idr.hlinux/interrupt.hlinux/io.hlinux/module.hlinux/mod_devicetable.hlinux/perf_event.hlinux/platform_device.hlinux/slab.h
Detected Declarations
struct arm_ccn_componentstruct arm_ccn_dtstruct arm_ccnstruct arm_ccn_pmu_eventfunction arm_ccn_node_to_xpfunction arm_ccn_node_to_xp_portfunction arm_ccn_pmu_config_setfunction herefunction arm_ccn_pmu_events_is_visiblefunction arm_ccn_pmu_cmp_mask_showfunction arm_ccn_pmu_cmp_mask_storefunction arm_ccn_pmu_cpumask_showfunction arm_ccn_pmu_timer_periodfunction arm_ccn_pmu_alloc_bitfunction arm_ccn_pmu_type_eqfunction arm_ccn_pmu_event_allocfunction arm_ccn_pmu_event_releasefunction arm_ccn_pmu_event_initfunction for_each_sibling_eventfunction arm_ccn_pmu_read_counterfunction arm_ccn_pmu_event_updatefunction arm_ccn_pmu_xp_dt_configfunction arm_ccn_pmu_event_startfunction arm_ccn_pmu_event_stopfunction arm_ccn_pmu_xp_watchpoint_configfunction arm_ccn_pmu_xp_event_configfunction arm_ccn_pmu_node_event_configfunction arm_ccn_pmu_event_configfunction arm_ccn_pmu_active_countersfunction arm_ccn_pmu_event_addfunction arm_ccn_pmu_event_delfunction arm_ccn_pmu_event_readfunction arm_ccn_pmu_enablefunction arm_ccn_pmu_disablefunction arm_ccn_pmu_overflow_handlerfunction arm_ccn_pmu_timer_handlerfunction arm_ccn_pmu_offline_cpufunction arm_ccn_pmu_initfunction arm_ccn_pmu_cleanupfunction arm_ccn_for_each_valid_regionfunction arm_ccn_get_nodes_numfunction arm_ccn_init_nodesfunction arm_ccn_error_handlerfunction arm_ccn_irq_handlerfunction arm_ccn_probefunction arm_ccn_removefunction arm_ccn_initfunction arm_ccn_exit
Annotated Snippet
module_init(arm_ccn_init);
module_exit(arm_ccn_exit);
MODULE_AUTHOR("Pawel Moll <pawel.moll@arm.com>");
MODULE_DESCRIPTION("ARM CCN (Cache Coherent Network) Performance Monitor Driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/ctype.h`, `linux/hrtimer.h`, `linux/idr.h`, `linux/interrupt.h`, `linux/io.h`, `linux/module.h`, `linux/mod_devicetable.h`, `linux/perf_event.h`.
- Detected declarations: `struct arm_ccn_component`, `struct arm_ccn_dt`, `struct arm_ccn`, `struct arm_ccn_pmu_event`, `function arm_ccn_node_to_xp`, `function arm_ccn_node_to_xp_port`, `function arm_ccn_pmu_config_set`, `function here`, `function arm_ccn_pmu_events_is_visible`, `function arm_ccn_pmu_cmp_mask_show`.
- 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.