drivers/perf/arm_dmc620_pmu.c
Source file repositories/reference/linux-study-clean/drivers/perf/arm_dmc620_pmu.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/perf/arm_dmc620_pmu.c- Extension
.c- Size
- 22039 bytes
- Lines
- 786
- 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/cpuhotplug.hlinux/cpumask.hlinux/device.hlinux/errno.hlinux/interrupt.hlinux/irq.hlinux/kernel.hlinux/list.hlinux/module.hlinux/mutex.hlinux/perf_event.hlinux/platform_device.hlinux/printk.hlinux/rculist.hlinux/refcount.h
Detected Declarations
struct dmc620_pmu_irqstruct dmc620_pmustruct dmc620_pmu_event_attrfunction dmc620_pmu_event_showfunction dmc620_pmu_cpumask_showfunction dmc620_pmu_creg_readfunction dmc620_pmu_creg_writefunction dmc620_event_to_counter_controlfunction dmc620_get_event_idxfunction dmc620_pmu_read_counterfunction dmc620_pmu_event_updatefunction dmc620_pmu_event_set_periodfunction dmc620_pmu_enable_counterfunction dmc620_pmu_disable_counterfunction dmc620_pmu_handle_irqfunction dmc620_pmu_get_irqfunction dmc620_pmu_put_irqfunction dmc620_pmu_event_initfunction for_each_sibling_eventfunction dmc620_pmu_readfunction dmc620_pmu_startfunction dmc620_pmu_stopfunction dmc620_pmu_addfunction dmc620_pmu_delfunction dmc620_pmu_cpu_teardownfunction dmc620_pmu_device_probefunction dmc620_pmu_device_removefunction dmc620_pmu_initfunction dmc620_pmu_exitmodule init dmc620_pmu_init
Annotated Snippet
module_init(dmc620_pmu_init);
module_exit(dmc620_pmu_exit);
MODULE_DESCRIPTION("Perf driver for the ARM DMC-620 memory controller");
MODULE_AUTHOR("Tuan Phan <tuanphan@os.amperecomputing.com");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/bitfield.h`, `linux/bitops.h`, `linux/cpuhotplug.h`, `linux/cpumask.h`, `linux/device.h`, `linux/errno.h`, `linux/interrupt.h`.
- Detected declarations: `struct dmc620_pmu_irq`, `struct dmc620_pmu`, `struct dmc620_pmu_event_attr`, `function dmc620_pmu_event_show`, `function dmc620_pmu_cpumask_show`, `function dmc620_pmu_creg_read`, `function dmc620_pmu_creg_write`, `function dmc620_event_to_counter_control`, `function dmc620_get_event_idx`, `function dmc620_pmu_read_counter`.
- 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.