drivers/perf/arm_cspmu/arm_cspmu.c
Source file repositories/reference/linux-study-clean/drivers/perf/arm_cspmu/arm_cspmu.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/perf/arm_cspmu/arm_cspmu.c- Extension
.c- Size
- 36827 bytes
- Lines
- 1448
- 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/cacheinfo.hlinux/ctype.hlinux/interrupt.hlinux/io-64-nonatomic-lo-hi.hlinux/module.hlinux/mutex.hlinux/of.hlinux/perf_event.hlinux/platform_device.harm_cspmu.hacpi/processor.h
Detected Declarations
function read_reg64_hilohifunction supports_cycle_counterfunction counter_sizefunction counter_maskfunction use_64b_counter_regfunction arm_cspmu_sysfs_event_showfunction arm_cspmu_get_event_attrsfunction arm_cspmu_event_attr_is_visiblefunction arm_cspmu_get_format_attrsfunction arm_cspmu_event_typefunction arm_cspmu_is_cycle_counter_eventfunction arm_cspmu_identifier_showfunction arm_cspmu_cpumask_showfunction arm_cspmu_get_pmiidrfunction arm_cspmu_init_impl_opsfunction arm_cspmu_alloc_event_attr_groupfunction arm_cspmu_alloc_format_attr_groupfunction arm_cspmu_alloc_attr_groupsfunction arm_cspmu_reset_countersfunction arm_cspmu_start_countersfunction arm_cspmu_stop_countersfunction arm_cspmu_enablefunction arm_cspmu_disablefunction arm_cspmu_get_event_idxfunction arm_cspmu_validate_eventfunction arm_cspmu_validate_groupfunction for_each_sibling_eventfunction arm_cspmu_event_initfunction taskfunction counter_offsetfunction arm_cspmu_write_counterfunction arm_cspmu_read_counterfunction arm_cspmu_set_event_periodfunction arm_cspmu_enable_counterfunction arm_cspmu_disable_counterfunction arm_cspmu_event_updatefunction arm_cspmu_set_eventfunction arm_cspmu_set_ev_filterfunction arm_cspmu_set_cc_filterfunction arm_cspmu_startfunction arm_cspmu_stopfunction to_phys_idxfunction arm_cspmu_addfunction arm_cspmu_delfunction arm_cspmu_readfunction arm_cspmu_init_mmiofunction arm_cspmu_get_reset_overflowfunction arm_cspmu_handle_irq
Annotated Snippet
module_init(arm_cspmu_init);
module_exit(arm_cspmu_exit);
MODULE_DESCRIPTION("ARM CoreSight Architecture Performance Monitor Driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/cacheinfo.h`, `linux/ctype.h`, `linux/interrupt.h`, `linux/io-64-nonatomic-lo-hi.h`, `linux/module.h`, `linux/mutex.h`, `linux/of.h`.
- Detected declarations: `function read_reg64_hilohi`, `function supports_cycle_counter`, `function counter_size`, `function counter_mask`, `function use_64b_counter_reg`, `function arm_cspmu_sysfs_event_show`, `function arm_cspmu_get_event_attrs`, `function arm_cspmu_event_attr_is_visible`, `function arm_cspmu_get_format_attrs`, `function arm_cspmu_event_type`.
- 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.