drivers/perf/arm_spe_pmu.c
Source file repositories/reference/linux-study-clean/drivers/perf/arm_spe_pmu.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/perf/arm_spe_pmu.c- Extension
.c- Size
- 41252 bytes
- Lines
- 1460
- 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/bitfield.hlinux/bitops.hlinux/bug.hlinux/capability.hlinux/cpuhotplug.hlinux/cpumask.hlinux/device.hlinux/errno.hlinux/interrupt.hlinux/irq.hlinux/kernel.hlinux/list.hlinux/module.hlinux/of.hlinux/perf_event.hlinux/perf/arm_pmu.hlinux/platform_device.hlinux/printk.hlinux/slab.hlinux/smp.hlinux/vmalloc.hasm/barrier.hasm/cpufeature.hasm/mmu.hasm/sysreg.h
Detected Declarations
struct arm_spe_pmu_bufstruct arm_spe_pmuenum arm_spe_pmu_buf_fault_actionenum arm_spe_pmu_capabilitiesfunction set_spe_event_has_cxfunction get_spe_event_has_cxfunction arm_spe_pmu_cap_getfunction arm_spe_pmu_cap_showfunction arm_spe_pmu_cap_show_hexfunction arm_spe_pmu_format_attr_is_visiblefunction cpumask_showfunction arm_spe_event_to_pmscrfunction arm_spe_event_sanitise_periodfunction arm_spe_event_to_pmsirrfunction arm_spe_event_to_pmsfcrfunction arm_spe_event_to_pmsevfrfunction arm_spe_event_to_pmsnevfrfunction arm_spe_event_to_pmslatfrfunction arm_spe_event_to_pmsdsfrfunction arm_spe_pmu_pad_buffunction arm_spe_pmu_next_snapshot_offfunction __arm_spe_pmu_next_offfunction arm_spe_pmu_next_offfunction arm_spe_perf_aux_output_beginfunction arm_spe_perf_aux_output_endfunction arm_spe_pmu_disable_and_drain_localfunction arm_spe_pmu_buf_get_fault_actfunction arm_spe_pmu_irq_handlerfunction faultfunction arm_spe_pmu_event_initfunction arm_spe_pmu_startfunction arm_spe_pmu_stopfunction arm_spe_pmu_addfunction arm_spe_pmu_delfunction arm_spe_pmu_readfunction arm_spe_pmu_free_auxfunction arm_spe_pmu_perf_initfunction arm_spe_pmu_perf_destroyfunction __arm_spe_pmu_dev_probefunction __arm_spe_pmu_reset_localfunction __arm_spe_pmu_setup_onefunction __arm_spe_pmu_stop_onefunction arm_spe_pmu_cpu_startupfunction arm_spe_pmu_cpu_teardownfunction arm_spe_pmu_dev_initfunction arm_spe_pmu_dev_teardownfunction arm_spe_pmu_irq_probefunction arm_spe_pmu_device_probe
Annotated Snippet
module_init(arm_spe_pmu_init);
module_exit(arm_spe_pmu_exit);
MODULE_DESCRIPTION("Perf driver for the ARMv8.2 Statistical Profiling Extension");
MODULE_AUTHOR("Will Deacon <will.deacon@arm.com>");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/bitfield.h`, `linux/bitops.h`, `linux/bug.h`, `linux/capability.h`, `linux/cpuhotplug.h`, `linux/cpumask.h`, `linux/device.h`, `linux/errno.h`.
- Detected declarations: `struct arm_spe_pmu_buf`, `struct arm_spe_pmu`, `enum arm_spe_pmu_buf_fault_action`, `enum arm_spe_pmu_capabilities`, `function set_spe_event_has_cx`, `function get_spe_event_has_cx`, `function arm_spe_pmu_cap_get`, `function arm_spe_pmu_cap_show`, `function arm_spe_pmu_cap_show_hex`, `function arm_spe_pmu_format_attr_is_visible`.
- 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.