drivers/hwtracing/coresight/coresight-stm.c
Source file repositories/reference/linux-study-clean/drivers/hwtracing/coresight/coresight-stm.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/hwtracing/coresight/coresight-stm.c- Extension
.c- Size
- 26278 bytes
- Lines
- 1066
- Domain
- Driver Families
- Bucket
- drivers/hwtracing
- 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
asm/local.hlinux/acpi.hlinux/amba/bus.hlinux/bitmap.hlinux/clk.hlinux/coresight.hlinux/coresight-stm.hlinux/err.hlinux/kernel.hlinux/moduleparam.hlinux/of_address.hlinux/perf_event.hlinux/pm_runtime.hlinux/stm.hlinux/platform_device.hcoresight-priv.hcoresight-trace-id.h
Detected Declarations
struct channel_spacestruct stm_drvdataenum stm_pkt_typefunction stm_hwevent_enable_hwfunction stm_port_enable_hwfunction stm_enable_hwfunction stm_enablefunction stm_hwevent_disable_hwfunction stm_port_disable_hwfunction stm_disable_hwfunction stm_disablefunction stm_trace_idfunction stm_addr_unalignedfunction stm_sendfunction stm_generic_linkfunction stm_generic_unlinkfunction stm_mmio_addrfunction stm_generic_set_optionsfunction stm_generic_packetfunction hwevent_enable_showfunction hwevent_enable_storefunction hwevent_select_showfunction hwevent_select_storefunction port_select_showfunction port_select_storefunction port_enable_showfunction port_enable_storefunction traceid_showfunction of_stm_get_stimulus_areafunction of_stm_get_stimulus_areafunction acpi_stm_get_stimulus_areafunction acpi_stm_get_stimulus_areafunction stm_get_stimulus_areafunction stm_fundamental_data_sizefunction stm_num_stimulus_portfunction stm_init_default_datafunction stm_init_generic_datafunction __stm_probefunction stm_probefunction __stm_removefunction stm_removefunction stm_runtime_suspendfunction stm_runtime_resumefunction stm_platform_probefunction stm_platform_removefunction stm_initfunction stm_exitmodule init stm_init
Annotated Snippet
module_init(stm_init);
module_exit(stm_exit);
MODULE_AUTHOR("Pratik Patel <pratikp@codeaurora.org>");
MODULE_DESCRIPTION("Arm CoreSight System Trace Macrocell driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `asm/local.h`, `linux/acpi.h`, `linux/amba/bus.h`, `linux/bitmap.h`, `linux/clk.h`, `linux/coresight.h`, `linux/coresight-stm.h`, `linux/err.h`.
- Detected declarations: `struct channel_space`, `struct stm_drvdata`, `enum stm_pkt_type`, `function stm_hwevent_enable_hw`, `function stm_port_enable_hw`, `function stm_enable_hw`, `function stm_enable`, `function stm_hwevent_disable_hw`, `function stm_port_disable_hw`, `function stm_disable_hw`.
- Atlas domain: Driver Families / drivers/hwtracing.
- 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.