drivers/perf/hisilicon/hisi_uncore_cpa_pmu.c
Source file repositories/reference/linux-study-clean/drivers/perf/hisilicon/hisi_uncore_cpa_pmu.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/perf/hisilicon/hisi_uncore_cpa_pmu.c- Extension
.c- Size
- 9700 bytes
- Lines
- 371
- 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/bug.hlinux/cpuhotplug.hlinux/interrupt.hlinux/irq.hlinux/list.hlinux/smp.hhisi_uncore_pmu.h
Detected Declarations
function CPAfunction hisi_cpa_pmu_read_counterfunction hisi_cpa_pmu_write_counterfunction hisi_cpa_pmu_write_evtypefunction hisi_cpa_pmu_start_countersfunction hisi_cpa_pmu_stop_countersfunction hisi_cpa_pmu_disable_pmfunction hisi_cpa_pmu_enable_pmfunction hisi_cpa_pmu_enable_counterfunction hisi_cpa_pmu_disable_counterfunction hisi_cpa_pmu_enable_counter_intfunction hisi_cpa_pmu_disable_counter_intfunction hisi_cpa_pmu_get_int_statusfunction hisi_cpa_pmu_clear_int_statusfunction hisi_cpa_pmu_init_datafunction hisi_cpa_pmu_dev_probefunction hisi_cpa_pmu_probefunction hisi_cpa_pmu_removefunction hisi_cpa_pmu_module_initfunction hisi_cpa_pmu_module_exitmodule init hisi_cpa_pmu_module_init
Annotated Snippet
module_init(hisi_cpa_pmu_module_init);
static void __exit hisi_cpa_pmu_module_exit(void)
{
platform_driver_unregister(&hisi_cpa_pmu_driver);
cpuhp_remove_multi_state(CPUHP_AP_PERF_ARM_HISI_CPA_ONLINE);
}
module_exit(hisi_cpa_pmu_module_exit);
MODULE_IMPORT_NS("HISI_PMU");
MODULE_DESCRIPTION("HiSilicon SoC CPA PMU driver");
MODULE_LICENSE("GPL v2");
MODULE_AUTHOR("Qi Liu <liuqi115@huawei.com>");
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/bug.h`, `linux/cpuhotplug.h`, `linux/interrupt.h`, `linux/irq.h`, `linux/list.h`, `linux/smp.h`, `hisi_uncore_pmu.h`.
- Detected declarations: `function CPA`, `function hisi_cpa_pmu_read_counter`, `function hisi_cpa_pmu_write_counter`, `function hisi_cpa_pmu_write_evtype`, `function hisi_cpa_pmu_start_counters`, `function hisi_cpa_pmu_stop_counters`, `function hisi_cpa_pmu_disable_pm`, `function hisi_cpa_pmu_enable_pm`, `function hisi_cpa_pmu_enable_counter`, `function hisi_cpa_pmu_disable_counter`.
- 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.