drivers/perf/arm_smmuv3_pmu.c
Source file repositories/reference/linux-study-clean/drivers/perf/arm_smmuv3_pmu.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/perf/arm_smmuv3_pmu.c- Extension
.c- Size
- 29725 bytes
- Lines
- 1038
- 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/acpi.hlinux/acpi_iort.hlinux/bitfield.hlinux/bitops.hlinux/cpuhotplug.hlinux/cpumask.hlinux/device.hlinux/errno.hlinux/interrupt.hlinux/irq.hlinux/kernel.hlinux/list.hlinux/msi.hlinux/of.hlinux/perf_event.hlinux/platform_device.hlinux/smp.hlinux/sysfs.hlinux/types.h
Detected Declarations
struct smmu_pmufunction smmu_pmu_enablefunction smmu_pmu_enable_quirk_hip08_09function smmu_pmu_disablefunction smmu_pmu_disable_quirk_hip08_09function smmu_pmu_counter_set_valuefunction smmu_pmu_counter_get_valuefunction smmu_pmu_counter_enablefunction smmu_pmu_counter_disablefunction smmu_pmu_interrupt_enablefunction smmu_pmu_interrupt_disablefunction smmu_pmu_set_evtyperfunction smmu_pmu_set_smrfunction smmu_pmu_event_updatefunction smmu_pmu_set_periodfunction smmu_pmu_set_event_filterfunction smmu_pmu_check_global_filterfunction smmu_pmu_apply_event_filterfunction smmu_pmu_get_event_idxfunction smmu_pmu_events_compatiblefunction smmu_pmu_event_initfunction for_each_sibling_eventfunction smmu_pmu_event_startfunction smmu_pmu_event_stopfunction smmu_pmu_event_addfunction smmu_pmu_event_delfunction smmu_pmu_event_readfunction smmu_pmu_cpumask_showfunction smmu_pmu_event_showfunction smmu_pmu_event_is_visiblefunction smmu_pmu_identifier_attr_showfunction smmu_pmu_identifier_attr_visiblefunction smmu_pmu_offline_cpufunction smmu_pmu_handle_irqfunction smmu_pmu_free_msisfunction smmu_pmu_write_msi_msgfunction smmu_pmu_setup_msifunction smmu_pmu_setup_irqfunction smmu_pmu_resetfunction smmu_pmu_get_acpi_optionsfunction smmu_pmu_coresight_id_regsfunction smmu_pmu_get_iidrfunction smmu_pmu_probefunction smmu_pmu_removefunction smmu_pmu_shutdownfunction arm_smmu_pmu_initfunction arm_smmu_pmu_exitmodule init arm_smmu_pmu_init
Annotated Snippet
module_init(arm_smmu_pmu_init);
static void __exit arm_smmu_pmu_exit(void)
{
platform_driver_unregister(&smmu_pmu_driver);
cpuhp_remove_multi_state(cpuhp_state_num);
}
module_exit(arm_smmu_pmu_exit);
MODULE_ALIAS("platform:arm-smmu-v3-pmcg");
MODULE_DESCRIPTION("PMU driver for ARM SMMUv3 Performance Monitors Extension");
MODULE_AUTHOR("Neil Leeder <nleeder@codeaurora.org>");
MODULE_AUTHOR("Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/acpi_iort.h`, `linux/bitfield.h`, `linux/bitops.h`, `linux/cpuhotplug.h`, `linux/cpumask.h`, `linux/device.h`, `linux/errno.h`.
- Detected declarations: `struct smmu_pmu`, `function smmu_pmu_enable`, `function smmu_pmu_enable_quirk_hip08_09`, `function smmu_pmu_disable`, `function smmu_pmu_disable_quirk_hip08_09`, `function smmu_pmu_counter_set_value`, `function smmu_pmu_counter_get_value`, `function smmu_pmu_counter_enable`, `function smmu_pmu_counter_disable`, `function smmu_pmu_interrupt_enable`.
- 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.