drivers/perf/hisilicon/hisi_uncore_noc_pmu.c
Source file repositories/reference/linux-study-clean/drivers/perf/hisilicon/hisi_uncore_noc_pmu.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/perf/hisilicon/hisi_uncore_noc_pmu.c- Extension
.c- Size
- 13318 bytes
- Lines
- 444
- 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/bitops.hlinux/cpuhotplug.hlinux/device.hlinux/io.hlinux/mod_devicetable.hlinux/module.hlinux/platform_device.hlinux/property.hlinux/sysfs.hhisi_uncore_pmu.h
Detected Declarations
struct hisi_noc_pmu_regsfunction hisi_noc_pmu_check_global_filterfunction hisi_noc_pmu_write_evtypefunction hisi_noc_pmu_get_event_idxfunction hisi_noc_pmu_read_counterfunction hisi_noc_pmu_write_counterfunction hisi_noc_pmu_enable_counterfunction hisi_noc_pmu_disable_counterfunction hisi_noc_pmu_enable_counter_intfunction hisi_noc_pmu_stop_countersfunction hisi_noc_pmu_get_int_statusfunction hisi_noc_pmu_clear_int_statusfunction hisi_noc_pmu_enable_filterfunction hisi_noc_pmu_disable_filterfunction hisi_noc_pmu_dev_initfunction hisi_noc_pmu_remove_cpuhp_instancefunction hisi_noc_pmu_unregister_pmufunction hisi_noc_pmu_probefunction hisi_noc_pmu_module_initfunction hisi_noc_pmu_module_exitmodule init hisi_noc_pmu_module_init
Annotated Snippet
module_init(hisi_noc_pmu_module_init);
static void __exit hisi_noc_pmu_module_exit(void)
{
platform_driver_unregister(&hisi_noc_pmu_driver);
cpuhp_remove_multi_state(hisi_noc_pmu_cpuhp_state);
}
module_exit(hisi_noc_pmu_module_exit);
MODULE_IMPORT_NS("HISI_PMU");
MODULE_DESCRIPTION("HiSilicon SoC Uncore NoC PMU driver");
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Yicong Yang <yangyicong@hisilicon.com>");
Annotation
- Immediate include surface: `linux/bitops.h`, `linux/cpuhotplug.h`, `linux/device.h`, `linux/io.h`, `linux/mod_devicetable.h`, `linux/module.h`, `linux/platform_device.h`, `linux/property.h`.
- Detected declarations: `struct hisi_noc_pmu_regs`, `function hisi_noc_pmu_check_global_filter`, `function hisi_noc_pmu_write_evtype`, `function hisi_noc_pmu_get_event_idx`, `function hisi_noc_pmu_read_counter`, `function hisi_noc_pmu_write_counter`, `function hisi_noc_pmu_enable_counter`, `function hisi_noc_pmu_disable_counter`, `function hisi_noc_pmu_enable_counter_int`, `function hisi_noc_pmu_stop_counters`.
- 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.