drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c
Source file repositories/reference/linux-study-clean/drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c- Extension
.c- Size
- 16752 bytes
- Lines
- 587
- 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/cpuhotplug.hlinux/interrupt.hlinux/irq.hlinux/list.hlinux/smp.hhisi_uncore_pmu.h
Detected Declarations
struct hisi_sllc_pmu_regsfunction tgtid_is_validfunction hisi_sllc_pmu_enable_tracetagfunction hisi_sllc_pmu_disable_tracetagfunction hisi_sllc_pmu_config_tgtidfunction hisi_sllc_pmu_clear_tgtidfunction hisi_sllc_pmu_config_srcidfunction hisi_sllc_pmu_clear_srcidfunction hisi_sllc_pmu_enable_filterfunction hisi_sllc_pmu_clear_filterfunction hisi_sllc_pmu_read_counterfunction hisi_sllc_pmu_write_counterfunction hisi_sllc_pmu_write_evtypefunction hisi_sllc_pmu_start_countersfunction hisi_sllc_pmu_stop_countersfunction hisi_sllc_pmu_enable_counterfunction hisi_sllc_pmu_disable_counterfunction hisi_sllc_pmu_enable_counter_intfunction hisi_sllc_pmu_disable_counter_intfunction hisi_sllc_pmu_get_int_statusfunction hisi_sllc_pmu_clear_int_statusfunction hisi_sllc_pmu_init_datafunction hisi_sllc_pmu_dev_probefunction hisi_sllc_pmu_probefunction hisi_sllc_pmu_removefunction hisi_sllc_pmu_module_initfunction hisi_sllc_pmu_module_exitmodule init hisi_sllc_pmu_module_init
Annotated Snippet
module_init(hisi_sllc_pmu_module_init);
static void __exit hisi_sllc_pmu_module_exit(void)
{
platform_driver_unregister(&hisi_sllc_pmu_driver);
cpuhp_remove_multi_state(CPUHP_AP_PERF_ARM_HISI_SLLC_ONLINE);
}
module_exit(hisi_sllc_pmu_module_exit);
MODULE_IMPORT_NS("HISI_PMU");
MODULE_DESCRIPTION("HiSilicon SLLC uncore PMU driver");
MODULE_LICENSE("GPL v2");
MODULE_AUTHOR("Shaokun Zhang <zhangshaokun@hisilicon.com>");
MODULE_AUTHOR("Qi Liu <liuqi115@huawei.com>");
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/cpuhotplug.h`, `linux/interrupt.h`, `linux/irq.h`, `linux/list.h`, `linux/smp.h`, `hisi_uncore_pmu.h`.
- Detected declarations: `struct hisi_sllc_pmu_regs`, `function tgtid_is_valid`, `function hisi_sllc_pmu_enable_tracetag`, `function hisi_sllc_pmu_disable_tracetag`, `function hisi_sllc_pmu_config_tgtid`, `function hisi_sllc_pmu_clear_tgtid`, `function hisi_sllc_pmu_config_srcid`, `function hisi_sllc_pmu_clear_srcid`, `function hisi_sllc_pmu_enable_filter`, `function hisi_sllc_pmu_clear_filter`.
- 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.