drivers/perf/marvell_pem_pmu.c
Source file repositories/reference/linux-study-clean/drivers/perf/marvell_pem_pmu.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/perf/marvell_pem_pmu.c- Extension
.c- Size
- 10665 bytes
- Lines
- 426
- 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.
- 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/init.hlinux/io.hlinux/module.hlinux/perf_event.hlinux/platform_device.h
Detected Declarations
struct pem_pmuenum pem_eventsfunction eventid_to_offsetfunction pem_pmu_event_showfunction pem_perf_cpumask_showfunction pem_perf_event_initfunction for_each_sibling_eventfunction pem_perf_read_counterfunction pem_perf_event_updatefunction pem_perf_event_startfunction pem_perf_event_addfunction pem_perf_event_stopfunction pem_perf_event_delfunction pem_pmu_offline_cpufunction pem_perf_probefunction pem_perf_removefunction pem_pmu_initfunction pem_pmu_exitmodule init pem_pmu_init
Annotated Snippet
module_init(pem_pmu_init);
module_exit(pem_pmu_exit);
MODULE_DESCRIPTION("Marvell PEM Perf driver");
MODULE_AUTHOR("Gowthami Thiagarajan <gthiagarajan@marvell.com>");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/init.h`, `linux/io.h`, `linux/module.h`, `linux/perf_event.h`, `linux/platform_device.h`.
- Detected declarations: `struct pem_pmu`, `enum pem_events`, `function eventid_to_offset`, `function pem_pmu_event_show`, `function pem_perf_cpumask_show`, `function pem_perf_event_init`, `function for_each_sibling_event`, `function pem_perf_read_counter`, `function pem_perf_event_update`, `function pem_perf_event_start`.
- Atlas domain: Driver Families / drivers/perf.
- Implementation status: integration implementation candidate.
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.