drivers/perf/arm_cspmu/nvidia_cspmu.c
Source file repositories/reference/linux-study-clean/drivers/perf/arm_cspmu/nvidia_cspmu.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/perf/arm_cspmu/nvidia_cspmu.c- Extension
.c- Size
- 30322 bytes
- Lines
- 1075
- 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.
- 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.hlinux/module.hlinux/property.hlinux/topology.harm_cspmu.h
Detected Declarations
struct nv_cspmu_ctxstruct pcie_tgt_addr_filterstruct pcie_tgt_datastruct nv_cspmu_matchenum nv_cspmu_name_fmtfunction nv_cspmu_get_event_attrsfunction nv_cspmu_get_format_attrsfunction nv_cspmu_get_namefunction nv_cspmu_get_inst_idfunction nv_cspmu_get_inst_idfunction nv_cspmu_event_filterfunction nv_cspmu_event_filter2function nv_cspmu_set_ev_filterfunction nv_cspmu_reset_ev_filterfunction nv_cspmu_set_cc_filterfunction ucf_pmu_event_filterfunction pcie_v2_pmu_bdf_val_enfunction pcie_v2_pmu_event_filterfunction pcie_v2_pmu_validate_eventfunction pcie_tgt_init_datafunction pcie_tgt_init_datafunction pcie_tgt_find_addr_idxfunction pcie_tgt_pmu_event_filterfunction pcie_tgt_pmu_addr_enfunction pcie_tgt_pmu_port_filterfunction pcie_tgt_pmu_dst_addr_basefunction pcie_tgt_pmu_dst_addr_maskfunction pcie_tgt_pmu_validate_eventfunction pcie_tgt_pmu_config_addr_filterfunction pcie_tgt_pmu_set_ev_filterfunction pcie_tgt_pmu_reset_ev_filterfunction pcie_tgt_pmu_event_typefunction pcie_tgt_pmu_is_cycle_counter_eventfunction nv_cspmu_init_opsfunction nvidia_cspmu_initfunction nvidia_cspmu_exitmodule init nvidia_cspmu_init
Annotated Snippet
module_init(nvidia_cspmu_init);
module_exit(nvidia_cspmu_exit);
MODULE_DESCRIPTION("NVIDIA Coresight Architecture Performance Monitor Driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/io.h`, `linux/module.h`, `linux/property.h`, `linux/topology.h`, `arm_cspmu.h`.
- Detected declarations: `struct nv_cspmu_ctx`, `struct pcie_tgt_addr_filter`, `struct pcie_tgt_data`, `struct nv_cspmu_match`, `enum nv_cspmu_name_fmt`, `function nv_cspmu_get_event_attrs`, `function nv_cspmu_get_format_attrs`, `function nv_cspmu_get_name`, `function nv_cspmu_get_inst_id`, `function nv_cspmu_get_inst_id`.
- 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.
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.