drivers/perf/arm_pmu.c
Source file repositories/reference/linux-study-clean/drivers/perf/arm_pmu.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/perf/arm_pmu.c- Extension
.c- Size
- 23625 bytes
- Lines
- 972
- 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.
- 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/bitmap.hlinux/cpumask.hlinux/cpu_pm.hlinux/export.hlinux/kernel.hlinux/perf/arm_pmu.hlinux/slab.hlinux/sched/clock.hlinux/spinlock.hlinux/irq.hlinux/irqdesc.hasm/irq_regs.h
Detected Declarations
struct pmu_irq_opsfunction armpmu_free_pmuirqfunction armpmu_free_pmunmifunction armpmu_enable_percpu_pmuirqfunction armpmu_free_percpu_pmuirqfunction armpmu_enable_percpu_pmunmifunction armpmu_disable_percpu_pmunmifunction armpmu_free_percpu_pmunmifunction arm_pmu_event_max_periodfunction armpmu_map_cache_eventfunction armpmu_map_hw_eventfunction armpmu_map_raw_eventfunction armpmu_map_eventfunction armpmu_event_set_periodfunction armpmu_event_updatefunction armpmu_readfunction armpmu_stopfunction armpmu_startfunction armpmu_delfunction armpmu_addfunction validate_eventfunction validate_groupfunction for_each_sibling_eventfunction armpmu_dispatch_irqfunction __hw_perf_event_initfunction armpmu_event_initfunction armpmu_enablefunction armpmu_disablefunction armpmu_filterfunction cpus_showfunction armpmu_count_irq_usersfunction for_each_cpufunction armpmu_find_irq_opsfunction for_each_cpufunction armpmu_free_irqfunction armpmu_request_irqfunction armpmu_get_cpu_irqfunction arm_pmu_irq_is_nmifunction arm_perf_starting_cpufunction arm_perf_teardown_cpufunction cpu_pm_pmu_setupfunction for_each_set_bitfunction cpu_pm_pmu_notifyfunction cpu_pm_pmu_registerfunction cpu_pm_pmu_unregisterfunction cpu_pm_pmu_registerfunction cpu_pm_pmu_unregisterfunction cpu_pmu_destroy
Annotated Snippet
subsys_initcall(arm_pmu_hp_init);
Annotation
- Immediate include surface: `linux/bitmap.h`, `linux/cpumask.h`, `linux/cpu_pm.h`, `linux/export.h`, `linux/kernel.h`, `linux/perf/arm_pmu.h`, `linux/slab.h`, `linux/sched/clock.h`.
- Detected declarations: `struct pmu_irq_ops`, `function armpmu_free_pmuirq`, `function armpmu_free_pmunmi`, `function armpmu_enable_percpu_pmuirq`, `function armpmu_free_percpu_pmuirq`, `function armpmu_enable_percpu_pmunmi`, `function armpmu_disable_percpu_pmunmi`, `function armpmu_free_percpu_pmunmi`, `function arm_pmu_event_max_period`, `function armpmu_map_cache_event`.
- Atlas domain: Driver Families / drivers/perf.
- Implementation status: integration implementation candidate.
- 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.