drivers/perf/starfive_starlink_pmu.c
Source file repositories/reference/linux-study-clean/drivers/perf/starfive_starlink_pmu.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/perf/starfive_starlink_pmu.c- Extension
.c- Size
- 17140 bytes
- Lines
- 642
- 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/cpu_pm.hlinux/io.hlinux/irq.hlinux/kernel.hlinux/module.hlinux/mod_devicetable.hlinux/perf_event.hlinux/platform_device.hlinux/sysfs.h
Detected Declarations
struct starlink_hw_eventsstruct starlink_pmufunction Copyrightfunction starlink_pmu_sysfs_format_showfunction starlink_pmu_sysfs_event_showfunction cpumask_showfunction starlink_pmu_set_event_periodfunction starlink_pmu_counter_startfunction starlink_pmu_counter_stopfunction starlink_pmu_updatefunction starlink_pmu_startfunction starlink_pmu_stopfunction starlink_pmu_addfunction starlink_pmu_delfunction starlink_pmu_validate_event_groupfunction for_each_sibling_eventfunction starlink_pmu_event_initfunction starlink_pmu_handle_irqfunction starlink_setup_irqsfunction starlink_pmu_pm_notifyfunction starlink_pmu_pm_registerfunction starlink_pmu_pm_unregisterfunction starlink_pmu_destroyfunction starlink_pmu_probefunction for_each_possible_cpufunction starlink_pmu_online_cpufunction starlink_pmu_offline_cpufunction starlink_pmu_initmodule init starlink_pmu_init
Annotated Snippet
device_initcall(starlink_pmu_init);
Annotation
- Immediate include surface: `linux/bitmap.h`, `linux/cpu_pm.h`, `linux/io.h`, `linux/irq.h`, `linux/kernel.h`, `linux/module.h`, `linux/mod_devicetable.h`, `linux/perf_event.h`.
- Detected declarations: `struct starlink_hw_events`, `struct starlink_pmu`, `function Copyright`, `function starlink_pmu_sysfs_format_show`, `function starlink_pmu_sysfs_event_show`, `function cpumask_show`, `function starlink_pmu_set_event_period`, `function starlink_pmu_counter_start`, `function starlink_pmu_counter_stop`, `function starlink_pmu_update`.
- 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.