drivers/perf/arm-ni.c
Source file repositories/reference/linux-study-clean/drivers/perf/arm-ni.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/perf/arm-ni.c- Extension
.c- Size
- 21812 bytes
- Lines
- 863
- 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/interrupt.hlinux/io.hlinux/io-64-nonatomic-lo-hi.hlinux/kernel.hlinux/module.hlinux/of.hlinux/perf_event.hlinux/platform_device.hlinux/slab.h
Detected Declarations
struct arm_ni_nodestruct arm_ni_unitstruct arm_ni_cdstruct arm_nistruct arm_ni_event_attrstruct arm_ni_format_attrstruct arm_ni_valenum ni_partenum ni_node_typefunction arm_ni_event_showfunction arm_ni_event_attr_is_visiblefunction cd_for_each_unitfunction arm_ni_format_showfunction arm_ni_cpumask_showfunction arm_ni_identifier_showfunction arm_ni_pmu_enablefunction arm_ni_pmu_disablefunction arm_ni_val_count_eventfunction arm_ni_validate_groupfunction for_each_sibling_eventfunction arm_ni_is_7xxfunction arm_ni_event_initfunction cd_for_each_unitfunction arm_ni_read_ccntfunction arm_ni_event_readfunction arm_ni_event_startfunction arm_ni_event_stopfunction arm_ni_init_ccntfunction arm_ni_init_evcntfunction arm_ni_event_addfunction arm_ni_event_delfunction arm_ni_handle_irqfunction arm_ni_init_cdfunction arm_ni_removefunction ni_for_each_cdfunction arm_ni_probe_domainfunction arm_ni_init_irqsfunction ni_for_each_cdfunction arm_ni_probefunction arm_ni_pmu_migratefunction arm_ni_pmu_online_cpufunction arm_ni_pmu_offline_cpufunction arm_ni_initfunction arm_ni_exitmodule init arm_ni_init
Annotated Snippet
module_init(arm_ni_init);
module_exit(arm_ni_exit);
MODULE_AUTHOR("Robin Murphy <robin.murphy@arm.com>");
MODULE_DESCRIPTION("Arm NI-700 PMU driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/bitfield.h`, `linux/interrupt.h`, `linux/io.h`, `linux/io-64-nonatomic-lo-hi.h`, `linux/kernel.h`, `linux/module.h`, `linux/of.h`.
- Detected declarations: `struct arm_ni_node`, `struct arm_ni_unit`, `struct arm_ni_cd`, `struct arm_ni`, `struct arm_ni_event_attr`, `struct arm_ni_format_attr`, `struct arm_ni_val`, `enum ni_part`, `enum ni_node_type`, `function arm_ni_event_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.