drivers/perf/qcom_l2_pmu.c
Source file repositories/reference/linux-study-clean/drivers/perf/qcom_l2_pmu.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/perf/qcom_l2_pmu.c- Extension
.c- Size
- 26704 bytes
- Lines
- 1001
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- 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/bitops.hlinux/bug.hlinux/cpuhotplug.hlinux/cpumask.hlinux/device.hlinux/errno.hlinux/interrupt.hlinux/irq.hlinux/kernel.hlinux/list.hlinux/percpu.hlinux/perf_event.hlinux/platform_device.hlinux/smp.hlinux/spinlock.hlinux/sysfs.hlinux/types.hasm/barrier.hasm/local64.hasm/sysreg.hsoc/qcom/kryo-l2-accessors.h
Detected Declarations
struct cluster_pmustruct l2cache_pmustruct cluster_pmufunction idx_to_reg_bitfunction cluster_pmu_resetfunction cluster_pmu_enablefunction cluster_pmu_disablefunction cluster_pmu_counter_set_valuefunction cluster_pmu_counter_get_valuefunction cluster_pmu_counter_enablefunction cluster_pmu_counter_disablefunction cluster_pmu_counter_enable_interruptfunction cluster_pmu_counter_disable_interruptfunction cluster_pmu_set_evccntcrfunction cluster_pmu_set_evcntcrfunction cluster_pmu_set_evtyperfunction cluster_pmu_set_resrfunction cluster_pmu_set_evfilter_sys_modefunction cluster_pmu_getreset_ovsrfunction cluster_pmu_has_overflowedfunction cluster_pmu_counter_has_overflowedfunction l2_cache_event_updatefunction l2_cache_cluster_set_periodfunction l2_cache_get_event_idxfunction l2_cache_clear_event_idxfunction l2_cache_handle_irqfunction for_each_set_bitfunction l2_cache_pmu_enablefunction l2_cache_pmu_disablefunction l2_cache_event_initfunction for_each_sibling_eventfunction for_each_sibling_eventfunction l2_cache_event_startfunction l2_cache_event_stopfunction l2_cache_event_addfunction l2_cache_event_delfunction l2_cache_event_readfunction l2_cache_pmu_cpumask_showfunction l2cache_pmu_event_showfunction get_num_countersfunction list_for_each_entryfunction l2cache_pmu_online_cpufunction l2cache_pmu_offline_cpufunction l2_cache_pmu_probe_clusterfunction l2_cache_pmu_probefunction l2_cache_pmu_removefunction register_l2_cache_pmu_drivermodule init register_l2_cache_pmu_driver
Annotated Snippet
device_initcall(register_l2_cache_pmu_driver);
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/bitops.h`, `linux/bug.h`, `linux/cpuhotplug.h`, `linux/cpumask.h`, `linux/device.h`, `linux/errno.h`, `linux/interrupt.h`.
- Detected declarations: `struct cluster_pmu`, `struct l2cache_pmu`, `struct cluster_pmu`, `function idx_to_reg_bit`, `function cluster_pmu_reset`, `function cluster_pmu_enable`, `function cluster_pmu_disable`, `function cluster_pmu_counter_set_value`, `function cluster_pmu_counter_get_value`, `function cluster_pmu_counter_enable`.
- Atlas domain: Driver Families / drivers/perf.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- 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.