drivers/perf/hisilicon/hisi_uncore_uc_pmu.c
Source file repositories/reference/linux-study-clean/drivers/perf/hisilicon/hisi_uncore_uc_pmu.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/perf/hisilicon/hisi_uncore_uc_pmu.c- Extension
.c- Size
- 16898 bytes
- Lines
- 596
- 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/cpuhotplug.hlinux/interrupt.hlinux/irq.hlinux/list.hlinux/mod_devicetable.hhisi_uncore_pmu.h
Detected Declarations
function hisi_uc_pmu_check_filterfunction hisi_uc_pmu_config_req_tracetagfunction hisi_uc_pmu_clear_req_tracetagfunction hisi_uc_pmu_config_srcid_tracetagfunction hisi_uc_pmu_clear_srcid_tracetagfunction hisi_uc_pmu_config_uring_channelfunction hisi_uc_pmu_clear_uring_channelfunction hisi_uc_pmu_enable_filterfunction hisi_uc_pmu_disable_filterfunction hisi_uc_pmu_write_evtypefunction hisi_uc_pmu_start_countersfunction hisi_uc_pmu_stop_countersfunction hisi_uc_pmu_enable_counterfunction hisi_uc_pmu_disable_counterfunction hisi_uc_pmu_read_counterfunction hisi_uc_pmu_get_glb_en_statefunction hisi_uc_pmu_write_counter_normalfunction hisi_uc_pmu_write_counter_quirk_v2function hisi_uc_pmu_write_counterfunction hisi_uc_pmu_enable_counter_intfunction hisi_uc_pmu_disable_counter_intfunction hisi_uc_pmu_get_int_statusfunction hisi_uc_pmu_clear_int_statusfunction hisi_uc_pmu_init_datafunction SCCLfunction hisi_uc_pmu_dev_probefunction hisi_uc_pmu_remove_cpuhp_instancefunction hisi_uc_pmu_unregister_pmufunction hisi_uc_pmu_probefunction hisi_uc_pmu_module_initfunction hisi_uc_pmu_module_exitmodule init hisi_uc_pmu_module_init
Annotated Snippet
module_init(hisi_uc_pmu_module_init);
static void __exit hisi_uc_pmu_module_exit(void)
{
platform_driver_unregister(&hisi_uc_pmu_driver);
cpuhp_remove_multi_state(hisi_uc_pmu_online);
}
module_exit(hisi_uc_pmu_module_exit);
MODULE_IMPORT_NS("HISI_PMU");
MODULE_DESCRIPTION("HiSilicon SoC UC uncore PMU driver");
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Junhao He <hejunhao3@huawei.com>");
Annotation
- Immediate include surface: `linux/cpuhotplug.h`, `linux/interrupt.h`, `linux/irq.h`, `linux/list.h`, `linux/mod_devicetable.h`, `hisi_uncore_pmu.h`.
- Detected declarations: `function hisi_uc_pmu_check_filter`, `function hisi_uc_pmu_config_req_tracetag`, `function hisi_uc_pmu_clear_req_tracetag`, `function hisi_uc_pmu_config_srcid_tracetag`, `function hisi_uc_pmu_clear_srcid_tracetag`, `function hisi_uc_pmu_config_uring_channel`, `function hisi_uc_pmu_clear_uring_channel`, `function hisi_uc_pmu_enable_filter`, `function hisi_uc_pmu_disable_filter`, `function hisi_uc_pmu_write_evtype`.
- 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.