drivers/perf/marvell_cn10k_ddr_pmu.c
Source file repositories/reference/linux-study-clean/drivers/perf/marvell_cn10k_ddr_pmu.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/perf/marvell_cn10k_ddr_pmu.c- Extension
.c- Size
- 36036 bytes
- Lines
- 1156
- 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/init.hlinux/io.hlinux/module.hlinux/of.hlinux/perf_event.hlinux/hrtimer.hlinux/acpi.hlinux/platform_device.h
Detected Declarations
struct cn10k_ddr_pmustruct ddr_pmu_opsstruct ddr_pmu_platform_datafunction cn10k_ddr_pmu_event_showfunction cn10k_ddr_perf_cpumask_showfunction cn10k_ddr_pmu_timer_periodfunction ddr_perf_get_event_bitmapfunction cn10k_ddr_perf_alloc_counterfunction cn10k_ddr_perf_free_counterfunction cn10k_ddr_perf_event_initfunction cn10k_ddr_perf_counter_startfunction cn10k_ddr_perf_counter_stopfunction cn10k_ddr_perf_counter_enablefunction cn10k_ddr_perf_read_counterfunction cn10k_ddr_perf_event_updatefunction cn10k_ddr_perf_event_startfunction cn10k_ddr_perf_event_addfunction cn10k_ddr_perf_event_stopfunction cn10k_ddr_perf_event_delfunction cn10k_ddr_perf_pmu_enablefunction cn10k_ddr_perf_pmu_disablefunction cn10k_ddr_perf_event_update_allfunction ddr_pmu_enable_read_freerunfunction ddr_pmu_enable_write_freerunfunction ddr_pmu_read_clear_freerunfunction ddr_pmu_write_clear_freerunfunction ddr_pmu_overflow_handerfunction ddr_pmu_ody_enable_read_freerunfunction ddr_pmu_ody_enable_write_freerunfunction ddr_pmu_ody_read_clear_freerunfunction ddr_pmu_ody_write_clear_freerunfunction ddr_pmu_ody_overflow_handerfunction cn10k_ddr_pmu_overflow_handlerfunction cn10k_ddr_pmu_timer_handlerfunction cn10k_ddr_pmu_offline_cpufunction cn10k_ddr_perf_probefunction cn10k_ddr_perf_removefunction cn10k_ddr_pmu_initfunction cn10k_ddr_pmu_exitmodule init cn10k_ddr_pmu_init
Annotated Snippet
module_init(cn10k_ddr_pmu_init);
module_exit(cn10k_ddr_pmu_exit);
MODULE_AUTHOR("Bharat Bhushan <bbhushan2@marvell.com>");
MODULE_DESCRIPTION("Marvell CN10K DRAM Subsystem (DSS) Performance Monitor Driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/init.h`, `linux/io.h`, `linux/module.h`, `linux/of.h`, `linux/perf_event.h`, `linux/hrtimer.h`, `linux/acpi.h`, `linux/platform_device.h`.
- Detected declarations: `struct cn10k_ddr_pmu`, `struct ddr_pmu_ops`, `struct ddr_pmu_platform_data`, `function cn10k_ddr_pmu_event_show`, `function cn10k_ddr_perf_cpumask_show`, `function cn10k_ddr_pmu_timer_period`, `function ddr_perf_get_event_bitmap`, `function cn10k_ddr_perf_alloc_counter`, `function cn10k_ddr_perf_free_counter`, `function cn10k_ddr_perf_event_init`.
- 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.