drivers/perf/arm_dsu_pmu.c
Source file repositories/reference/linux-study-clean/drivers/perf/arm_dsu_pmu.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/perf/arm_dsu_pmu.c- Extension
.c- Size
- 22943 bytes
- Lines
- 872
- 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/bitmap.hlinux/bitops.hlinux/bug.hlinux/cpumask.hlinux/device.hlinux/interrupt.hlinux/kernel.hlinux/module.hlinux/of.hlinux/perf_event.hlinux/platform_device.hlinux/spinlock.hlinux/smp.hlinux/sysfs.hlinux/types.hasm/arm_dsu_pmu.hasm/local64.h
Detected Declarations
struct dsu_hw_eventsstruct dsu_pmufunction Unitfunction dsu_pmu_sysfs_event_showfunction dsu_pmu_cpumask_showfunction dsu_pmu_event_attr_is_visiblefunction dsu_pmu_counter_validfunction dsu_pmu_read_counterfunction dsu_pmu_write_counterfunction dsu_pmu_get_event_idxfunction dsu_pmu_enable_counterfunction dsu_pmu_disable_counterfunction dsu_pmu_set_eventfunction dsu_pmu_counter_maskfunction dsu_pmu_event_updatefunction dsu_pmu_readfunction dsu_pmu_get_reset_overflowfunction dsu_pmu_set_event_periodfunction dsu_pmu_handle_irqfunction for_each_set_bitfunction dsu_pmu_startfunction dsu_pmu_stopfunction dsu_pmu_addfunction dsu_pmu_delfunction dsu_pmu_enablefunction dsu_pmu_disablefunction dsu_pmu_validate_eventfunction dsu_pmu_validate_groupfunction dsu_pmu_event_initfunction dsu_pmu_dt_get_cpusfunction dsu_pmu_acpi_get_cpusfunction dsu_pmu_probe_pmufunction dsu_pmu_set_active_cpufunction dsu_pmu_init_pmufunction dsu_pmu_device_probefunction dsu_pmu_device_removefunction dsu_pmu_cpu_onlinefunction dsu_pmu_cpu_teardownfunction dsu_pmu_initfunction dsu_pmu_exitmodule init dsu_pmu_init
Annotated Snippet
module_init(dsu_pmu_init);
module_exit(dsu_pmu_exit);
MODULE_DESCRIPTION("Perf driver for ARM DynamIQ Shared Unit");
MODULE_AUTHOR("Suzuki K Poulose <suzuki.poulose@arm.com>");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/bitmap.h`, `linux/bitops.h`, `linux/bug.h`, `linux/cpumask.h`, `linux/device.h`, `linux/interrupt.h`, `linux/kernel.h`.
- Detected declarations: `struct dsu_hw_events`, `struct dsu_pmu`, `function Unit`, `function dsu_pmu_sysfs_event_show`, `function dsu_pmu_cpumask_show`, `function dsu_pmu_event_attr_is_visible`, `function dsu_pmu_counter_valid`, `function dsu_pmu_read_counter`, `function dsu_pmu_write_counter`, `function dsu_pmu_get_event_idx`.
- 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.