drivers/perf/dwc_pcie_pmu.c
Source file repositories/reference/linux-study-clean/drivers/perf/dwc_pcie_pmu.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/perf/dwc_pcie_pmu.c- Extension
.c- Size
- 25480 bytes
- Lines
- 890
- 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/bitfield.hlinux/bitops.hlinux/cpuhotplug.hlinux/cpumask.hlinux/device.hlinux/errno.hlinux/kernel.hlinux/list.hlinux/pcie-dwc.hlinux/perf_event.hlinux/pci.hlinux/platform_device.hlinux/smp.hlinux/sysfs.hlinux/types.h
Detected Declarations
struct dwc_pcie_pmustruct dwc_pcie_dev_infostruct dwc_pcie_format_attrstruct dwc_pcie_event_attrenum dwc_pcie_event_typefunction cpumask_showfunction dwc_pcie_event_showfunction dwc_pcie_pmu_lane_event_enablefunction dwc_pcie_pmu_time_based_event_enablefunction dwc_pcie_pmu_read_lane_event_counterfunction dwc_pcie_pmu_read_time_based_counterfunction dwc_pcie_pmu_event_updatefunction dwc_pcie_pmu_validate_add_lane_eventfunction dwc_pcie_pmu_validate_groupfunction for_each_sibling_eventfunction dwc_pcie_pmu_event_initfunction for_each_sibling_eventfunction dwc_pcie_pmu_event_startfunction dwc_pcie_pmu_event_stopfunction dwc_pcie_pmu_event_addfunction dwc_pcie_pmu_event_delfunction dwc_pcie_pmu_remove_cpuhp_instancefunction dwc_pcie_unregister_pmufunction dwc_pcie_des_capfunction dwc_pcie_unregister_devfunction dwc_pcie_register_devfunction dwc_pcie_pmu_notifierfunction dwc_pcie_pmu_probefunction dwc_pcie_pmu_online_cpufunction dwc_pcie_pmu_offline_cpufunction dwc_pcie_cleanup_devicesfunction list_for_each_entry_safefunction dwc_pcie_pmu_initfunction for_each_pci_devfunction dwc_pcie_pmu_exitmodule init dwc_pcie_pmu_init
Annotated Snippet
module_init(dwc_pcie_pmu_init);
module_exit(dwc_pcie_pmu_exit);
MODULE_DESCRIPTION("PMU driver for DesignWare Cores PCI Express Controller");
MODULE_AUTHOR("Shuai Xue <xueshuai@linux.alibaba.com>");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/bitfield.h`, `linux/bitops.h`, `linux/cpuhotplug.h`, `linux/cpumask.h`, `linux/device.h`, `linux/errno.h`, `linux/kernel.h`, `linux/list.h`.
- Detected declarations: `struct dwc_pcie_pmu`, `struct dwc_pcie_dev_info`, `struct dwc_pcie_format_attr`, `struct dwc_pcie_event_attr`, `enum dwc_pcie_event_type`, `function cpumask_show`, `function dwc_pcie_event_show`, `function dwc_pcie_pmu_lane_event_enable`, `function dwc_pcie_pmu_time_based_event_enable`, `function dwc_pcie_pmu_read_lane_event_counter`.
- 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.