drivers/perf/cxl_pmu.c
Source file repositories/reference/linux-study-clean/drivers/perf/cxl_pmu.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/perf/cxl_pmu.c- Extension
.c- Size
- 32036 bytes
- Lines
- 984
- 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.
- 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/io-64-nonatomic-lo-hi.hlinux/perf_event.hlinux/bitops.hlinux/device.hlinux/bits.hlinux/list.hlinux/bug.hlinux/pci.h../cxl/cxlpci.h../cxl/cxl.h../cxl/pmu.h
Detected Declarations
struct cxl_pmu_ev_capstruct cxl_pmu_infofunction combinationfunction for_each_clear_bitfunction cxl_pmu_format_is_visiblefunction cxl_pmu_config_get_maskfunction cxl_pmu_config_get_gidfunction cxl_pmu_config_get_vidfunction cxl_pmu_config1_get_thresholdfunction cxl_pmu_config1_get_invertfunction cxl_pmu_config1_get_edgefunction cxl_pmu_config1_hdm_filter_enfunction cxl_pmu_config2_get_hdm_decoderfunction cxl_pmu_event_sysfs_showfunction list_for_each_entryfunction list_for_each_entryfunction cxl_pmu_event_is_visiblefunction cpumask_showfunction cxl_pmu_get_event_idxfunction cxl_pmu_event_initfunction cxl_pmu_enablefunction cxl_pmu_disablefunction cxl_pmu_event_startfunction cxl_pmu_read_counterfunction __cxl_pmu_readfunction cxl_pmu_readfunction cxl_pmu_event_stopfunction cxl_pmu_event_addfunction cxl_pmu_event_delfunction cxl_pmu_irqfunction cxl_pmu_perf_unregisterfunction cxl_pmu_cpuhp_removefunction cxl_pmu_probefunction cxl_pmu_online_cpufunction cxl_pmu_offline_cpufunction cxl_pmu_initfunction cxl_pmu_exitmodule init cxl_pmu_init
Annotated Snippet
module_init(cxl_pmu_init);
module_exit(cxl_pmu_exit);
MODULE_ALIAS_CXL(CXL_DEVICE_PMU);
Annotation
- Immediate include surface: `linux/io-64-nonatomic-lo-hi.h`, `linux/perf_event.h`, `linux/bitops.h`, `linux/device.h`, `linux/bits.h`, `linux/list.h`, `linux/bug.h`, `linux/pci.h`.
- Detected declarations: `struct cxl_pmu_ev_cap`, `struct cxl_pmu_info`, `function combination`, `function for_each_clear_bit`, `function cxl_pmu_format_is_visible`, `function cxl_pmu_config_get_mask`, `function cxl_pmu_config_get_gid`, `function cxl_pmu_config_get_vid`, `function cxl_pmu_config1_get_threshold`, `function cxl_pmu_config1_get_invert`.
- Atlas domain: Driver Families / drivers/perf.
- Implementation status: integration implementation candidate.
- 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.